/** * 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 #include #include #include namespace Aws { namespace CostExplorer { namespace Model { /** */ class GetReservationPurchaseRecommendationRequest : public CostExplorerRequest { public: AWS_COSTEXPLORER_API GetReservationPurchaseRecommendationRequest(); // 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 "GetReservationPurchaseRecommendation"; } AWS_COSTEXPLORER_API Aws::String SerializePayload() const override; AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The account ID that's associated with the recommendation.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The account ID that's associated with the recommendation.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The account ID that's associated with the recommendation.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The account ID that's associated with the recommendation.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The account ID that's associated with the recommendation.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The account ID that's associated with the recommendation.

*/ inline GetReservationPurchaseRecommendationRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The account ID that's associated with the recommendation.

*/ inline GetReservationPurchaseRecommendationRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The account ID that's associated with the recommendation.

*/ inline GetReservationPurchaseRecommendationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The specific service that you want recommendations for.

*/ inline const Aws::String& GetService() const{ return m_service; } /** *

The specific service that you want recommendations for.

*/ inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; } /** *

The specific service that you want recommendations for.

*/ inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; } /** *

The specific service that you want recommendations for.

*/ inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); } /** *

The specific service that you want recommendations for.

*/ inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); } /** *

The specific service that you want recommendations for.

*/ inline GetReservationPurchaseRecommendationRequest& WithService(const Aws::String& value) { SetService(value); return *this;} /** *

The specific service that you want recommendations for.

*/ inline GetReservationPurchaseRecommendationRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;} /** *

The specific service that you want recommendations for.

*/ inline GetReservationPurchaseRecommendationRequest& WithService(const char* value) { SetService(value); return *this;} inline const Expression& GetFilter() const{ return m_filter; } inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } inline void SetFilter(const Expression& value) { m_filterHasBeenSet = true; m_filter = value; } inline void SetFilter(Expression&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } inline GetReservationPurchaseRecommendationRequest& WithFilter(const Expression& value) { SetFilter(value); return *this;} inline GetReservationPurchaseRecommendationRequest& WithFilter(Expression&& value) { SetFilter(std::move(value)); return *this;} /** *

The account scope that you want your recommendations for. Amazon Web Services * calculates recommendations including the management account and member accounts * if the value is set to PAYER. If the value is LINKED, * recommendations are calculated for individual member accounts only.

*/ inline const AccountScope& GetAccountScope() const{ return m_accountScope; } /** *

The account scope that you want your recommendations for. Amazon Web Services * calculates recommendations including the management account and member accounts * if the value is set to PAYER. If the value is LINKED, * recommendations are calculated for individual member accounts only.

*/ inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; } /** *

The account scope that you want your recommendations for. Amazon Web Services * calculates recommendations including the management account and member accounts * if the value is set to PAYER. If the value is LINKED, * recommendations are calculated for individual member accounts only.

*/ inline void SetAccountScope(const AccountScope& value) { m_accountScopeHasBeenSet = true; m_accountScope = value; } /** *

The account scope that you want your recommendations for. Amazon Web Services * calculates recommendations including the management account and member accounts * if the value is set to PAYER. If the value is LINKED, * recommendations are calculated for individual member accounts only.

*/ inline void SetAccountScope(AccountScope&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::move(value); } /** *

The account scope that you want your recommendations for. Amazon Web Services * calculates recommendations including the management account and member accounts * if the value is set to PAYER. If the value is LINKED, * recommendations are calculated for individual member accounts only.

*/ inline GetReservationPurchaseRecommendationRequest& WithAccountScope(const AccountScope& value) { SetAccountScope(value); return *this;} /** *

The account scope that you want your recommendations for. Amazon Web Services * calculates recommendations including the management account and member accounts * if the value is set to PAYER. If the value is LINKED, * recommendations are calculated for individual member accounts only.

*/ inline GetReservationPurchaseRecommendationRequest& WithAccountScope(AccountScope&& value) { SetAccountScope(std::move(value)); return *this;} /** *

The number of previous days that you want Amazon Web Services to consider * when it calculates your recommendations.

*/ inline const LookbackPeriodInDays& GetLookbackPeriodInDays() const{ return m_lookbackPeriodInDays; } /** *

The number of previous days that you want Amazon Web Services to consider * when it calculates your recommendations.

*/ inline bool LookbackPeriodInDaysHasBeenSet() const { return m_lookbackPeriodInDaysHasBeenSet; } /** *

The number of previous days that you want Amazon Web Services to consider * when it calculates your recommendations.

*/ inline void SetLookbackPeriodInDays(const LookbackPeriodInDays& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = value; } /** *

The number of previous days that you want Amazon Web Services to consider * when it calculates your recommendations.

*/ inline void SetLookbackPeriodInDays(LookbackPeriodInDays&& value) { m_lookbackPeriodInDaysHasBeenSet = true; m_lookbackPeriodInDays = std::move(value); } /** *

The number of previous days that you want Amazon Web Services to consider * when it calculates your recommendations.

*/ inline GetReservationPurchaseRecommendationRequest& WithLookbackPeriodInDays(const LookbackPeriodInDays& value) { SetLookbackPeriodInDays(value); return *this;} /** *

The number of previous days that you want Amazon Web Services to consider * when it calculates your recommendations.

*/ inline GetReservationPurchaseRecommendationRequest& WithLookbackPeriodInDays(LookbackPeriodInDays&& value) { SetLookbackPeriodInDays(std::move(value)); return *this;} /** *

The reservation term that you want recommendations for.

*/ inline const TermInYears& GetTermInYears() const{ return m_termInYears; } /** *

The reservation term that you want recommendations for.

*/ inline bool TermInYearsHasBeenSet() const { return m_termInYearsHasBeenSet; } /** *

The reservation term that you want recommendations for.

*/ inline void SetTermInYears(const TermInYears& value) { m_termInYearsHasBeenSet = true; m_termInYears = value; } /** *

The reservation term that you want recommendations for.

*/ inline void SetTermInYears(TermInYears&& value) { m_termInYearsHasBeenSet = true; m_termInYears = std::move(value); } /** *

The reservation term that you want recommendations for.

*/ inline GetReservationPurchaseRecommendationRequest& WithTermInYears(const TermInYears& value) { SetTermInYears(value); return *this;} /** *

The reservation term that you want recommendations for.

*/ inline GetReservationPurchaseRecommendationRequest& WithTermInYears(TermInYears&& value) { SetTermInYears(std::move(value)); return *this;} /** *

The reservation purchase option that you want recommendations for.

*/ inline const PaymentOption& GetPaymentOption() const{ return m_paymentOption; } /** *

The reservation purchase option that you want recommendations for.

*/ inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; } /** *

The reservation purchase option that you want recommendations for.

*/ inline void SetPaymentOption(const PaymentOption& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; } /** *

The reservation purchase option that you want recommendations for.

*/ inline void SetPaymentOption(PaymentOption&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); } /** *

The reservation purchase option that you want recommendations for.

*/ inline GetReservationPurchaseRecommendationRequest& WithPaymentOption(const PaymentOption& value) { SetPaymentOption(value); return *this;} /** *

The reservation purchase option that you want recommendations for.

*/ inline GetReservationPurchaseRecommendationRequest& WithPaymentOption(PaymentOption&& value) { SetPaymentOption(std::move(value)); return *this;} /** *

The hardware specifications for the service instances that you want * recommendations for, such as standard or convertible Amazon EC2 instances.

*/ inline const ServiceSpecification& GetServiceSpecification() const{ return m_serviceSpecification; } /** *

The hardware specifications for the service instances that you want * recommendations for, such as standard or convertible Amazon EC2 instances.

*/ inline bool ServiceSpecificationHasBeenSet() const { return m_serviceSpecificationHasBeenSet; } /** *

The hardware specifications for the service instances that you want * recommendations for, such as standard or convertible Amazon EC2 instances.

*/ inline void SetServiceSpecification(const ServiceSpecification& value) { m_serviceSpecificationHasBeenSet = true; m_serviceSpecification = value; } /** *

The hardware specifications for the service instances that you want * recommendations for, such as standard or convertible Amazon EC2 instances.

*/ inline void SetServiceSpecification(ServiceSpecification&& value) { m_serviceSpecificationHasBeenSet = true; m_serviceSpecification = std::move(value); } /** *

The hardware specifications for the service instances that you want * recommendations for, such as standard or convertible Amazon EC2 instances.

*/ inline GetReservationPurchaseRecommendationRequest& WithServiceSpecification(const ServiceSpecification& value) { SetServiceSpecification(value); return *this;} /** *

The hardware specifications for the service instances that you want * recommendations for, such as standard or convertible Amazon EC2 instances.

*/ inline GetReservationPurchaseRecommendationRequest& WithServiceSpecification(ServiceSpecification&& value) { SetServiceSpecification(std::move(value)); return *this;} /** *

The number of recommendations that you want returned in a single response * object.

*/ inline int GetPageSize() const{ return m_pageSize; } /** *

The number of recommendations that you want returned in a single response * object.

*/ inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } /** *

The number of recommendations that you want returned in a single response * object.

*/ inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } /** *

The number of recommendations that you want returned in a single response * object.

*/ inline GetReservationPurchaseRecommendationRequest& WithPageSize(int value) { SetPageSize(value); return *this;} /** *

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

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

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

*/ inline bool NextPageTokenHasBeenSet() const { return m_nextPageTokenHasBeenSet; } /** *

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

*/ inline void SetNextPageToken(const Aws::String& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = value; } /** *

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

*/ inline void SetNextPageToken(Aws::String&& value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken = std::move(value); } /** *

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

*/ inline void SetNextPageToken(const char* value) { m_nextPageTokenHasBeenSet = true; m_nextPageToken.assign(value); } /** *

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

*/ inline GetReservationPurchaseRecommendationRequest& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

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

*/ inline GetReservationPurchaseRecommendationRequest& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

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

*/ inline GetReservationPurchaseRecommendationRequest& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_service; bool m_serviceHasBeenSet = false; Expression m_filter; bool m_filterHasBeenSet = false; AccountScope m_accountScope; bool m_accountScopeHasBeenSet = false; LookbackPeriodInDays m_lookbackPeriodInDays; bool m_lookbackPeriodInDaysHasBeenSet = false; TermInYears m_termInYears; bool m_termInYearsHasBeenSet = false; PaymentOption m_paymentOption; bool m_paymentOptionHasBeenSet = false; ServiceSpecification m_serviceSpecification; bool m_serviceSpecificationHasBeenSet = false; int m_pageSize; bool m_pageSizeHasBeenSet = false; Aws::String m_nextPageToken; bool m_nextPageTokenHasBeenSet = false; }; } // namespace Model } // namespace CostExplorer } // namespace Aws