/** * 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 KMS { namespace Model { MultiRegionKey::MultiRegionKey() : m_arnHasBeenSet(false), m_regionHasBeenSet(false) { } MultiRegionKey::MultiRegionKey(JsonView jsonValue) : m_arnHasBeenSet(false), m_regionHasBeenSet(false) { *this = jsonValue; } MultiRegionKey& MultiRegionKey::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Arn")) { m_arn = jsonValue.GetString("Arn"); m_arnHasBeenSet = true; } if(jsonValue.ValueExists("Region")) { m_region = jsonValue.GetString("Region"); m_regionHasBeenSet = true; } return *this; } JsonValue MultiRegionKey::Jsonize() const { JsonValue payload; if(m_arnHasBeenSet) { payload.WithString("Arn", m_arn); } if(m_regionHasBeenSet) { payload.WithString("Region", m_region); } return payload; } } // namespace Model } // namespace KMS } // namespace Aws