AWS SDK for C++  1.9.67
AWS SDK for C++
SpotInstanceStatus.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
49  inline const Aws::String& GetCode() const{ return m_code; }
50 
56  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
57 
63  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
64 
70  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
71 
77  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
78 
84  inline SpotInstanceStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
85 
91  inline SpotInstanceStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
92 
98  inline SpotInstanceStatus& WithCode(const char* value) { SetCode(value); return *this;}
99 
100 
104  inline const Aws::String& GetMessage() const{ return m_message; }
105 
109  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
110 
114  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
115 
119  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
120 
124  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
125 
129  inline SpotInstanceStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
130 
134  inline SpotInstanceStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
135 
139  inline SpotInstanceStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
140 
141 
146  inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
147 
152  inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
153 
158  inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
159 
164  inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
165 
170  inline SpotInstanceStatus& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
171 
176  inline SpotInstanceStatus& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
177 
178  private:
179 
180  Aws::String m_code;
181  bool m_codeHasBeenSet;
182 
183  Aws::String m_message;
184  bool m_messageHasBeenSet;
185 
186  Aws::Utils::DateTime m_updateTime;
187  bool m_updateTimeHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace EC2
192 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::SpotInstanceStatus::UpdateTimeHasBeenSet
bool UpdateTimeHasBeenSet() const
Definition: SpotInstanceStatus.h:152
Aws::EC2::Model::SpotInstanceStatus::SetCode
void SetCode(const char *value)
Definition: SpotInstanceStatus.h:77
Aws::EC2::Model::SpotInstanceStatus::SetMessage
void SetMessage(const char *value)
Definition: SpotInstanceStatus.h:124
Aws::EC2::Model::SpotInstanceStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::SpotInstanceStatus::GetMessage
const Aws::String & GetMessage() const
Definition: SpotInstanceStatus.h:104
AWSStreamFwd.h
Aws::EC2::Model::SpotInstanceStatus::SpotInstanceStatus
SpotInstanceStatus()
Aws::EC2::Model::SpotInstanceStatus::operator=
SpotInstanceStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SpotInstanceStatus::SetMessage
void SetMessage(const Aws::String &value)
Definition: SpotInstanceStatus.h:114
Aws::EC2::Model::SpotInstanceStatus::GetUpdateTime
const Aws::Utils::DateTime & GetUpdateTime() const
Definition: SpotInstanceStatus.h:146
Aws::EC2::Model::SpotInstanceStatus::SetUpdateTime
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition: SpotInstanceStatus.h:164
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SpotInstanceStatus::WithCode
SpotInstanceStatus & WithCode(Aws::String &&value)
Definition: SpotInstanceStatus.h:91
Aws::EC2::Model::SpotInstanceStatus::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: SpotInstanceStatus.h:109
Aws::EC2::Model::SpotInstanceStatus::WithMessage
SpotInstanceStatus & WithMessage(const Aws::String &value)
Definition: SpotInstanceStatus.h:129
Aws::EC2::Model::SpotInstanceStatus::WithMessage
SpotInstanceStatus & WithMessage(const char *value)
Definition: SpotInstanceStatus.h:139
AWSString.h
Aws::EC2::Model::SpotInstanceStatus::SetCode
void SetCode(const Aws::String &value)
Definition: SpotInstanceStatus.h:63
Aws::EC2::Model::SpotInstanceStatus::SetMessage
void SetMessage(Aws::String &&value)
Definition: SpotInstanceStatus.h:119
Aws::EC2::Model::SpotInstanceStatus::GetCode
const Aws::String & GetCode() const
Definition: SpotInstanceStatus.h:49
Aws::EC2::Model::SpotInstanceStatus::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: SpotInstanceStatus.h:56
Aws::EC2::Model::SpotInstanceStatus::SetUpdateTime
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition: SpotInstanceStatus.h:158
Aws::EC2::Model::SpotInstanceStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SpotInstanceStatus::SpotInstanceStatus
SpotInstanceStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SpotInstanceStatus::WithCode
SpotInstanceStatus & WithCode(const Aws::String &value)
Definition: SpotInstanceStatus.h:84
Aws::EC2::Model::SpotInstanceStatus::WithCode
SpotInstanceStatus & WithCode(const char *value)
Definition: SpotInstanceStatus.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
Aws::EC2::Model::SpotInstanceStatus
Definition: SpotInstanceStatus.h:34
Aws::EC2::Model::SpotInstanceStatus::WithUpdateTime
SpotInstanceStatus & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition: SpotInstanceStatus.h:170
Aws::EC2::Model::SpotInstanceStatus::SetCode
void SetCode(Aws::String &&value)
Definition: SpotInstanceStatus.h:70
Aws::EC2::Model::SpotInstanceStatus::WithMessage
SpotInstanceStatus & WithMessage(Aws::String &&value)
Definition: SpotInstanceStatus.h:134
EC2_EXPORTS.h
Aws::EC2::Model::SpotInstanceStatus::WithUpdateTime
SpotInstanceStatus & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition: SpotInstanceStatus.h:176