/** * 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 ElasticInference { namespace Model { /** */ class DescribeAcceleratorsRequest : public ElasticInferenceRequest { public: AWS_ELASTICINFERENCE_API DescribeAcceleratorsRequest(); // 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 "DescribeAccelerators"; } AWS_ELASTICINFERENCE_API Aws::String SerializePayload() const override; /** *

The IDs of the accelerators to describe.

*/ inline const Aws::Vector& GetAcceleratorIds() const{ return m_acceleratorIds; } /** *

The IDs of the accelerators to describe.

*/ inline bool AcceleratorIdsHasBeenSet() const { return m_acceleratorIdsHasBeenSet; } /** *

The IDs of the accelerators to describe.

*/ inline void SetAcceleratorIds(const Aws::Vector& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds = value; } /** *

The IDs of the accelerators to describe.

*/ inline void SetAcceleratorIds(Aws::Vector&& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds = std::move(value); } /** *

The IDs of the accelerators to describe.

*/ inline DescribeAcceleratorsRequest& WithAcceleratorIds(const Aws::Vector& value) { SetAcceleratorIds(value); return *this;} /** *

The IDs of the accelerators to describe.

*/ inline DescribeAcceleratorsRequest& WithAcceleratorIds(Aws::Vector&& value) { SetAcceleratorIds(std::move(value)); return *this;} /** *

The IDs of the accelerators to describe.

*/ inline DescribeAcceleratorsRequest& AddAcceleratorIds(const Aws::String& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(value); return *this; } /** *

The IDs of the accelerators to describe.

*/ inline DescribeAcceleratorsRequest& AddAcceleratorIds(Aws::String&& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(std::move(value)); return *this; } /** *

The IDs of the accelerators to describe.

*/ inline DescribeAcceleratorsRequest& AddAcceleratorIds(const char* value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(value); return *this; } /** *

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

One or more filters. Filter names and values are case-sensitive. Valid * filter names are: accelerator-types: can provide a list of accelerator type * names to filter for. instance-id: can provide a list of EC2 instance ids to * filter for.

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

The total number of items to return in the command's output. If the total * number of items available is more than the value specified, a NextToken is * provided in the command's output. To resume pagination, provide the NextToken * value in the starting-token argument of a subsequent command. Do not use the * NextToken response element directly outside of the AWS CLI.

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

The total number of items to return in the command's output. If the total * number of items available is more than the value specified, a NextToken is * provided in the command's output. To resume pagination, provide the NextToken * value in the starting-token argument of a subsequent command. Do not use the * NextToken response element directly outside of the AWS CLI.

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

The total number of items to return in the command's output. If the total * number of items available is more than the value specified, a NextToken is * provided in the command's output. To resume pagination, provide the NextToken * value in the starting-token argument of a subsequent command. Do not use the * NextToken response element directly outside of the AWS CLI.

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

The total number of items to return in the command's output. If the total * number of items available is more than the value specified, a NextToken is * provided in the command's output. To resume pagination, provide the NextToken * value in the starting-token argument of a subsequent command. Do not use the * NextToken response element directly outside of the AWS CLI.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

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

A token to specify where to start paginating. This is the NextToken from a * previously truncated response.

*/ inline DescribeAcceleratorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_acceleratorIds; bool m_acceleratorIdsHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ElasticInference } // namespace Aws