/** * 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 namespace Aws { namespace EC2 { namespace Model { /** *

Contains the parameters for * DescribeScheduledInstanceAvailability.

See Also:

AWS * API Reference

*/ class DescribeScheduledInstanceAvailabilityRequest : public EC2Request { public: AWS_EC2_API DescribeScheduledInstanceAvailabilityRequest(); // 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 "DescribeScheduledInstanceAvailability"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline DescribeScheduledInstanceAvailabilityRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

The filters.

  • availability-zone - The * Availability Zone (for example, us-west-2a).

  • * instance-type - The instance type (for example, * c4.large).

  • platform - The platform * (Linux/UNIX or Windows).

*/ inline DescribeScheduledInstanceAvailabilityRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The time period for the first schedule to start.

*/ inline const SlotDateTimeRangeRequest& GetFirstSlotStartTimeRange() const{ return m_firstSlotStartTimeRange; } /** *

The time period for the first schedule to start.

*/ inline bool FirstSlotStartTimeRangeHasBeenSet() const { return m_firstSlotStartTimeRangeHasBeenSet; } /** *

The time period for the first schedule to start.

*/ inline void SetFirstSlotStartTimeRange(const SlotDateTimeRangeRequest& value) { m_firstSlotStartTimeRangeHasBeenSet = true; m_firstSlotStartTimeRange = value; } /** *

The time period for the first schedule to start.

*/ inline void SetFirstSlotStartTimeRange(SlotDateTimeRangeRequest&& value) { m_firstSlotStartTimeRangeHasBeenSet = true; m_firstSlotStartTimeRange = std::move(value); } /** *

The time period for the first schedule to start.

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithFirstSlotStartTimeRange(const SlotDateTimeRangeRequest& value) { SetFirstSlotStartTimeRange(value); return *this;} /** *

The time period for the first schedule to start.

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithFirstSlotStartTimeRange(SlotDateTimeRangeRequest&& value) { SetFirstSlotStartTimeRange(std::move(value)); return *this;} /** *

The maximum number of results to return in a single call. This value can be * between 5 and 300. The default value is 300. To retrieve the remaining results, * make another call with the returned NextToken value.

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

The maximum number of results to return in a single call. This value can be * between 5 and 300. The default value is 300. To retrieve the remaining results, * make another call with the returned NextToken value.

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

The maximum number of results to return in a single call. This value can be * between 5 and 300. The default value is 300. To retrieve the remaining results, * make another call with the returned NextToken value.

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

The maximum number of results to return in a single call. This value can be * between 5 and 300. The default value is 300. To retrieve the remaining results, * make another call with the returned NextToken value.

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

The maximum available duration, in hours. This value must be greater than * MinSlotDurationInHours and less than 1,720.

*/ inline int GetMaxSlotDurationInHours() const{ return m_maxSlotDurationInHours; } /** *

The maximum available duration, in hours. This value must be greater than * MinSlotDurationInHours and less than 1,720.

*/ inline bool MaxSlotDurationInHoursHasBeenSet() const { return m_maxSlotDurationInHoursHasBeenSet; } /** *

The maximum available duration, in hours. This value must be greater than * MinSlotDurationInHours and less than 1,720.

*/ inline void SetMaxSlotDurationInHours(int value) { m_maxSlotDurationInHoursHasBeenSet = true; m_maxSlotDurationInHours = value; } /** *

The maximum available duration, in hours. This value must be greater than * MinSlotDurationInHours and less than 1,720.

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithMaxSlotDurationInHours(int value) { SetMaxSlotDurationInHours(value); return *this;} /** *

The minimum available duration, in hours. The minimum required duration is * 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the * minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 * hours.

*/ inline int GetMinSlotDurationInHours() const{ return m_minSlotDurationInHours; } /** *

The minimum available duration, in hours. The minimum required duration is * 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the * minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 * hours.

*/ inline bool MinSlotDurationInHoursHasBeenSet() const { return m_minSlotDurationInHoursHasBeenSet; } /** *

The minimum available duration, in hours. The minimum required duration is * 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the * minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 * hours.

*/ inline void SetMinSlotDurationInHours(int value) { m_minSlotDurationInHoursHasBeenSet = true; m_minSlotDurationInHours = value; } /** *

The minimum available duration, in hours. The minimum required duration is * 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the * minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 * hours.

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithMinSlotDurationInHours(int value) { SetMinSlotDurationInHours(value); return *this;} /** *

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The token for the next set of results.

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

The schedule recurrence.

*/ inline const ScheduledInstanceRecurrenceRequest& GetRecurrence() const{ return m_recurrence; } /** *

The schedule recurrence.

*/ inline bool RecurrenceHasBeenSet() const { return m_recurrenceHasBeenSet; } /** *

The schedule recurrence.

*/ inline void SetRecurrence(const ScheduledInstanceRecurrenceRequest& value) { m_recurrenceHasBeenSet = true; m_recurrence = value; } /** *

The schedule recurrence.

*/ inline void SetRecurrence(ScheduledInstanceRecurrenceRequest&& value) { m_recurrenceHasBeenSet = true; m_recurrence = std::move(value); } /** *

The schedule recurrence.

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithRecurrence(const ScheduledInstanceRecurrenceRequest& value) { SetRecurrence(value); return *this;} /** *

The schedule recurrence.

*/ inline DescribeScheduledInstanceAvailabilityRequest& WithRecurrence(ScheduledInstanceRecurrenceRequest&& value) { SetRecurrence(std::move(value)); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; SlotDateTimeRangeRequest m_firstSlotStartTimeRange; bool m_firstSlotStartTimeRangeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; int m_maxSlotDurationInHours; bool m_maxSlotDurationInHoursHasBeenSet = false; int m_minSlotDurationInHours; bool m_minSlotDurationInHoursHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; ScheduledInstanceRecurrenceRequest m_recurrence; bool m_recurrenceHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws