AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
ApplicationStatusReason.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API ApplicationStatusReason() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
59 inline const Aws::String& GetCode() const { return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 template <typename CodeT = Aws::String>
62 void SetCode(CodeT&& value) {
63 m_codeHasBeenSet = true;
64 m_code = std::forward<CodeT>(value);
65 }
66 template <typename CodeT = Aws::String>
68 SetCode(std::forward<CodeT>(value));
69 return *this;
70 }
72
74
77 inline int GetStatusCode() const { return m_statusCode; }
78 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
79 inline void SetStatusCode(int value) {
80 m_statusCodeHasBeenSet = true;
81 m_statusCode = value;
82 }
84 SetStatusCode(value);
85 return *this;
86 }
88
90
94 inline const Aws::String& GetProtocol() const { return m_protocol; }
95 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
96 template <typename ProtocolT = Aws::String>
97 void SetProtocol(ProtocolT&& value) {
98 m_protocolHasBeenSet = true;
99 m_protocol = std::forward<ProtocolT>(value);
100 }
101 template <typename ProtocolT = Aws::String>
103 SetProtocol(std::forward<ProtocolT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_code;
109
110 int m_statusCode{0};
111
112 Aws::String m_protocol;
113 bool m_codeHasBeenSet = false;
114 bool m_statusCodeHasBeenSet = false;
115 bool m_protocolHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace EC2
120} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API ApplicationStatusReason & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ApplicationStatusReason(const Aws::Utils::Xml::XmlNode &xmlNode)
ApplicationStatusReason & WithStatusCode(int value)
ApplicationStatusReason & WithProtocol(ProtocolT &&value)
ApplicationStatusReason & WithCode(CodeT &&value)
AWS_EC2_API ApplicationStatusReason()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream