/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace PaymentCryptographyData { namespace Model { SessionKeyDerivation::SessionKeyDerivation() : m_amexHasBeenSet(false), m_emv2000HasBeenSet(false), m_emvCommonHasBeenSet(false), m_mastercardHasBeenSet(false), m_visaHasBeenSet(false) { } SessionKeyDerivation::SessionKeyDerivation(JsonView jsonValue) : m_amexHasBeenSet(false), m_emv2000HasBeenSet(false), m_emvCommonHasBeenSet(false), m_mastercardHasBeenSet(false), m_visaHasBeenSet(false) { *this = jsonValue; } SessionKeyDerivation& SessionKeyDerivation::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Amex")) { m_amex = jsonValue.GetObject("Amex"); m_amexHasBeenSet = true; } if(jsonValue.ValueExists("Emv2000")) { m_emv2000 = jsonValue.GetObject("Emv2000"); m_emv2000HasBeenSet = true; } if(jsonValue.ValueExists("EmvCommon")) { m_emvCommon = jsonValue.GetObject("EmvCommon"); m_emvCommonHasBeenSet = true; } if(jsonValue.ValueExists("Mastercard")) { m_mastercard = jsonValue.GetObject("Mastercard"); m_mastercardHasBeenSet = true; } if(jsonValue.ValueExists("Visa")) { m_visa = jsonValue.GetObject("Visa"); m_visaHasBeenSet = true; } return *this; } JsonValue SessionKeyDerivation::Jsonize() const { JsonValue payload; if(m_amexHasBeenSet) { payload.WithObject("Amex", m_amex.Jsonize()); } if(m_emv2000HasBeenSet) { payload.WithObject("Emv2000", m_emv2000.Jsonize()); } if(m_emvCommonHasBeenSet) { payload.WithObject("EmvCommon", m_emvCommon.Jsonize()); } if(m_mastercardHasBeenSet) { payload.WithObject("Mastercard", m_mastercard.Jsonize()); } if(m_visaHasBeenSet) { payload.WithObject("Visa", m_visa.Jsonize()); } return payload; } } // namespace Model } // namespace PaymentCryptographyData } // namespace Aws