AWS SDK for C++  1.9.74
AWS SDK for C++
DescribeSpotFleetInstancesResponse.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 {
37  {
38  public:
42 
43 
48  inline const Aws::Vector<ActiveInstance>& GetActiveInstances() const{ return m_activeInstances; }
49 
54  inline void SetActiveInstances(const Aws::Vector<ActiveInstance>& value) { m_activeInstances = value; }
55 
60  inline void SetActiveInstances(Aws::Vector<ActiveInstance>&& value) { m_activeInstances = std::move(value); }
61 
66  inline DescribeSpotFleetInstancesResponse& WithActiveInstances(const Aws::Vector<ActiveInstance>& value) { SetActiveInstances(value); return *this;}
67 
72  inline DescribeSpotFleetInstancesResponse& WithActiveInstances(Aws::Vector<ActiveInstance>&& value) { SetActiveInstances(std::move(value)); return *this;}
73 
78  inline DescribeSpotFleetInstancesResponse& AddActiveInstances(const ActiveInstance& value) { m_activeInstances.push_back(value); return *this; }
79 
84  inline DescribeSpotFleetInstancesResponse& AddActiveInstances(ActiveInstance&& value) { m_activeInstances.push_back(std::move(value)); return *this; }
85 
86 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
97  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
98 
103  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
104 
109  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
110 
115  inline DescribeSpotFleetInstancesResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
121  inline DescribeSpotFleetInstancesResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
127  inline DescribeSpotFleetInstancesResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129 
133  inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
134 
138  inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestId = value; }
139 
143  inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestId = std::move(value); }
144 
148  inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestId.assign(value); }
149 
153  inline DescribeSpotFleetInstancesResponse& WithSpotFleetRequestId(const Aws::String& value) { SetSpotFleetRequestId(value); return *this;}
154 
158  inline DescribeSpotFleetInstancesResponse& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;}
159 
163  inline DescribeSpotFleetInstancesResponse& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
164 
165 
166 
167  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
168 
169 
170  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
171 
172 
173  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
174 
175 
176  inline DescribeSpotFleetInstancesResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
177 
178 
179  inline DescribeSpotFleetInstancesResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
180 
181  private:
182 
183  Aws::Vector<ActiveInstance> m_activeInstances;
184 
185  Aws::String m_nextToken;
186 
187  Aws::String m_spotFleetRequestId;
188 
189  ResponseMetadata m_responseMetadata;
190  };
191 
192 } // namespace Model
193 } // namespace EC2
194 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeSpotFleetInstancesResponse.h:109
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::AddActiveInstances
DescribeSpotFleetInstancesResponse & AddActiveInstances(const ActiveInstance &value)
Definition: DescribeSpotFleetInstancesResponse.h:78
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetActiveInstances
void SetActiveInstances(Aws::Vector< ActiveInstance > &&value)
Definition: DescribeSpotFleetInstancesResponse.h:60
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeSpotFleetInstancesResponse.h:97
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithSpotFleetRequestId
DescribeSpotFleetInstancesResponse & WithSpotFleetRequestId(Aws::String &&value)
Definition: DescribeSpotFleetInstancesResponse.h:158
ActiveInstance.h
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithActiveInstances
DescribeSpotFleetInstancesResponse & WithActiveInstances(Aws::Vector< ActiveInstance > &&value)
Definition: DescribeSpotFleetInstancesResponse.h:72
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::DescribeSpotFleetInstancesResponse
DescribeSpotFleetInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithResponseMetadata
DescribeSpotFleetInstancesResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSpotFleetInstancesResponse.h:176
ResponseMetadata.h
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::AddActiveInstances
DescribeSpotFleetInstancesResponse & AddActiveInstances(ActiveInstance &&value)
Definition: DescribeSpotFleetInstancesResponse.h:84
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetActiveInstances
void SetActiveInstances(const Aws::Vector< ActiveInstance > &value)
Definition: DescribeSpotFleetInstancesResponse.h:54
AWSVector.h
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithResponseMetadata
DescribeSpotFleetInstancesResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSpotFleetInstancesResponse.h:179
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::DescribeSpotFleetInstancesResponse
DescribeSpotFleetInstancesResponse()
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeSpotFleetInstancesResponse.h:91
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: DescribeSpotFleetInstancesResponse.h:167
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::operator=
DescribeSpotFleetInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::GetActiveInstances
const Aws::Vector< ActiveInstance > & GetActiveInstances() const
Definition: DescribeSpotFleetInstancesResponse.h:48
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithNextToken
DescribeSpotFleetInstancesResponse & WithNextToken(const char *value)
Definition: DescribeSpotFleetInstancesResponse.h:127
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::DescribeSpotFleetInstancesResponse
Definition: DescribeSpotFleetInstancesResponse.h:37
AWSString.h
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: DescribeSpotFleetInstancesResponse.h:173
Aws::EC2::Model::ActiveInstance
Definition: ActiveInstance.h:33
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithNextToken
DescribeSpotFleetInstancesResponse & WithNextToken(const Aws::String &value)
Definition: DescribeSpotFleetInstancesResponse.h:115
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithNextToken
DescribeSpotFleetInstancesResponse & WithNextToken(Aws::String &&value)
Definition: DescribeSpotFleetInstancesResponse.h:121
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithActiveInstances
DescribeSpotFleetInstancesResponse & WithActiveInstances(const Aws::Vector< ActiveInstance > &value)
Definition: DescribeSpotFleetInstancesResponse.h:66
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithSpotFleetRequestId
DescribeSpotFleetInstancesResponse & WithSpotFleetRequestId(const Aws::String &value)
Definition: DescribeSpotFleetInstancesResponse.h:153
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetSpotFleetRequestId
void SetSpotFleetRequestId(Aws::String &&value)
Definition: DescribeSpotFleetInstancesResponse.h:143
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::WithSpotFleetRequestId
DescribeSpotFleetInstancesResponse & WithSpotFleetRequestId(const char *value)
Definition: DescribeSpotFleetInstancesResponse.h:163
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetSpotFleetRequestId
void SetSpotFleetRequestId(const Aws::String &value)
Definition: DescribeSpotFleetInstancesResponse.h:138
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: DescribeSpotFleetInstancesResponse.h:170
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetSpotFleetRequestId
void SetSpotFleetRequestId(const char *value)
Definition: DescribeSpotFleetInstancesResponse.h:148
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeSpotFleetInstancesResponse.h:103
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeSpotFleetInstancesResponse::GetSpotFleetRequestId
const Aws::String & GetSpotFleetRequestId() const
Definition: DescribeSpotFleetInstancesResponse.h:133
EC2_EXPORTS.h