/** * 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 NimbleStudio { namespace Model { StreamingImageEncryptionConfiguration::StreamingImageEncryptionConfiguration() : m_keyArnHasBeenSet(false), m_keyType(StreamingImageEncryptionConfigurationKeyType::NOT_SET), m_keyTypeHasBeenSet(false) { } StreamingImageEncryptionConfiguration::StreamingImageEncryptionConfiguration(JsonView jsonValue) : m_keyArnHasBeenSet(false), m_keyType(StreamingImageEncryptionConfigurationKeyType::NOT_SET), m_keyTypeHasBeenSet(false) { *this = jsonValue; } StreamingImageEncryptionConfiguration& StreamingImageEncryptionConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("keyArn")) { m_keyArn = jsonValue.GetString("keyArn"); m_keyArnHasBeenSet = true; } if(jsonValue.ValueExists("keyType")) { m_keyType = StreamingImageEncryptionConfigurationKeyTypeMapper::GetStreamingImageEncryptionConfigurationKeyTypeForName(jsonValue.GetString("keyType")); m_keyTypeHasBeenSet = true; } return *this; } JsonValue StreamingImageEncryptionConfiguration::Jsonize() const { JsonValue payload; if(m_keyArnHasBeenSet) { payload.WithString("keyArn", m_keyArn); } if(m_keyTypeHasBeenSet) { payload.WithString("keyType", StreamingImageEncryptionConfigurationKeyTypeMapper::GetNameForStreamingImageEncryptionConfigurationKeyType(m_keyType)); } return payload; } } // namespace Model } // namespace NimbleStudio } // namespace Aws