/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::PaymentCryptographyData::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; EncryptDataRequest::EncryptDataRequest() : m_encryptionAttributesHasBeenSet(false), m_keyIdentifierHasBeenSet(false), m_plainTextHasBeenSet(false) { } Aws::String EncryptDataRequest::SerializePayload() const { JsonValue payload; if(m_encryptionAttributesHasBeenSet) { payload.WithObject("EncryptionAttributes", m_encryptionAttributes.Jsonize()); } if(m_plainTextHasBeenSet) { payload.WithString("PlainText", m_plainText); } return payload.View().WriteReadable(); }