/** * 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 PaymentCryptography { namespace Model { ExportKeyMaterial::ExportKeyMaterial() : m_tr31KeyBlockHasBeenSet(false), m_tr34KeyBlockHasBeenSet(false) { } ExportKeyMaterial::ExportKeyMaterial(JsonView jsonValue) : m_tr31KeyBlockHasBeenSet(false), m_tr34KeyBlockHasBeenSet(false) { *this = jsonValue; } ExportKeyMaterial& ExportKeyMaterial::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Tr31KeyBlock")) { m_tr31KeyBlock = jsonValue.GetObject("Tr31KeyBlock"); m_tr31KeyBlockHasBeenSet = true; } if(jsonValue.ValueExists("Tr34KeyBlock")) { m_tr34KeyBlock = jsonValue.GetObject("Tr34KeyBlock"); m_tr34KeyBlockHasBeenSet = true; } return *this; } JsonValue ExportKeyMaterial::Jsonize() const { JsonValue payload; if(m_tr31KeyBlockHasBeenSet) { payload.WithObject("Tr31KeyBlock", m_tr31KeyBlock.Jsonize()); } if(m_tr34KeyBlockHasBeenSet) { payload.WithObject("Tr34KeyBlock", m_tr34KeyBlock.Jsonize()); } return payload; } } // namespace Model } // namespace PaymentCryptography } // namespace Aws