AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotInstanceStatus.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API SpotInstanceStatus();
37 AWS_EC2_API SpotInstanceStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
50 inline const Aws::String& GetCode() const{ return m_code; }
51 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
52 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
53 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
54 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
55 inline SpotInstanceStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
56 inline SpotInstanceStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
57 inline SpotInstanceStatus& WithCode(const char* value) { SetCode(value); return *this;}
59
61
64 inline const Aws::String& GetMessage() const{ return m_message; }
65 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
66 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
67 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
68 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
69 inline SpotInstanceStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
70 inline SpotInstanceStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
71 inline SpotInstanceStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
73
75
79 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
80 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
81 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
82 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
83 inline SpotInstanceStatus& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
84 inline SpotInstanceStatus& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
86 private:
87
88 Aws::String m_code;
89 bool m_codeHasBeenSet = false;
90
91 Aws::String m_message;
92 bool m_messageHasBeenSet = false;
93
94 Aws::Utils::DateTime m_updateTime;
95 bool m_updateTimeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
const Aws::String & GetMessage() const
SpotInstanceStatus & WithMessage(const char *value)
void SetCode(const Aws::String &value)
SpotInstanceStatus & WithUpdateTime(const Aws::Utils::DateTime &value)
void SetMessage(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetUpdateTime(const Aws::Utils::DateTime &value)
SpotInstanceStatus & WithCode(Aws::String &&value)
SpotInstanceStatus & WithCode(const Aws::String &value)
AWS_EC2_API SpotInstanceStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMessage(Aws::String &&value)
AWS_EC2_API SpotInstanceStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotInstanceStatus & WithMessage(const Aws::String &value)
SpotInstanceStatus & WithUpdateTime(Aws::Utils::DateTime &&value)
void SetUpdateTime(Aws::Utils::DateTime &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetUpdateTime() const
SpotInstanceStatus & WithMessage(Aws::String &&value)
const Aws::String & GetCode() const
SpotInstanceStatus & WithCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream