/** * 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 SecurityHub { namespace Model { AwsXrayEncryptionConfigDetails::AwsXrayEncryptionConfigDetails() : m_keyIdHasBeenSet(false), m_statusHasBeenSet(false), m_typeHasBeenSet(false) { } AwsXrayEncryptionConfigDetails::AwsXrayEncryptionConfigDetails(JsonView jsonValue) : m_keyIdHasBeenSet(false), m_statusHasBeenSet(false), m_typeHasBeenSet(false) { *this = jsonValue; } AwsXrayEncryptionConfigDetails& AwsXrayEncryptionConfigDetails::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("KeyId")) { m_keyId = jsonValue.GetString("KeyId"); m_keyIdHasBeenSet = true; } if(jsonValue.ValueExists("Status")) { m_status = jsonValue.GetString("Status"); m_statusHasBeenSet = true; } if(jsonValue.ValueExists("Type")) { m_type = jsonValue.GetString("Type"); m_typeHasBeenSet = true; } return *this; } JsonValue AwsXrayEncryptionConfigDetails::Jsonize() const { JsonValue payload; if(m_keyIdHasBeenSet) { payload.WithString("KeyId", m_keyId); } if(m_statusHasBeenSet) { payload.WithString("Status", m_status); } if(m_typeHasBeenSet) { payload.WithString("Type", m_type); } return payload; } } // namespace Model } // namespace SecurityHub } // namespace Aws