/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace MarketplaceEntitlementService { namespace Model { /** *

The GetEntitlementsRequest contains parameters for the GetEntitlements * operation.

See Also:

AWS * API Reference

*/ class GetEntitlementsRequest : public MarketplaceEntitlementServiceRequest { public: AWS_MARKETPLACEENTITLEMENTSERVICE_API GetEntitlementsRequest(); // 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 "GetEntitlements"; } AWS_MARKETPLACEENTITLEMENTSERVICE_API Aws::String SerializePayload() const override; AWS_MARKETPLACEENTITLEMENTSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline const Aws::String& GetProductCode() const{ return m_productCode; } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline bool ProductCodeHasBeenSet() const { return m_productCodeHasBeenSet; } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline void SetProductCode(const Aws::String& value) { m_productCodeHasBeenSet = true; m_productCode = value; } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline void SetProductCode(Aws::String&& value) { m_productCodeHasBeenSet = true; m_productCode = std::move(value); } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline void SetProductCode(const char* value) { m_productCodeHasBeenSet = true; m_productCode.assign(value); } /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline GetEntitlementsRequest& WithProductCode(const Aws::String& value) { SetProductCode(value); return *this;} /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline GetEntitlementsRequest& WithProductCode(Aws::String&& value) { SetProductCode(std::move(value)); return *this;} /** *

Product code is used to uniquely identify a product in AWS Marketplace. The * product code will be provided by AWS Marketplace when the product listing is * created.

*/ inline GetEntitlementsRequest& WithProductCode(const char* value) { SetProductCode(value); return *this;} /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline const Aws::Map>& GetFilter() const{ return m_filter; } /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline void SetFilter(const Aws::Map>& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline void SetFilter(Aws::Map>&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline GetEntitlementsRequest& WithFilter(const Aws::Map>& value) { SetFilter(value); return *this;} /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline GetEntitlementsRequest& WithFilter(Aws::Map>&& value) { SetFilter(std::move(value)); return *this;} /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline GetEntitlementsRequest& AddFilter(const GetEntitlementFilterName& key, const Aws::Vector& value) { m_filterHasBeenSet = true; m_filter.emplace(key, value); return *this; } /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline GetEntitlementsRequest& AddFilter(GetEntitlementFilterName&& key, const Aws::Vector& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), value); return *this; } /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline GetEntitlementsRequest& AddFilter(const GetEntitlementFilterName& key, Aws::Vector&& value) { m_filterHasBeenSet = true; m_filter.emplace(key, std::move(value)); return *this; } /** *

Filter is used to return entitlements for a specific customer or for a * specific dimension. Filters are described as keys mapped to a lists of values. * Filtered requests are unioned for each value in the value list, and then * intersected for each filter key.

*/ inline GetEntitlementsRequest& AddFilter(GetEntitlementFilterName&& key, Aws::Vector&& value) { m_filterHasBeenSet = true; m_filter.emplace(std::move(key), std::move(value)); return *this; } /** *

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

For paginated calls to GetEntitlements, pass the NextToken from the previous * GetEntitlementsResult.

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

The maximum number of items to retrieve from the GetEntitlements operation. * For pagination, use the NextToken field in subsequent calls to * GetEntitlements.

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

The maximum number of items to retrieve from the GetEntitlements operation. * For pagination, use the NextToken field in subsequent calls to * GetEntitlements.

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

The maximum number of items to retrieve from the GetEntitlements operation. * For pagination, use the NextToken field in subsequent calls to * GetEntitlements.

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

The maximum number of items to retrieve from the GetEntitlements operation. * For pagination, use the NextToken field in subsequent calls to * GetEntitlements.

*/ inline GetEntitlementsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_productCode; bool m_productCodeHasBeenSet = false; Aws::Map> m_filter; bool m_filterHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace MarketplaceEntitlementService } // namespace Aws