38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/cloudfront/model/CreateFieldLevelEncryptionConfig2020_05_31Request.h>
|
|
#include <aws/core/utils/xml/XmlSerializer.h>
|
|
#include <aws/core/utils/memory/stl/AWSStringStream.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::CloudFront::Model;
|
|
using namespace Aws::Utils::Xml;
|
|
using namespace Aws::Utils;
|
|
|
|
CreateFieldLevelEncryptionConfig2020_05_31Request::CreateFieldLevelEncryptionConfig2020_05_31Request() :
|
|
m_fieldLevelEncryptionConfigHasBeenSet(false)
|
|
{
|
|
}
|
|
|
|
Aws::String CreateFieldLevelEncryptionConfig2020_05_31Request::SerializePayload() const
|
|
{
|
|
XmlDocument payloadDoc = XmlDocument::CreateWithRootNode("FieldLevelEncryptionConfig");
|
|
|
|
XmlNode parentNode = payloadDoc.GetRootElement();
|
|
parentNode.SetAttributeValue("xmlns", "http://cloudfront.amazonaws.com/doc/2020-05-31/");
|
|
|
|
m_fieldLevelEncryptionConfig.AddToNode(parentNode);
|
|
if(parentNode.HasChildren())
|
|
{
|
|
return payloadDoc.ConvertToString();
|
|
}
|
|
|
|
return {};
|
|
}
|
|
|
|
|