AWS SDK for C++  0.12.9
AWS SDK for C++
StatusCodes.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace ElasticBeanstalk
29 {
30 namespace Model
31 {
32 
40  {
41  public:
42  StatusCodes();
43  StatusCodes(const Aws::Utils::Xml::XmlNode& xmlNode);
44  StatusCodes& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
53  inline long GetStatus2xx() const{ return m_status2xx; }
54 
59  inline void SetStatus2xx(long value) { m_status2xxHasBeenSet = true; m_status2xx = value; }
60 
65  inline StatusCodes& WithStatus2xx(long value) { SetStatus2xx(value); return *this;}
66 
71  inline long GetStatus3xx() const{ return m_status3xx; }
72 
77  inline void SetStatus3xx(long value) { m_status3xxHasBeenSet = true; m_status3xx = value; }
78 
83  inline StatusCodes& WithStatus3xx(long value) { SetStatus3xx(value); return *this;}
84 
89  inline long GetStatus4xx() const{ return m_status4xx; }
90 
95  inline void SetStatus4xx(long value) { m_status4xxHasBeenSet = true; m_status4xx = value; }
96 
101  inline StatusCodes& WithStatus4xx(long value) { SetStatus4xx(value); return *this;}
102 
107  inline long GetStatus5xx() const{ return m_status5xx; }
108 
113  inline void SetStatus5xx(long value) { m_status5xxHasBeenSet = true; m_status5xx = value; }
114 
119  inline StatusCodes& WithStatus5xx(long value) { SetStatus5xx(value); return *this;}
120 
121  private:
122  long m_status2xx;
123  bool m_status2xxHasBeenSet;
124  long m_status3xx;
125  bool m_status3xxHasBeenSet;
126  long m_status4xx;
127  bool m_status4xxHasBeenSet;
128  long m_status5xx;
129  bool m_status5xxHasBeenSet;
130  };
131 
132 } // namespace Model
133 } // namespace ElasticBeanstalk
134 } // namespace Aws
StatusCodes & WithStatus5xx(long value)
Definition: StatusCodes.h:119
#define AWS_ELASTICBEANSTALK_API
StatusCodes & WithStatus2xx(long value)
Definition: StatusCodes.h:65
StatusCodes & WithStatus3xx(long value)
Definition: StatusCodes.h:83
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
JSON (JavaScript Object Notation).
StatusCodes & WithStatus4xx(long value)
Definition: StatusCodes.h:101