AWS SDK for C++  1.9.123
AWS SDK for C++
DescribeElasticGpusResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<ElasticGpus>& GetElasticGpuSet() const{ return m_elasticGpuSet; }
42 
46  inline void SetElasticGpuSet(const Aws::Vector<ElasticGpus>& value) { m_elasticGpuSet = value; }
47 
51  inline void SetElasticGpuSet(Aws::Vector<ElasticGpus>&& value) { m_elasticGpuSet = std::move(value); }
52 
56  inline DescribeElasticGpusResponse& WithElasticGpuSet(const Aws::Vector<ElasticGpus>& value) { SetElasticGpuSet(value); return *this;}
57 
61  inline DescribeElasticGpusResponse& WithElasticGpuSet(Aws::Vector<ElasticGpus>&& value) { SetElasticGpuSet(std::move(value)); return *this;}
62 
66  inline DescribeElasticGpusResponse& AddElasticGpuSet(const ElasticGpus& value) { m_elasticGpuSet.push_back(value); return *this; }
67 
71  inline DescribeElasticGpusResponse& AddElasticGpuSet(ElasticGpus&& value) { m_elasticGpuSet.push_back(std::move(value)); return *this; }
72 
73 
79  inline int GetMaxResults() const{ return m_maxResults; }
80 
86  inline void SetMaxResults(int value) { m_maxResults = value; }
87 
93  inline DescribeElasticGpusResponse& WithMaxResults(int value) { SetMaxResults(value); return *this;}
94 
95 
100  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
101 
106  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
107 
112  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
113 
118  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
119 
124  inline DescribeElasticGpusResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
125 
130  inline DescribeElasticGpusResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
131 
136  inline DescribeElasticGpusResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
137 
138 
139 
140  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
141 
142 
143  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
144 
145 
146  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
147 
148 
149  inline DescribeElasticGpusResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
150 
151 
152  inline DescribeElasticGpusResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
153 
154  private:
155 
156  Aws::Vector<ElasticGpus> m_elasticGpuSet;
157 
158  int m_maxResults;
159 
160  Aws::String m_nextToken;
161 
162  ResponseMetadata m_responseMetadata;
163  };
164 
165 } // namespace Model
166 } // namespace EC2
167 } // namespace Aws
ElasticGpus.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeElasticGpusResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeElasticGpusResponse.h:143
Aws::EC2::Model::DescribeElasticGpusResponse::AddElasticGpuSet
DescribeElasticGpusResponse & AddElasticGpuSet(const ElasticGpus &value)
Definition: DescribeElasticGpusResponse.h:66
Aws::EC2::Model::DescribeElasticGpusResponse::GetElasticGpuSet
const Aws::Vector< ElasticGpus > & GetElasticGpuSet() const
Definition: DescribeElasticGpusResponse.h:41
Aws::EC2::Model::DescribeElasticGpusResponse::WithElasticGpuSet
DescribeElasticGpusResponse & WithElasticGpuSet(Aws::Vector< ElasticGpus > &&value)
Definition: DescribeElasticGpusResponse.h:61
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeElasticGpusResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeElasticGpusResponse.h:140
ResponseMetadata.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeElasticGpusResponse::GetMaxResults
int GetMaxResults() const
Definition: DescribeElasticGpusResponse.h:79
Aws::EC2::Model::DescribeElasticGpusResponse::AddElasticGpuSet
DescribeElasticGpusResponse & AddElasticGpuSet(ElasticGpus &&value)
Definition: DescribeElasticGpusResponse.h:71
AWSVector.h
Aws::EC2::Model::DescribeElasticGpusResponse
Definition: DescribeElasticGpusResponse.h:31
Aws::EC2::Model::DescribeElasticGpusResponse::DescribeElasticGpusResponse
DescribeElasticGpusResponse()
Aws::EC2::Model::DescribeElasticGpusResponse::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeElasticGpusResponse.h:86
Aws::EC2::Model::DescribeElasticGpusResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeElasticGpusResponse.h:100
Aws::EC2::Model::DescribeElasticGpusResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeElasticGpusResponse.h:112
Aws::EC2::Model::DescribeElasticGpusResponse::WithResponseMetadata
DescribeElasticGpusResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeElasticGpusResponse.h:152
Aws::EC2::Model::DescribeElasticGpusResponse::DescribeElasticGpusResponse
DescribeElasticGpusResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::DescribeElasticGpusResponse::WithMaxResults
DescribeElasticGpusResponse & WithMaxResults(int value)
Definition: DescribeElasticGpusResponse.h:93
Aws::EC2::Model::ElasticGpus
Definition: ElasticGpus.h:36
Aws::EC2::Model::DescribeElasticGpusResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeElasticGpusResponse.h:146
Aws::EC2::Model::DescribeElasticGpusResponse::WithNextToken
DescribeElasticGpusResponse & WithNextToken(const char *value)
Definition: DescribeElasticGpusResponse.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeElasticGpusResponse::SetElasticGpuSet
void SetElasticGpuSet(Aws::Vector< ElasticGpus > &&value)
Definition: DescribeElasticGpusResponse.h:51
Aws::EC2::Model::DescribeElasticGpusResponse::WithNextToken
DescribeElasticGpusResponse & WithNextToken(const Aws::String &value)
Definition: DescribeElasticGpusResponse.h:124
Aws::EC2::Model::DescribeElasticGpusResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeElasticGpusResponse.h:118
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeElasticGpusResponse::WithElasticGpuSet
DescribeElasticGpusResponse & WithElasticGpuSet(const Aws::Vector< ElasticGpus > &value)
Definition: DescribeElasticGpusResponse.h:56
Aws::EC2::Model::DescribeElasticGpusResponse::operator=
DescribeElasticGpusResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeElasticGpusResponse::WithNextToken
DescribeElasticGpusResponse & WithNextToken(Aws::String &&value)
Definition: DescribeElasticGpusResponse.h:130
Aws::EC2::Model::DescribeElasticGpusResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeElasticGpusResponse.h:106
EC2_EXPORTS.h
Aws::EC2::Model::DescribeElasticGpusResponse::SetElasticGpuSet
void SetElasticGpuSet(const Aws::Vector< ElasticGpus > &value)
Definition: DescribeElasticGpusResponse.h:46
Aws::EC2::Model::DescribeElasticGpusResponse::WithResponseMetadata
DescribeElasticGpusResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeElasticGpusResponse.h:149