/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::XRay::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; PutEncryptionConfigRequest::PutEncryptionConfigRequest() : m_keyIdHasBeenSet(false), m_type(EncryptionType::NOT_SET), m_typeHasBeenSet(false) { } Aws::String PutEncryptionConfigRequest::SerializePayload() const { JsonValue payload; if(m_keyIdHasBeenSet) { payload.WithString("KeyId", m_keyId); } if(m_typeHasBeenSet) { payload.WithString("Type", EncryptionTypeMapper::GetNameForEncryptionType(m_type)); } return payload.View().WriteReadable(); }