/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::DatabaseMigrationService::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ModifyReplicationSubnetGroupRequest::ModifyReplicationSubnetGroupRequest() : m_replicationSubnetGroupIdentifierHasBeenSet(false), m_replicationSubnetGroupDescriptionHasBeenSet(false), m_subnetIdsHasBeenSet(false) { } Aws::String ModifyReplicationSubnetGroupRequest::SerializePayload() const { JsonValue payload; if(m_replicationSubnetGroupIdentifierHasBeenSet) { payload.WithString("ReplicationSubnetGroupIdentifier", m_replicationSubnetGroupIdentifier); } if(m_replicationSubnetGroupDescriptionHasBeenSet) { payload.WithString("ReplicationSubnetGroupDescription", m_replicationSubnetGroupDescription); } if(m_subnetIdsHasBeenSet) { Aws::Utils::Array subnetIdsJsonList(m_subnetIds.size()); for(unsigned subnetIdsIndex = 0; subnetIdsIndex < subnetIdsJsonList.GetLength(); ++subnetIdsIndex) { subnetIdsJsonList[subnetIdsIndex].AsString(m_subnetIds[subnetIdsIndex]); } payload.WithArray("SubnetIds", std::move(subnetIdsJsonList)); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ModifyReplicationSubnetGroupRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDMSv20160101.ModifyReplicationSubnetGroup")); return headers; }