/** * 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 AppRunner { namespace Model { EncryptionConfiguration::EncryptionConfiguration() : m_kmsKeyHasBeenSet(false) { } EncryptionConfiguration::EncryptionConfiguration(JsonView jsonValue) : m_kmsKeyHasBeenSet(false) { *this = jsonValue; } EncryptionConfiguration& EncryptionConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("KmsKey")) { m_kmsKey = jsonValue.GetString("KmsKey"); m_kmsKeyHasBeenSet = true; } return *this; } JsonValue EncryptionConfiguration::Jsonize() const { JsonValue payload; if(m_kmsKeyHasBeenSet) { payload.WithString("KmsKey", m_kmsKey); } return payload; } } // namespace Model } // namespace AppRunner } // namespace Aws