51 lines
1.0 KiB
C++
51 lines
1.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/codeartifact/model/CreateDomainRequest.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/http/URI.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CodeArtifact::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws::Http;
|
|
|
|
CreateDomainRequest::CreateDomainRequest() :
|
|
m_domainHasBeenSet(false),
|
|
m_encryptionKeyHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String CreateDomainRequest::SerializePayload() const
|
|
{
|
|
JsonValue payload;
|
|
|
|
if(m_encryptionKeyHasBeenSet)
|
|
{
|
|
payload.WithString("encryptionKey", m_encryptionKey);
|
|
|
|
}
|
|
|
|
return payload.View().WriteReadable();
|
|
}
|
|
|
|
void CreateDomainRequest::AddQueryStringParameters(URI& uri) const
|
|
{
|
|
Aws::StringStream ss;
|
|
if(m_domainHasBeenSet)
|
|
{
|
|
ss << m_domain;
|
|
uri.AddQueryStringParameter("domain", ss.str());
|
|
ss.str("");
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|