AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeAcceleratorsRequest.h
1
6#pragma once
7#include <aws/elastic-inference/ElasticInference_EXPORTS.h>
8#include <aws/elastic-inference/ElasticInferenceRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/elastic-inference/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ElasticInference
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ELASTICINFERENCE_API DescribeAcceleratorsRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeAccelerators"; }
33
34 AWS_ELASTICINFERENCE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::Vector<Aws::String>& GetAcceleratorIds() const{ return m_acceleratorIds; }
42 inline bool AcceleratorIdsHasBeenSet() const { return m_acceleratorIdsHasBeenSet; }
43 inline void SetAcceleratorIds(const Aws::Vector<Aws::String>& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds = value; }
44 inline void SetAcceleratorIds(Aws::Vector<Aws::String>&& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds = std::move(value); }
47 inline DescribeAcceleratorsRequest& AddAcceleratorIds(const Aws::String& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(value); return *this; }
48 inline DescribeAcceleratorsRequest& AddAcceleratorIds(Aws::String&& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(std::move(value)); return *this; }
49 inline DescribeAcceleratorsRequest& AddAcceleratorIds(const char* value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(value); return *this; }
51
53
59 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
60 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
61 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
62 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
63 inline DescribeAcceleratorsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
64 inline DescribeAcceleratorsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
65 inline DescribeAcceleratorsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
66 inline DescribeAcceleratorsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
68
70
77 inline int GetMaxResults() const{ return m_maxResults; }
78 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
79 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
80 inline DescribeAcceleratorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
82
84
88 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
89 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
90 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
91 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
92 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
93 inline DescribeAcceleratorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
94 inline DescribeAcceleratorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
95 inline DescribeAcceleratorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
97 private:
98
99 Aws::Vector<Aws::String> m_acceleratorIds;
100 bool m_acceleratorIdsHasBeenSet = false;
101
102 Aws::Vector<Filter> m_filters;
103 bool m_filtersHasBeenSet = false;
104
105 int m_maxResults;
106 bool m_maxResultsHasBeenSet = false;
107
108 Aws::String m_nextToken;
109 bool m_nextTokenHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ElasticInference
114} // namespace Aws
DescribeAcceleratorsRequest & AddAcceleratorIds(const char *value)
DescribeAcceleratorsRequest & WithFilters(const Aws::Vector< Filter > &value)
DescribeAcceleratorsRequest & WithNextToken(const char *value)
AWS_ELASTICINFERENCE_API Aws::String SerializePayload() const override
void SetAcceleratorIds(const Aws::Vector< Aws::String > &value)
DescribeAcceleratorsRequest & WithAcceleratorIds(Aws::Vector< Aws::String > &&value)
DescribeAcceleratorsRequest & WithNextToken(const Aws::String &value)
DescribeAcceleratorsRequest & WithAcceleratorIds(const Aws::Vector< Aws::String > &value)
DescribeAcceleratorsRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeAcceleratorsRequest & AddFilters(const Filter &value)
DescribeAcceleratorsRequest & AddAcceleratorIds(Aws::String &&value)
DescribeAcceleratorsRequest & AddAcceleratorIds(const Aws::String &value)
DescribeAcceleratorsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector