/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class DescribeHostReservationOfferingsRequest : public EC2Request { public: AWS_EC2_API DescribeHostReservationOfferingsRequest(); // 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 "DescribeHostReservationOfferings"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

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

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

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

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

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

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

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

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

*/ inline DescribeHostReservationOfferingsRequest& WithFilter(const Aws::Vector& value) { SetFilter(value); return *this;} /** *

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

*/ inline DescribeHostReservationOfferingsRequest& WithFilter(Aws::Vector&& value) { SetFilter(std::move(value)); return *this;} /** *

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

*/ inline DescribeHostReservationOfferingsRequest& AddFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter.push_back(value); return *this; } /** *

The filters.

  • instance-family - The instance * family of the offering (for example, m4).

  • * payment-option - The payment option (NoUpfront | * PartialUpfront | AllUpfront).

*/ inline DescribeHostReservationOfferingsRequest& AddFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter.push_back(std::move(value)); return *this; } /** *

This is the maximum duration of the reservation to purchase, specified in * seconds. Reservations are available in one-year and three-year terms. The number * of seconds specified must be the number of seconds in a year (365x24x60x60) * times one of the supported durations (1 or 3). For example, specify 94608000 for * three years.

*/ inline int GetMaxDuration() const{ return m_maxDuration; } /** *

This is the maximum duration of the reservation to purchase, specified in * seconds. Reservations are available in one-year and three-year terms. The number * of seconds specified must be the number of seconds in a year (365x24x60x60) * times one of the supported durations (1 or 3). For example, specify 94608000 for * three years.

*/ inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; } /** *

This is the maximum duration of the reservation to purchase, specified in * seconds. Reservations are available in one-year and three-year terms. The number * of seconds specified must be the number of seconds in a year (365x24x60x60) * times one of the supported durations (1 or 3). For example, specify 94608000 for * three years.

*/ inline void SetMaxDuration(int value) { m_maxDurationHasBeenSet = true; m_maxDuration = value; } /** *

This is the maximum duration of the reservation to purchase, specified in * seconds. Reservations are available in one-year and three-year terms. The number * of seconds specified must be the number of seconds in a year (365x24x60x60) * times one of the supported durations (1 or 3). For example, specify 94608000 for * three years.

*/ inline DescribeHostReservationOfferingsRequest& WithMaxDuration(int value) { SetMaxDuration(value); return *this;} /** *

The maximum number of results to return for the request in a single page. The * remaining results can be seen by sending another request with the returned * nextToken value. This value can be between 5 and 500. If * maxResults is given a larger value than 500, you receive an * error.

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

The maximum number of results to return for the request in a single page. The * remaining results can be seen by sending another request with the returned * nextToken value. This value can be between 5 and 500. If * maxResults is given a larger value than 500, you receive an * error.

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

The maximum number of results to return for the request in a single page. The * remaining results can be seen by sending another request with the returned * nextToken value. This value can be between 5 and 500. If * maxResults is given a larger value than 500, you receive an * error.

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

The maximum number of results to return for the request in a single page. The * remaining results can be seen by sending another request with the returned * nextToken value. This value can be between 5 and 500. If * maxResults is given a larger value than 500, you receive an * error.

*/ inline DescribeHostReservationOfferingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

This is the minimum duration of the reservation you'd like to purchase, * specified in seconds. Reservations are available in one-year and three-year * terms. The number of seconds specified must be the number of seconds in a year * (365x24x60x60) times one of the supported durations (1 or 3). For example, * specify 31536000 for one year.

*/ inline int GetMinDuration() const{ return m_minDuration; } /** *

This is the minimum duration of the reservation you'd like to purchase, * specified in seconds. Reservations are available in one-year and three-year * terms. The number of seconds specified must be the number of seconds in a year * (365x24x60x60) times one of the supported durations (1 or 3). For example, * specify 31536000 for one year.

*/ inline bool MinDurationHasBeenSet() const { return m_minDurationHasBeenSet; } /** *

This is the minimum duration of the reservation you'd like to purchase, * specified in seconds. Reservations are available in one-year and three-year * terms. The number of seconds specified must be the number of seconds in a year * (365x24x60x60) times one of the supported durations (1 or 3). For example, * specify 31536000 for one year.

*/ inline void SetMinDuration(int value) { m_minDurationHasBeenSet = true; m_minDuration = value; } /** *

This is the minimum duration of the reservation you'd like to purchase, * specified in seconds. Reservations are available in one-year and three-year * terms. The number of seconds specified must be the number of seconds in a year * (365x24x60x60) times one of the supported durations (1 or 3). For example, * specify 31536000 for one year.

*/ inline DescribeHostReservationOfferingsRequest& WithMinDuration(int value) { SetMinDuration(value); return *this;} /** *

The token to use to retrieve the next page of results.

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

The token to use to retrieve the next page of results.

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

The token to use to retrieve the next page of results.

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

The token to use to retrieve the next page of results.

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

The token to use to retrieve the next page of results.

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

The token to use to retrieve the next page of results.

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

The token to use to retrieve the next page of results.

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

The token to use to retrieve the next page of results.

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

The ID of the reservation offering.

*/ inline const Aws::String& GetOfferingId() const{ return m_offeringId; } /** *

The ID of the reservation offering.

*/ inline bool OfferingIdHasBeenSet() const { return m_offeringIdHasBeenSet; } /** *

The ID of the reservation offering.

*/ inline void SetOfferingId(const Aws::String& value) { m_offeringIdHasBeenSet = true; m_offeringId = value; } /** *

The ID of the reservation offering.

*/ inline void SetOfferingId(Aws::String&& value) { m_offeringIdHasBeenSet = true; m_offeringId = std::move(value); } /** *

The ID of the reservation offering.

*/ inline void SetOfferingId(const char* value) { m_offeringIdHasBeenSet = true; m_offeringId.assign(value); } /** *

The ID of the reservation offering.

*/ inline DescribeHostReservationOfferingsRequest& WithOfferingId(const Aws::String& value) { SetOfferingId(value); return *this;} /** *

The ID of the reservation offering.

*/ inline DescribeHostReservationOfferingsRequest& WithOfferingId(Aws::String&& value) { SetOfferingId(std::move(value)); return *this;} /** *

The ID of the reservation offering.

*/ inline DescribeHostReservationOfferingsRequest& WithOfferingId(const char* value) { SetOfferingId(value); return *this;} private: Aws::Vector m_filter; bool m_filterHasBeenSet = false; int m_maxDuration; bool m_maxDurationHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; int m_minDuration; bool m_minDurationHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_offeringId; bool m_offeringIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws