/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::DAX::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateSubnetGroupRequest::UpdateSubnetGroupRequest() : m_subnetGroupNameHasBeenSet(false), m_descriptionHasBeenSet(false), m_subnetIdsHasBeenSet(false) { } Aws::String UpdateSubnetGroupRequest::SerializePayload() const { JsonValue payload; if(m_subnetGroupNameHasBeenSet) { payload.WithString("SubnetGroupName", m_subnetGroupName); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } 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 UpdateSubnetGroupRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonDAXV3.UpdateSubnetGroup")); return headers; }