AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeFleetError.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 DescribeFleetError& WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse& value) { SetLaunchTemplateAndOverrides(value); return *this;}
79 
85  inline DescribeFleetError& 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 DescribeFleetError& WithLifecycle(const InstanceLifecycle& value) { SetLifecycle(value); return *this;}
117 
122  inline DescribeFleetError& 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 DescribeFleetError& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
172 
179  inline DescribeFleetError& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
180 
187  inline DescribeFleetError& 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 DescribeFleetError& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
237 
244  inline DescribeFleetError& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
245 
252  inline DescribeFleetError& 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::DescribeFleetError::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DescribeFleetError::SetErrorMessage
void SetErrorMessage(Aws::String &&value)
Definition: DescribeFleetError.h:220
Aws::EC2::Model::DescribeFleetError::operator=
DescribeFleetError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DescribeFleetError::WithErrorCode
DescribeFleetError & WithErrorCode(Aws::String &&value)
Definition: DescribeFleetError.h:179
Aws::EC2::Model::DescribeFleetError::DescribeFleetError
DescribeFleetError()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeFleetError::WithErrorMessage
DescribeFleetError & WithErrorMessage(const char *value)
Definition: DescribeFleetError.h:252
Aws::EC2::Model::DescribeFleetError::GetLifecycle
const InstanceLifecycle & GetLifecycle() const
Definition: DescribeFleetError.h:92
AWSStreamFwd.h
Aws::EC2::Model::DescribeFleetError::SetLifecycle
void SetLifecycle(InstanceLifecycle &&value)
Definition: DescribeFleetError.h:110
Aws::EC2::Model::DescribeFleetError::LaunchTemplateAndOverridesHasBeenSet
bool LaunchTemplateAndOverridesHasBeenSet() const
Definition: DescribeFleetError.h:57
Aws::EC2::Model::DescribeFleetError::DescribeFleetError
DescribeFleetError(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DescribeFleetError::GetLaunchTemplateAndOverrides
const LaunchTemplateAndOverridesResponse & GetLaunchTemplateAndOverrides() const
Definition: DescribeFleetError.h:50
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DescribeFleetError::WithLifecycle
DescribeFleetError & WithLifecycle(InstanceLifecycle &&value)
Definition: DescribeFleetError.h:122
Aws::EC2::Model::DescribeFleetError::SetErrorCode
void SetErrorCode(Aws::String &&value)
Definition: DescribeFleetError.h:155
Aws::EC2::Model::DescribeFleetError::GetErrorCode
const Aws::String & GetErrorCode() const
Definition: DescribeFleetError.h:131
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DescribeFleetError::WithErrorCode
DescribeFleetError & WithErrorCode(const char *value)
Definition: DescribeFleetError.h:187
LaunchTemplateAndOverridesResponse.h
Aws::EC2::Model::DescribeFleetError::WithLaunchTemplateAndOverrides
DescribeFleetError & WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
Definition: DescribeFleetError.h:85
Aws::EC2::Model::InstanceLifecycle
InstanceLifecycle
Definition: InstanceLifecycle.h:17
Aws::EC2::Model::DescribeFleetError::SetErrorCode
void SetErrorCode(const Aws::String &value)
Definition: DescribeFleetError.h:147
Aws::EC2::Model::DescribeFleetError::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::EC2::Model::DescribeFleetError::WithErrorMessage
DescribeFleetError & WithErrorMessage(const Aws::String &value)
Definition: DescribeFleetError.h:236
Aws::EC2::Model::DescribeFleetError::GetErrorMessage
const Aws::String & GetErrorMessage() const
Definition: DescribeFleetError.h:196
Aws::EC2::Model::DescribeFleetError::SetErrorMessage
void SetErrorMessage(const char *value)
Definition: DescribeFleetError.h:228
Aws::EC2::Model::DescribeFleetError::SetLaunchTemplateAndOverrides
void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
Definition: DescribeFleetError.h:64
Aws::EC2::Model::DescribeFleetError::SetLaunchTemplateAndOverrides
void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
Definition: DescribeFleetError.h:71
Aws::EC2::Model::DescribeFleetError::WithLifecycle
DescribeFleetError & WithLifecycle(const InstanceLifecycle &value)
Definition: DescribeFleetError.h:116
Aws::EC2::Model::DescribeFleetError::WithLaunchTemplateAndOverrides
DescribeFleetError & WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
Definition: DescribeFleetError.h:78
Aws::EC2::Model::DescribeFleetError::LifecycleHasBeenSet
bool LifecycleHasBeenSet() const
Definition: DescribeFleetError.h:98
Aws::EC2::Model::LaunchTemplateAndOverridesResponse
Definition: LaunchTemplateAndOverridesResponse.h:33
Aws::EC2::Model::DescribeFleetError
Definition: DescribeFleetError.h:35
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::DescribeFleetError::SetLifecycle
void SetLifecycle(const InstanceLifecycle &value)
Definition: DescribeFleetError.h:104
index
int index
Definition: cJSON.h:181
InstanceLifecycle.h
Aws::EC2::Model::DescribeFleetError::SetErrorCode
void SetErrorCode(const char *value)
Definition: DescribeFleetError.h:163
Aws::EC2::Model::DescribeFleetError::ErrorMessageHasBeenSet
bool ErrorMessageHasBeenSet() const
Definition: DescribeFleetError.h:204
Aws::EC2::Model::DescribeFleetError::SetErrorMessage
void SetErrorMessage(const Aws::String &value)
Definition: DescribeFleetError.h:212
EC2_EXPORTS.h
Aws::EC2::Model::DescribeFleetError::ErrorCodeHasBeenSet
bool ErrorCodeHasBeenSet() const
Definition: DescribeFleetError.h:139
Aws::EC2::Model::DescribeFleetError::WithErrorMessage
DescribeFleetError & WithErrorMessage(Aws::String &&value)
Definition: DescribeFleetError.h:244
Aws::EC2::Model::DescribeFleetError::WithErrorCode
DescribeFleetError & WithErrorCode(const Aws::String &value)
Definition: DescribeFleetError.h:171