text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #include <aws/servicediscovery/model/CreatePrivateDnsNamespaceRequest.h>
  #include <aws/core/utils/json/JsonSerializer.h>
  
  #include <utility>
  
  using namespace Aws::ServiceDiscovery::Model;
  using namespace Aws::Utils::Json;
  using namespace Aws::Utils;
  
  CreatePrivateDnsNamespaceRequest::CreatePrivateDnsNamespaceRequest() : 
      m_nameHasBeenSet(false),
      m_creatorRequestId(Aws::Utils::UUID::RandomUUID()),
      m_creatorRequestIdHasBeenSet(true),
      m_descriptionHasBeenSet(false),
      m_vpcHasBeenSet(false),
      m_tagsHasBeenSet(false),
      m_propertiesHasBeenSet(false)
  {
  }
  
  Aws::String CreatePrivateDnsNamespaceRequest::SerializePayload() const
  {
    JsonValue payload;
  
    if(m_nameHasBeenSet)
    {
     payload.WithString("Name", m_name);
  
    }
  
    if(m_creatorRequestIdHasBeenSet)
    {
     payload.WithString("CreatorRequestId", m_creatorRequestId);
  
    }
  
    if(m_descriptionHasBeenSet)
    {
     payload.WithString("Description", m_description);
  
    }
  
    if(m_vpcHasBeenSet)
    {
     payload.WithString("Vpc", m_vpc);
  
    }
  
    if(m_tagsHasBeenSet)
    {
     Array<JsonValue> tagsJsonList(m_tags.size());
     for(unsigned tagsIndex = 0; tagsIndex < tagsJsonList.GetLength(); ++tagsIndex)
     {
       tagsJsonList[tagsIndex].AsObject(m_tags[tagsIndex].Jsonize());
     }
     payload.WithArray("Tags", std::move(tagsJsonList));
  
    }
  
    if(m_propertiesHasBeenSet)
    {
     payload.WithObject("Properties", m_properties.Jsonize());
  
    }
  
    return payload.View().WriteReadable();
  }
  
  Aws::Http::HeaderValueCollection CreatePrivateDnsNamespaceRequest::GetRequestSpecificHeaders() const
  {
    Aws::Http::HeaderValueCollection headers;
    headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "Route53AutoNaming_v20170314.CreatePrivateDnsNamespace"));
    return headers;
  
  }
  
  
  
  
  