AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeFleetInstancesResponse.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 
42  inline const Aws::Vector<ActiveInstance>& GetActiveInstances() const{ return m_activeInstances; }
43 
48  inline void SetActiveInstances(const Aws::Vector<ActiveInstance>& value) { m_activeInstances = value; }
49 
54  inline void SetActiveInstances(Aws::Vector<ActiveInstance>&& value) { m_activeInstances = std::move(value); }
55 
60  inline DescribeFleetInstancesResponse& WithActiveInstances(const Aws::Vector<ActiveInstance>& value) { SetActiveInstances(value); return *this;}
61 
66  inline DescribeFleetInstancesResponse& WithActiveInstances(Aws::Vector<ActiveInstance>&& value) { SetActiveInstances(std::move(value)); return *this;}
67 
72  inline DescribeFleetInstancesResponse& AddActiveInstances(const ActiveInstance& value) { m_activeInstances.push_back(value); return *this; }
73 
78  inline DescribeFleetInstancesResponse& AddActiveInstances(ActiveInstance&& value) { m_activeInstances.push_back(std::move(value)); return *this; }
79 
80 
84  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
85 
89  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
90 
94  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
95 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
104  inline DescribeFleetInstancesResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
105 
109  inline DescribeFleetInstancesResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
110 
114  inline DescribeFleetInstancesResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
115 
116 
120  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
121 
125  inline void SetFleetId(const Aws::String& value) { m_fleetId = value; }
126 
130  inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); }
131 
135  inline void SetFleetId(const char* value) { m_fleetId.assign(value); }
136 
140  inline DescribeFleetInstancesResponse& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
141 
145  inline DescribeFleetInstancesResponse& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
146 
150  inline DescribeFleetInstancesResponse& WithFleetId(const char* value) { SetFleetId(value); return *this;}
151 
152 
153 
154  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
155 
156 
157  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
158 
159 
160  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
161 
162 
163  inline DescribeFleetInstancesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
164 
165 
166  inline DescribeFleetInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
167 
168  private:
169 
170  Aws::Vector<ActiveInstance> m_activeInstances;
171 
172  Aws::String m_nextToken;
173 
174  Aws::String m_fleetId;
175 
176  ResponseMetadata m_responseMetadata;
177  };
178 
179 } // namespace Model
180 } // namespace EC2
181 } // namespace Aws
Aws::EC2::Model::DescribeFleetInstancesResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeFleetInstancesResponse.h:84
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeFleetInstancesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeFleetInstancesResponse.h:154
Aws::EC2::Model::DescribeFleetInstancesResponse::WithActiveInstances
DescribeFleetInstancesResponse & WithActiveInstances(Aws::Vector< ActiveInstance > &&value)
Definition: DescribeFleetInstancesResponse.h:66
Aws::EC2::Model::DescribeFleetInstancesResponse::DescribeFleetInstancesResponse
DescribeFleetInstancesResponse()
ActiveInstance.h
Aws::EC2::Model::DescribeFleetInstancesResponse::WithResponseMetadata
DescribeFleetInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeFleetInstancesResponse.h:166
Aws::EC2::Model::DescribeFleetInstancesResponse::WithFleetId
DescribeFleetInstancesResponse & WithFleetId(Aws::String &&value)
Definition: DescribeFleetInstancesResponse.h:145
Aws::EC2::Model::DescribeFleetInstancesResponse::AddActiveInstances
DescribeFleetInstancesResponse & AddActiveInstances(const ActiveInstance &value)
Definition: DescribeFleetInstancesResponse.h:72
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeFleetInstancesResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeFleetInstancesResponse.h:99
ResponseMetadata.h
Aws::EC2::Model::DescribeFleetInstancesResponse::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: DescribeFleetInstancesResponse.h:125
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeFleetInstancesResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeFleetInstancesResponse.h:89
AWSVector.h
Aws::EC2::Model::DescribeFleetInstancesResponse::WithActiveInstances
DescribeFleetInstancesResponse & WithActiveInstances(const Aws::Vector< ActiveInstance > &value)
Definition: DescribeFleetInstancesResponse.h:60
Aws::EC2::Model::DescribeFleetInstancesResponse::WithFleetId
DescribeFleetInstancesResponse & WithFleetId(const Aws::String &value)
Definition: DescribeFleetInstancesResponse.h:140
Aws::EC2::Model::DescribeFleetInstancesResponse::SetActiveInstances
void SetActiveInstances(const Aws::Vector< ActiveInstance > &value)
Definition: DescribeFleetInstancesResponse.h:48
Aws::EC2::Model::DescribeFleetInstancesResponse::SetFleetId
void SetFleetId(const char *value)
Definition: DescribeFleetInstancesResponse.h:135
Aws::EC2::Model::DescribeFleetInstancesResponse::GetActiveInstances
const Aws::Vector< ActiveInstance > & GetActiveInstances() const
Definition: DescribeFleetInstancesResponse.h:42
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeFleetInstancesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeFleetInstancesResponse.h:160
Aws::EC2::Model::DescribeFleetInstancesResponse::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: DescribeFleetInstancesResponse.h:130
AWSString.h
Aws::EC2::Model::ActiveInstance
Definition: ActiveInstance.h:33
Aws::EC2::Model::DescribeFleetInstancesResponse::WithNextToken
DescribeFleetInstancesResponse & WithNextToken(Aws::String &&value)
Definition: DescribeFleetInstancesResponse.h:109
Aws::EC2::Model::DescribeFleetInstancesResponse::WithNextToken
DescribeFleetInstancesResponse & WithNextToken(const char *value)
Definition: DescribeFleetInstancesResponse.h:114
Aws::EC2::Model::DescribeFleetInstancesResponse
Definition: DescribeFleetInstancesResponse.h:31
Aws::EC2::Model::DescribeFleetInstancesResponse::operator=
DescribeFleetInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeFleetInstancesResponse::DescribeFleetInstancesResponse
DescribeFleetInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeFleetInstancesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeFleetInstancesResponse.h:157
Aws::EC2::Model::DescribeFleetInstancesResponse::WithResponseMetadata
DescribeFleetInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeFleetInstancesResponse.h:163
Aws::EC2::Model::DescribeFleetInstancesResponse::WithFleetId
DescribeFleetInstancesResponse & WithFleetId(const char *value)
Definition: DescribeFleetInstancesResponse.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeFleetInstancesResponse::GetFleetId
const Aws::String & GetFleetId() const
Definition: DescribeFleetInstancesResponse.h:120
Aws::EC2::Model::DescribeFleetInstancesResponse::AddActiveInstances
DescribeFleetInstancesResponse & AddActiveInstances(ActiveInstance &&value)
Definition: DescribeFleetInstancesResponse.h:78
Aws::EC2::Model::DescribeFleetInstancesResponse::WithNextToken
DescribeFleetInstancesResponse & WithNextToken(const Aws::String &value)
Definition: DescribeFleetInstancesResponse.h:104
Aws::EC2::Model::DescribeFleetInstancesResponse::SetActiveInstances
void SetActiveInstances(Aws::Vector< ActiveInstance > &&value)
Definition: DescribeFleetInstancesResponse.h:54
Aws::EC2::Model::DescribeFleetInstancesResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeFleetInstancesResponse.h:94
EC2_EXPORTS.h