/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::FSx::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteVolumeRequest::DeleteVolumeRequest() : m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true), m_volumeIdHasBeenSet(false), m_ontapConfigurationHasBeenSet(false), m_openZFSConfigurationHasBeenSet(false) { } Aws::String DeleteVolumeRequest::SerializePayload() const { JsonValue payload; if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } if(m_volumeIdHasBeenSet) { payload.WithString("VolumeId", m_volumeId); } if(m_ontapConfigurationHasBeenSet) { payload.WithObject("OntapConfiguration", m_ontapConfiguration.Jsonize()); } if(m_openZFSConfigurationHasBeenSet) { payload.WithObject("OpenZFSConfiguration", m_openZFSConfiguration.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeleteVolumeRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSSimbaAPIService_v20180301.DeleteVolume")); return headers; }