AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StatusCodes.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
9
10namespace Aws {
11namespace Utils {
12namespace Xml {
13class XmlNode;
14} // namespace Xml
15} // namespace Utils
16namespace ElasticBeanstalk {
17namespace Model {
18
28 public:
29 AWS_ELASTICBEANSTALK_API StatusCodes() = default;
30 AWS_ELASTICBEANSTALK_API StatusCodes(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ELASTICBEANSTALK_API StatusCodes& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
34 const char* locationValue) const;
35 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline int GetStatus2xx() const { return m_status2xx; }
43 inline bool Status2xxHasBeenSet() const { return m_status2xxHasBeenSet; }
44 inline void SetStatus2xx(int value) {
45 m_status2xxHasBeenSet = true;
46 m_status2xx = value;
47 }
48 inline StatusCodes& WithStatus2xx(int value) {
49 SetStatus2xx(value);
50 return *this;
51 }
53
55
59 inline int GetStatus3xx() const { return m_status3xx; }
60 inline bool Status3xxHasBeenSet() const { return m_status3xxHasBeenSet; }
61 inline void SetStatus3xx(int value) {
62 m_status3xxHasBeenSet = true;
63 m_status3xx = value;
64 }
65 inline StatusCodes& WithStatus3xx(int value) {
66 SetStatus3xx(value);
67 return *this;
68 }
70
72
76 inline int GetStatus4xx() const { return m_status4xx; }
77 inline bool Status4xxHasBeenSet() const { return m_status4xxHasBeenSet; }
78 inline void SetStatus4xx(int value) {
79 m_status4xxHasBeenSet = true;
80 m_status4xx = value;
81 }
82 inline StatusCodes& WithStatus4xx(int value) {
83 SetStatus4xx(value);
84 return *this;
85 }
87
89
93 inline int GetStatus5xx() const { return m_status5xx; }
94 inline bool Status5xxHasBeenSet() const { return m_status5xxHasBeenSet; }
95 inline void SetStatus5xx(int value) {
96 m_status5xxHasBeenSet = true;
97 m_status5xx = value;
98 }
99 inline StatusCodes& WithStatus5xx(int value) {
100 SetStatus5xx(value);
101 return *this;
102 }
104 private:
105 int m_status2xx{0};
106
107 int m_status3xx{0};
108
109 int m_status4xx{0};
110
111 int m_status5xx{0};
112 bool m_status2xxHasBeenSet = false;
113 bool m_status3xxHasBeenSet = false;
114 bool m_status4xxHasBeenSet = false;
115 bool m_status5xxHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace ElasticBeanstalk
120} // namespace Aws
StatusCodes & WithStatus2xx(int value)
Definition StatusCodes.h:48
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICBEANSTALK_API StatusCodes(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API StatusCodes & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API StatusCodes()=default
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StatusCodes & WithStatus4xx(int value)
Definition StatusCodes.h:82
StatusCodes & WithStatus5xx(int value)
Definition StatusCodes.h:99
StatusCodes & WithStatus3xx(int value)
Definition StatusCodes.h:65
std::basic_ostream< char, std::char_traits< char > > OStream