/** * 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; UpdateVolumeRequest::UpdateVolumeRequest() : m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true), m_volumeIdHasBeenSet(false), m_ontapConfigurationHasBeenSet(false), m_nameHasBeenSet(false), m_openZFSConfigurationHasBeenSet(false) { } Aws::String UpdateVolumeRequest::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_nameHasBeenSet) { payload.WithString("Name", m_name); } if(m_openZFSConfigurationHasBeenSet) { payload.WithObject("OpenZFSConfiguration", m_openZFSConfiguration.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateVolumeRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSSimbaAPIService_v20180301.UpdateVolume")); return headers; }