AWS SDK for C++  1.8.7
AWS SDK for C++
VpcPeeringConnectionStatus.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GameLift
22 {
23 namespace Model
24 {
25 
37  {
38  public:
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
48  inline const Aws::String& GetCode() const{ return m_code; }
49 
53  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
54 
58  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
59 
63  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
64 
68  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
69 
73  inline VpcPeeringConnectionStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
74 
78  inline VpcPeeringConnectionStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
79 
83  inline VpcPeeringConnectionStatus& WithCode(const char* value) { SetCode(value); return *this;}
84 
85 
89  inline const Aws::String& GetMessage() const{ return m_message; }
90 
94  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
95 
99  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
100 
104  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
105 
109  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
110 
114  inline VpcPeeringConnectionStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
115 
119  inline VpcPeeringConnectionStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
120 
124  inline VpcPeeringConnectionStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
125 
126  private:
127 
128  Aws::String m_code;
129  bool m_codeHasBeenSet;
130 
131  Aws::String m_message;
132  bool m_messageHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace GameLift
137 } // namespace Aws
#define AWS_GAMELIFT_API
VpcPeeringConnectionStatus & WithMessage(const Aws::String &value)
VpcPeeringConnectionStatus & WithMessage(const char *value)
VpcPeeringConnectionStatus & WithCode(const char *value)
VpcPeeringConnectionStatus & WithCode(const Aws::String &value)
VpcPeeringConnectionStatus & WithMessage(Aws::String &&value)
VpcPeeringConnectionStatus & WithCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97