text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #include <aws/amp/model/PutAlertManagerDefinitionRequest.h>
  #include <aws/core/utils/json/JsonSerializer.h>
  #include <aws/core/utils/HashingUtils.h>
  
  #include <utility>
  
  using namespace Aws::PrometheusService::Model;
  using namespace Aws::Utils::Json;
  using namespace Aws::Utils;
  
  PutAlertManagerDefinitionRequest::PutAlertManagerDefinitionRequest() : 
      m_clientToken(Aws::Utils::UUID::RandomUUID()),
      m_clientTokenHasBeenSet(true),
      m_dataHasBeenSet(false),
      m_workspaceIdHasBeenSet(false)
  {
  }
  
  Aws::String PutAlertManagerDefinitionRequest::SerializePayload() const
  {
    JsonValue payload;
  
    if(m_clientTokenHasBeenSet)
    {
     payload.WithString("clientToken", m_clientToken);
  
    }
  
    if(m_dataHasBeenSet)
    {
     payload.WithString("data", HashingUtils::Base64Encode(m_data));
    }
  
    return payload.View().WriteReadable();
  }
  
  
  
  
  