AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename CodeT = Aws::String>
53 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
54 template<typename CodeT = Aws::String>
55 SpotInstanceStatus& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
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) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
66 template<typename MessageT = Aws::String>
67 SpotInstanceStatus& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
76 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
77 template<typename UpdateTimeT = Aws::Utils::DateTime>
78 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
79 template<typename UpdateTimeT = Aws::Utils::DateTime>
80 SpotInstanceStatus& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
82 private:
83
84 Aws::String m_code;
85 bool m_codeHasBeenSet = false;
86
87 Aws::String m_message;
88 bool m_messageHasBeenSet = false;
89
90 Aws::Utils::DateTime m_updateTime{};
91 bool m_updateTimeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EC2
96} // 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