/** * 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; GenerateCardValidationDataRequest::GenerateCardValidationDataRequest() : m_generationAttributesHasBeenSet(false), m_keyIdentifierHasBeenSet(false), m_primaryAccountNumberHasBeenSet(false), m_validationDataLength(0), m_validationDataLengthHasBeenSet(false) { } Aws::String GenerateCardValidationDataRequest::SerializePayload() const { JsonValue payload; if(m_generationAttributesHasBeenSet) { payload.WithObject("GenerationAttributes", m_generationAttributes.Jsonize()); } if(m_keyIdentifierHasBeenSet) { payload.WithString("KeyIdentifier", m_keyIdentifier); } if(m_primaryAccountNumberHasBeenSet) { payload.WithString("PrimaryAccountNumber", m_primaryAccountNumber); } if(m_validationDataLengthHasBeenSet) { payload.WithInteger("ValidationDataLength", m_validationDataLength); } return payload.View().WriteReadable(); }