AWS SDK for C++  1.9.70
AWS SDK for C++
CreateFleetResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 template<typename RESULT_TYPE>
18 class AmazonWebServiceResult;
19 
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlDocument;
25 } // namespace Xml
26 } // namespace Utils
27 namespace EC2
28 {
29 namespace Model
30 {
32  {
33  public:
37 
38 
42  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
43 
47  inline void SetFleetId(const Aws::String& value) { m_fleetId = value; }
48 
52  inline void SetFleetId(Aws::String&& value) { m_fleetId = std::move(value); }
53 
57  inline void SetFleetId(const char* value) { m_fleetId.assign(value); }
58 
62  inline CreateFleetResponse& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
63 
67  inline CreateFleetResponse& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
68 
72  inline CreateFleetResponse& WithFleetId(const char* value) { SetFleetId(value); return *this;}
73 
74 
79  inline const Aws::Vector<CreateFleetError>& GetErrors() const{ return m_errors; }
80 
85  inline void SetErrors(const Aws::Vector<CreateFleetError>& value) { m_errors = value; }
86 
91  inline void SetErrors(Aws::Vector<CreateFleetError>&& value) { m_errors = std::move(value); }
92 
97  inline CreateFleetResponse& WithErrors(const Aws::Vector<CreateFleetError>& value) { SetErrors(value); return *this;}
98 
103  inline CreateFleetResponse& WithErrors(Aws::Vector<CreateFleetError>&& value) { SetErrors(std::move(value)); return *this;}
104 
109  inline CreateFleetResponse& AddErrors(const CreateFleetError& value) { m_errors.push_back(value); return *this; }
110 
115  inline CreateFleetResponse& AddErrors(CreateFleetError&& value) { m_errors.push_back(std::move(value)); return *this; }
116 
117 
122  inline const Aws::Vector<CreateFleetInstance>& GetInstances() const{ return m_instances; }
123 
128  inline void SetInstances(const Aws::Vector<CreateFleetInstance>& value) { m_instances = value; }
129 
134  inline void SetInstances(Aws::Vector<CreateFleetInstance>&& value) { m_instances = std::move(value); }
135 
140  inline CreateFleetResponse& WithInstances(const Aws::Vector<CreateFleetInstance>& value) { SetInstances(value); return *this;}
141 
146  inline CreateFleetResponse& WithInstances(Aws::Vector<CreateFleetInstance>&& value) { SetInstances(std::move(value)); return *this;}
147 
152  inline CreateFleetResponse& AddInstances(const CreateFleetInstance& value) { m_instances.push_back(value); return *this; }
153 
158  inline CreateFleetResponse& AddInstances(CreateFleetInstance&& value) { m_instances.push_back(std::move(value)); return *this; }
159 
160 
161 
162  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
163 
164 
165  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
166 
167 
168  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
169 
170 
171  inline CreateFleetResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
172 
173 
174  inline CreateFleetResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
175 
176  private:
177 
178  Aws::String m_fleetId;
179 
181 
183 
184  ResponseMetadata m_responseMetadata;
185  };
186 
187 } // namespace Model
188 } // namespace EC2
189 } // namespace Aws
Aws::EC2::Model::CreateFleetResponse::WithResponseMetadata
CreateFleetResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateFleetResponse.h:174
Aws::EC2::Model::CreateFleetResponse::WithInstances
CreateFleetResponse & WithInstances(const Aws::Vector< CreateFleetInstance > &value)
Definition: CreateFleetResponse.h:140
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::CreateFleetResponse::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: CreateFleetResponse.h:52
Aws::EC2::Model::CreateFleetResponse::operator=
CreateFleetResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::CreateFleetResponse::GetFleetId
const Aws::String & GetFleetId() const
Definition: CreateFleetResponse.h:42
Aws::EC2::Model::CreateFleetResponse::WithFleetId
CreateFleetResponse & WithFleetId(Aws::String &&value)
Definition: CreateFleetResponse.h:67
CreateFleetInstance.h
Aws::EC2::Model::CreateFleetResponse::AddErrors
CreateFleetResponse & AddErrors(CreateFleetError &&value)
Definition: CreateFleetResponse.h:115
Aws::EC2::Model::CreateFleetResponse::WithErrors
CreateFleetResponse & WithErrors(Aws::Vector< CreateFleetError > &&value)
Definition: CreateFleetResponse.h:103
Aws::EC2::Model::CreateFleetResponse::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: CreateFleetResponse.h:47
Aws::EC2::Model::CreateFleetResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateFleetResponse.h:165
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateFleetInstance
Definition: CreateFleetInstance.h:38
Aws::EC2::Model::CreateFleetResponse::CreateFleetResponse
CreateFleetResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ResponseMetadata.h
Aws::EC2::Model::CreateFleetResponse::AddInstances
CreateFleetResponse & AddInstances(const CreateFleetInstance &value)
Definition: CreateFleetResponse.h:152
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::CreateFleetResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateFleetResponse.h:162
Aws::EC2::Model::CreateFleetResponse::AddInstances
CreateFleetResponse & AddInstances(CreateFleetInstance &&value)
Definition: CreateFleetResponse.h:158
AWSVector.h
Aws::EC2::Model::CreateFleetResponse::WithInstances
CreateFleetResponse & WithInstances(Aws::Vector< CreateFleetInstance > &&value)
Definition: CreateFleetResponse.h:146
Aws::EC2::Model::CreateFleetResponse::WithFleetId
CreateFleetResponse & WithFleetId(const char *value)
Definition: CreateFleetResponse.h:72
Aws::EC2::Model::CreateFleetResponse::WithResponseMetadata
CreateFleetResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateFleetResponse.h:171
CreateFleetError.h
Aws::EC2::Model::CreateFleetResponse::CreateFleetResponse
CreateFleetResponse()
Aws::EC2::Model::CreateFleetResponse::SetFleetId
void SetFleetId(const char *value)
Definition: CreateFleetResponse.h:57
Aws::EC2::Model::CreateFleetResponse::SetInstances
void SetInstances(const Aws::Vector< CreateFleetInstance > &value)
Definition: CreateFleetResponse.h:128
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWSString.h
Aws::EC2::Model::CreateFleetError
Definition: CreateFleetError.h:35
Aws::EC2::Model::CreateFleetResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateFleetResponse.h:168
Aws::EC2::Model::CreateFleetResponse::SetInstances
void SetInstances(Aws::Vector< CreateFleetInstance > &&value)
Definition: CreateFleetResponse.h:134
Aws::EC2::Model::CreateFleetResponse::AddErrors
CreateFleetResponse & AddErrors(const CreateFleetError &value)
Definition: CreateFleetResponse.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateFleetResponse
Definition: CreateFleetResponse.h:32
Aws::EC2::Model::CreateFleetResponse::SetErrors
void SetErrors(Aws::Vector< CreateFleetError > &&value)
Definition: CreateFleetResponse.h:91
Aws::EC2::Model::CreateFleetResponse::GetInstances
const Aws::Vector< CreateFleetInstance > & GetInstances() const
Definition: CreateFleetResponse.h:122
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::CreateFleetResponse::SetErrors
void SetErrors(const Aws::Vector< CreateFleetError > &value)
Definition: CreateFleetResponse.h:85
Aws::EC2::Model::CreateFleetResponse::WithFleetId
CreateFleetResponse & WithFleetId(const Aws::String &value)
Definition: CreateFleetResponse.h:62
Aws::EC2::Model::CreateFleetResponse::GetErrors
const Aws::Vector< CreateFleetError > & GetErrors() const
Definition: CreateFleetResponse.h:79
EC2_EXPORTS.h
Aws::EC2::Model::CreateFleetResponse::WithErrors
CreateFleetResponse & WithErrors(const Aws::Vector< CreateFleetError > &value)
Definition: CreateFleetResponse.h:97