/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::StorageGateway::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateFileSystemAssociationRequest::UpdateFileSystemAssociationRequest() : m_fileSystemAssociationARNHasBeenSet(false), m_userNameHasBeenSet(false), m_passwordHasBeenSet(false), m_auditDestinationARNHasBeenSet(false), m_cacheAttributesHasBeenSet(false) { } Aws::String UpdateFileSystemAssociationRequest::SerializePayload() const { JsonValue payload; if(m_fileSystemAssociationARNHasBeenSet) { payload.WithString("FileSystemAssociationARN", m_fileSystemAssociationARN); } if(m_userNameHasBeenSet) { payload.WithString("UserName", m_userName); } if(m_passwordHasBeenSet) { payload.WithString("Password", m_password); } if(m_auditDestinationARNHasBeenSet) { payload.WithString("AuditDestinationARN", m_auditDestinationARN); } if(m_cacheAttributesHasBeenSet) { payload.WithObject("CacheAttributes", m_cacheAttributes.Jsonize()); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection UpdateFileSystemAssociationRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "StorageGateway_20130630.UpdateFileSystemAssociation")); return headers; }