AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StateReason.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API StateReason() = default;
35 AWS_EC2_API StateReason(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_EC2_API StateReason& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetCode() const { return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 template<typename CodeT = Aws::String>
49 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
50 template<typename CodeT = Aws::String>
51 StateReason& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
53
55
82 inline const Aws::String& GetMessage() const { return m_message; }
83 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
84 template<typename MessageT = Aws::String>
85 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
86 template<typename MessageT = Aws::String>
87 StateReason& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
89 private:
90
91 Aws::String m_code;
92 bool m_codeHasBeenSet = false;
93
94 Aws::String m_message;
95 bool m_messageHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace EC2
100} // namespace Aws
void SetCode(CodeT &&value)
Definition StateReason.h:49
void SetMessage(MessageT &&value)
Definition StateReason.h:85
const Aws::String & GetCode() const
Definition StateReason.h:46
const Aws::String & GetMessage() const
Definition StateReason.h:82
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API StateReason(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API StateReason & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StateReason & WithMessage(MessageT &&value)
Definition StateReason.h:87
StateReason & WithCode(CodeT &&value)
Definition StateReason.h:51
AWS_EC2_API StateReason()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream