/** * 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 Omics { namespace Model { SseConfig::SseConfig() : m_type(EncryptionType::NOT_SET), m_typeHasBeenSet(false), m_keyArnHasBeenSet(false) { } SseConfig::SseConfig(JsonView jsonValue) : m_type(EncryptionType::NOT_SET), m_typeHasBeenSet(false), m_keyArnHasBeenSet(false) { *this = jsonValue; } SseConfig& SseConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("type")) { m_type = EncryptionTypeMapper::GetEncryptionTypeForName(jsonValue.GetString("type")); m_typeHasBeenSet = true; } if(jsonValue.ValueExists("keyArn")) { m_keyArn = jsonValue.GetString("keyArn"); m_keyArnHasBeenSet = true; } return *this; } JsonValue SseConfig::Jsonize() const { JsonValue payload; if(m_typeHasBeenSet) { payload.WithString("type", EncryptionTypeMapper::GetNameForEncryptionType(m_type)); } if(m_keyArnHasBeenSet) { payload.WithString("keyArn", m_keyArn); } return payload; } } // namespace Model } // namespace Omics } // namespace Aws