/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Inspector2::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateEncryptionKeyRequest::UpdateEncryptionKeyRequest() : m_kmsKeyIdHasBeenSet(false), m_resourceType(ResourceType::NOT_SET), m_resourceTypeHasBeenSet(false), m_scanType(ScanType::NOT_SET), m_scanTypeHasBeenSet(false) { } Aws::String UpdateEncryptionKeyRequest::SerializePayload() const { JsonValue payload; if(m_kmsKeyIdHasBeenSet) { payload.WithString("kmsKeyId", m_kmsKeyId); } if(m_resourceTypeHasBeenSet) { payload.WithString("resourceType", ResourceTypeMapper::GetNameForResourceType(m_resourceType)); } if(m_scanTypeHasBeenSet) { payload.WithString("scanType", ScanTypeMapper::GetNameForScanType(m_scanType)); } return payload.View().WriteReadable(); }