/** * 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; UpdateFileSystemRequest::UpdateFileSystemRequest() : m_fileSystemIdHasBeenSet(false), m_clientRequestToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientRequestTokenHasBeenSet(true), m_storageCapacity(0), m_storageCapacityHasBeenSet(false), m_windowsConfigurationHasBeenSet(false), m_lustreConfigurationHasBeenSet(false), m_ontapConfigurationHasBeenSet(false), m_openZFSConfigurationHasBeenSet(false) { } Aws::String UpdateFileSystemRequest::SerializePayload() const { JsonValue payload; if(m_fileSystemIdHasBeenSet) { payload.WithString("FileSystemId", m_fileSystemId); } if(m_clientRequestTokenHasBeenSet) { payload.WithString("ClientRequestToken", m_clientRequestToken); } if(m_storageCapacityHasBeenSet) { payload.WithInteger("StorageCapacity", m_storageCapacity); } if(m_windowsConfigurationHasBeenSet) { payload.WithObject("WindowsConfiguration", m_windowsConfiguration.Jsonize()); } if(m_lustreConfigurationHasBeenSet) { payload.WithObject("LustreConfiguration", m_lustreConfiguration.Jsonize()); } 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 UpdateFileSystemRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AWSSimbaAPIService_v20180301.UpdateFileSystem")); return headers; }