/** * 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; VerifyMacRequest::VerifyMacRequest() : m_keyIdentifierHasBeenSet(false), m_macHasBeenSet(false), m_macLength(0), m_macLengthHasBeenSet(false), m_messageDataHasBeenSet(false), m_verificationAttributesHasBeenSet(false) { } Aws::String VerifyMacRequest::SerializePayload() const { JsonValue payload; if(m_keyIdentifierHasBeenSet) { payload.WithString("KeyIdentifier", m_keyIdentifier); } if(m_macHasBeenSet) { payload.WithString("Mac", m_mac); } if(m_macLengthHasBeenSet) { payload.WithInteger("MacLength", m_macLength); } if(m_messageDataHasBeenSet) { payload.WithString("MessageData", m_messageData); } if(m_verificationAttributesHasBeenSet) { payload.WithObject("VerificationAttributes", m_verificationAttributes.Jsonize()); } return payload.View().WriteReadable(); }