AWS SDK for C++  1.9.67
AWS SDK for C++
CreateFleetError.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 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
50  inline const LaunchTemplateAndOverridesResponse& GetLaunchTemplateAndOverrides() const{ return m_launchTemplateAndOverrides; }
51 
57  inline bool LaunchTemplateAndOverridesHasBeenSet() const { return m_launchTemplateAndOverridesHasBeenSet; }
58 
64  inline void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = value; }
65 
71  inline void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse&& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = std::move(value); }
72 
78  inline CreateFleetError& WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse& value) { SetLaunchTemplateAndOverrides(value); return *this;}
79 
85  inline CreateFleetError& WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse&& value) { SetLaunchTemplateAndOverrides(std::move(value)); return *this;}
86 
87 
92  inline const InstanceLifecycle& GetLifecycle() const{ return m_lifecycle; }
93 
98  inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
99 
104  inline void SetLifecycle(const InstanceLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
105 
110  inline void SetLifecycle(InstanceLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
111 
116  inline CreateFleetError& WithLifecycle(const InstanceLifecycle& value) { SetLifecycle(value); return *this;}
117 
122  inline CreateFleetError& WithLifecycle(InstanceLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
123 
124 
131  inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
132 
139  inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
140 
147  inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
148 
155  inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
156 
163  inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
164 
171  inline CreateFleetError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
172 
179  inline CreateFleetError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
180 
187  inline CreateFleetError& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
188 
189 
196  inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
197 
204  inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
205 
212  inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
213 
220  inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
221 
228  inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
229 
236  inline CreateFleetError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
237 
244  inline CreateFleetError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
245 
252  inline CreateFleetError& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
253 
254  private:
255 
256  LaunchTemplateAndOverridesResponse m_launchTemplateAndOverrides;
257  bool m_launchTemplateAndOverridesHasBeenSet;
258 
259  InstanceLifecycle m_lifecycle;
260  bool m_lifecycleHasBeenSet;
261 
262  Aws::String m_errorCode;
263  bool m_errorCodeHasBeenSet;
264 
265  Aws::String m_errorMessage;
266  bool m_errorMessageHasBeenSet;
267  };
268 
269 } // namespace Model
270 } // namespace EC2
271 } // namespace Aws
Aws::EC2::Model::CreateFleetError::WithLaunchTemplateAndOverrides
CreateFleetError & WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
Definition: CreateFleetError.h:85
Aws::EC2::Model::CreateFleetError::SetLaunchTemplateAndOverrides
void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
Definition: CreateFleetError.h:64
Aws::EC2::Model::CreateFleetError::SetLifecycle
void SetLifecycle(InstanceLifecycle &&value)
Definition: CreateFleetError.h:110
Aws::EC2::Model::CreateFleetError::SetErrorCode
void SetErrorCode(const char *value)
Definition: CreateFleetError.h:163
Aws::EC2::Model::CreateFleetError::WithErrorMessage
CreateFleetError & WithErrorMessage(Aws::String &&value)
Definition: CreateFleetError.h:244
Aws::EC2::Model::CreateFleetError::SetLifecycle
void SetLifecycle(const InstanceLifecycle &value)
Definition: CreateFleetError.h:104
Aws::EC2::Model::CreateFleetError::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: CreateFleetError.h:155
Aws::EC2::Model::CreateFleetError::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: CreateFleetError.h:220
Aws::EC2::Model::CreateFleetError::operator=
CreateFleetError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::CreateFleetError::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: CreateFleetError.h:212
AWSStreamFwd.h
Aws::EC2::Model::CreateFleetError::WithLaunchTemplateAndOverrides
CreateFleetError & WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
Definition: CreateFleetError.h:78
Aws::EC2::Model::CreateFleetError::GetLaunchTemplateAndOverrides
const LaunchTemplateAndOverridesResponse & GetLaunchTemplateAndOverrides() const
Definition: CreateFleetError.h:50
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::CreateFleetError::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: CreateFleetError.h:196
Aws::EC2::Model::CreateFleetError::SetLaunchTemplateAndOverrides
void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
Definition: CreateFleetError.h:71
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::CreateFleetError::WithLifecycle
CreateFleetError & WithLifecycle(InstanceLifecycle &&value)
Definition: CreateFleetError.h:122
LaunchTemplateAndOverridesResponse.h
Aws::EC2::Model::InstanceLifecycle
InstanceLifecycle
Definition: InstanceLifecycle.h:17
Aws::EC2::Model::CreateFleetError::WithErrorCode
CreateFleetError & WithErrorCode(const Aws::String &value)
Definition: CreateFleetError.h:171
Aws::EC2::Model::CreateFleetError::LaunchTemplateAndOverridesHasBeenSet
bool LaunchTemplateAndOverridesHasBeenSet() const
Definition: CreateFleetError.h:57
Aws::EC2::Model::CreateFleetError::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: CreateFleetError.h:147
AWSString.h
Aws::EC2::Model::CreateFleetError::WithLifecycle
CreateFleetError & WithLifecycle(const InstanceLifecycle &value)
Definition: CreateFleetError.h:116
Aws::EC2::Model::CreateFleetError
Definition: CreateFleetError.h:35
Aws::EC2::Model::CreateFleetError::WithErrorCode
CreateFleetError & WithErrorCode(Aws::String &&value)
Definition: CreateFleetError.h:179
Aws::EC2::Model::CreateFleetError::GetLifecycle
const InstanceLifecycle & GetLifecycle() const
Definition: CreateFleetError.h:92
Aws::EC2::Model::CreateFleetError::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: CreateFleetError.h:204
Aws::EC2::Model::CreateFleetError::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: CreateFleetError.h:228
Aws::EC2::Model::CreateFleetError::CreateFleetError
CreateFleetError(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::CreateFleetError::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: CreateFleetError.h:131
Aws::EC2::Model::CreateFleetError::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::LaunchTemplateAndOverridesResponse
Definition: LaunchTemplateAndOverridesResponse.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::CreateFleetError::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::CreateFleetError::WithErrorCode
CreateFleetError & WithErrorCode(const char *value)
Definition: CreateFleetError.h:187
Aws::EC2::Model::CreateFleetError::WithErrorMessage
CreateFleetError & WithErrorMessage(const char *value)
Definition: CreateFleetError.h:252
Aws::EC2::Model::CreateFleetError::LifecycleHasBeenSet
bool LifecycleHasBeenSet() const
Definition: CreateFleetError.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
InstanceLifecycle.h
Aws::EC2::Model::CreateFleetError::CreateFleetError
CreateFleetError()
Aws::EC2::Model::CreateFleetError::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: CreateFleetError.h:139
EC2_EXPORTS.h
Aws::EC2::Model::CreateFleetError::WithErrorMessage
CreateFleetError & WithErrorMessage(const Aws::String &value)
Definition: CreateFleetError.h:236