AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SpotInstanceStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
30 public:
31 AWS_EC2_API SpotInstanceStatus() = default;
32 AWS_EC2_API SpotInstanceStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
44 inline const Aws::String& GetCode() const { return m_code; }
45 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
46 template <typename CodeT = Aws::String>
47 void SetCode(CodeT&& value) {
48 m_codeHasBeenSet = true;
49 m_code = std::forward<CodeT>(value);
50 }
51 template <typename CodeT = Aws::String>
52 SpotInstanceStatus& WithCode(CodeT&& value) {
53 SetCode(std::forward<CodeT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetMessage() const { return m_message; }
63 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
64 template <typename MessageT = Aws::String>
65 void SetMessage(MessageT&& value) {
66 m_messageHasBeenSet = true;
67 m_message = std::forward<MessageT>(value);
68 }
69 template <typename MessageT = Aws::String>
70 SpotInstanceStatus& WithMessage(MessageT&& value) {
71 SetMessage(std::forward<MessageT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
82 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
83 template <typename UpdateTimeT = Aws::Utils::DateTime>
84 void SetUpdateTime(UpdateTimeT&& value) {
85 m_updateTimeHasBeenSet = true;
86 m_updateTime = std::forward<UpdateTimeT>(value);
87 }
88 template <typename UpdateTimeT = Aws::Utils::DateTime>
89 SpotInstanceStatus& WithUpdateTime(UpdateTimeT&& value) {
90 SetUpdateTime(std::forward<UpdateTimeT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_code;
96
97 Aws::String m_message;
98
99 Aws::Utils::DateTime m_updateTime{};
100 bool m_codeHasBeenSet = false;
101 bool m_messageHasBeenSet = false;
102 bool m_updateTimeHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace EC2
107} // namespace Aws
SpotInstanceStatus & WithUpdateTime(UpdateTimeT &&value)
void SetUpdateTime(UpdateTimeT &&value)
const Aws::String & GetMessage() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API SpotInstanceStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API SpotInstanceStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API SpotInstanceStatus()=default
const Aws::Utils::DateTime & GetUpdateTime() const
SpotInstanceStatus & WithCode(CodeT &&value)
const Aws::String & GetCode() const
SpotInstanceStatus & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream