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

Contains the parameters for DescribeSpotFleetRequests.

See * Also:

AWS * API Reference

*/ class DescribeSpotFleetRequestsRequest : public EC2Request { public: AWS_EC2_API DescribeSpotFleetRequestsRequest(); // 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 "DescribeSpotFleetRequests"; } 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 DescribeSpotFleetRequestsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The maximum number of items to return for this request. To get the next page * of items, make another request with the token returned in the output. For more * information, see Pagination.

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

The maximum number of items to return for this request. To get the next page * of items, make another request with the token returned in the output. For more * information, see Pagination.

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

The maximum number of items to return for this request. To get the next page * of items, make another request with the token returned in the output. For more * information, see Pagination.

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

The maximum number of items to return for this request. To get the next page * of items, make another request with the token returned in the output. For more * information, see Pagination.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The token to include in another request to get the next page of items. This * value is null when there are no more items to return.

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

The IDs of the Spot Fleet requests.

*/ inline const Aws::Vector& GetSpotFleetRequestIds() const{ return m_spotFleetRequestIds; } /** *

The IDs of the Spot Fleet requests.

*/ inline bool SpotFleetRequestIdsHasBeenSet() const { return m_spotFleetRequestIdsHasBeenSet; } /** *

The IDs of the Spot Fleet requests.

*/ inline void SetSpotFleetRequestIds(const Aws::Vector& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = value; } /** *

The IDs of the Spot Fleet requests.

*/ inline void SetSpotFleetRequestIds(Aws::Vector&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds = std::move(value); } /** *

The IDs of the Spot Fleet requests.

*/ inline DescribeSpotFleetRequestsRequest& WithSpotFleetRequestIds(const Aws::Vector& value) { SetSpotFleetRequestIds(value); return *this;} /** *

The IDs of the Spot Fleet requests.

*/ inline DescribeSpotFleetRequestsRequest& WithSpotFleetRequestIds(Aws::Vector&& value) { SetSpotFleetRequestIds(std::move(value)); return *this;} /** *

The IDs of the Spot Fleet requests.

*/ inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(const Aws::String& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; } /** *

The IDs of the Spot Fleet requests.

*/ inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(Aws::String&& value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(std::move(value)); return *this; } /** *

The IDs of the Spot Fleet requests.

*/ inline DescribeSpotFleetRequestsRequest& AddSpotFleetRequestIds(const char* value) { m_spotFleetRequestIdsHasBeenSet = true; m_spotFleetRequestIds.push_back(value); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::Vector m_spotFleetRequestIds; bool m_spotFleetRequestIdsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws