/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Proton::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; ListComponentsRequest::ListComponentsRequest() : m_environmentNameHasBeenSet(false), m_maxResults(0), m_maxResultsHasBeenSet(false), m_nextTokenHasBeenSet(false), m_serviceInstanceNameHasBeenSet(false), m_serviceNameHasBeenSet(false) { } Aws::String ListComponentsRequest::SerializePayload() const { JsonValue payload; if(m_environmentNameHasBeenSet) { payload.WithString("environmentName", m_environmentName); } if(m_maxResultsHasBeenSet) { payload.WithInteger("maxResults", m_maxResults); } if(m_nextTokenHasBeenSet) { payload.WithString("nextToken", m_nextToken); } if(m_serviceInstanceNameHasBeenSet) { payload.WithString("serviceInstanceName", m_serviceInstanceName); } if(m_serviceNameHasBeenSet) { payload.WithString("serviceName", m_serviceName); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection ListComponentsRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AwsProton20200720.ListComponents")); return headers; }