This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codestar-connections/source/model/CreateHostRequest.cpp

65 lines
1.4 KiB
C++
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codestar-connections/model/CreateHostRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::CodeStarconnections::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateHostRequest::CreateHostRequest() :
m_nameHasBeenSet(false),
m_providerType(ProviderType::NOT_SET),
m_providerTypeHasBeenSet(false),
m_providerEndpointHasBeenSet(false),
m_vpcConfigurationHasBeenSet(false)
{
}
Aws::String CreateHostRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("Name", m_name);
}
if(m_providerTypeHasBeenSet)
{
payload.WithString("ProviderType", ProviderTypeMapper::GetNameForProviderType(m_providerType));
}
if(m_providerEndpointHasBeenSet)
{
payload.WithString("ProviderEndpoint", m_providerEndpoint);
}
if(m_vpcConfigurationHasBeenSet)
{
payload.WithObject("VpcConfiguration", m_vpcConfiguration.Jsonize());
}
return payload.View().WriteReadable();
}
Aws::Http::HeaderValueCollection CreateHostRequest::GetRequestSpecificHeaders() const
{
Aws::Http::HeaderValueCollection headers;
headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "com.amazonaws.codestar.connections.CodeStar_connections_20191201.CreateHost"));
return headers;
}