/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Pricing { namespace Model { /** */ class DescribeServicesRequest : public PricingRequest { public: AWS_PRICING_API DescribeServicesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DescribeServices"; } AWS_PRICING_API Aws::String SerializePayload() const override; AWS_PRICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline DescribeServicesRequest& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline DescribeServicesRequest& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} /** *

The code for the service whose information you want to retrieve, such as * AmazonEC2. You can use the ServiceCode to filter the * results in a GetProducts call. To retrieve a list of all services, * leave this blank.

*/ inline DescribeServicesRequest& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline const Aws::String& GetFormatVersion() const{ return m_formatVersion; } /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline bool FormatVersionHasBeenSet() const { return m_formatVersionHasBeenSet; } /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline void SetFormatVersion(const Aws::String& value) { m_formatVersionHasBeenSet = true; m_formatVersion = value; } /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline void SetFormatVersion(Aws::String&& value) { m_formatVersionHasBeenSet = true; m_formatVersion = std::move(value); } /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline void SetFormatVersion(const char* value) { m_formatVersionHasBeenSet = true; m_formatVersion.assign(value); } /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline DescribeServicesRequest& WithFormatVersion(const Aws::String& value) { SetFormatVersion(value); return *this;} /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline DescribeServicesRequest& WithFormatVersion(Aws::String&& value) { SetFormatVersion(std::move(value)); return *this;} /** *

The format version that you want the response to be in.

Valid values * are: aws_v1

*/ inline DescribeServicesRequest& WithFormatVersion(const char* value) { SetFormatVersion(value); return *this;} /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline DescribeServicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline DescribeServicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The pagination token that indicates the next set of results that you want to * retrieve.

*/ inline DescribeServicesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results that you want returned in the response.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results that you want returned in the response.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results that you want returned in the response.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results that you want returned in the response.

*/ inline DescribeServicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_serviceCode; bool m_serviceCodeHasBeenSet = false; Aws::String m_formatVersion; bool m_formatVersionHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Pricing } // namespace Aws