/** * 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 GetAttributeValuesRequest : public PricingRequest { public: AWS_PRICING_API GetAttributeValuesRequest(); // 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 "GetAttributeValues"; } AWS_PRICING_API Aws::String SerializePayload() const override; AWS_PRICING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The service code for the service whose attributes you want to retrieve. For * example, if you want the retrieve an EC2 attribute, use * AmazonEC2.

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

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline const Aws::String& GetAttributeName() const{ return m_attributeName; } /** *

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; } /** *

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; } /** *

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); } /** *

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); } /** *

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline GetAttributeValuesRequest& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;} /** *

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline GetAttributeValuesRequest& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;} /** *

The name of the attribute that you want to retrieve the values for, such as * volumeType.

*/ inline GetAttributeValuesRequest& WithAttributeName(const char* value) { SetAttributeName(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 GetAttributeValuesRequest& 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 GetAttributeValuesRequest& 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 GetAttributeValuesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to return in response.

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

The maximum number of results to return in response.

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

The maximum number of results to return in response.

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

The maximum number of results to return in response.

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