AWS SDK for C++  1.7.231
AWS SDK for C++
VpcPeeringConnectionStatus.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2017 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 
16 #pragma once
19 #include <utility>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28  class JsonView;
29 } // namespace Json
30 } // namespace Utils
31 namespace GameLift
32 {
33 namespace Model
34 {
35 
47  {
48  public:
52  Aws::Utils::Json::JsonValue Jsonize() const;
53 
54 
58  inline const Aws::String& GetCode() const{ return m_code; }
59 
63  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
64 
68  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
69 
73  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
74 
78  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
79 
83  inline VpcPeeringConnectionStatus& WithCode(const Aws::String& value) { SetCode(value); return *this;}
84 
88  inline VpcPeeringConnectionStatus& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
89 
93  inline VpcPeeringConnectionStatus& WithCode(const char* value) { SetCode(value); return *this;}
94 
95 
99  inline const Aws::String& GetMessage() const{ return m_message; }
100 
104  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
105 
109  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
110 
114  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
115 
119  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
120 
124  inline VpcPeeringConnectionStatus& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
125 
129  inline VpcPeeringConnectionStatus& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
130 
134  inline VpcPeeringConnectionStatus& WithMessage(const char* value) { SetMessage(value); return *this;}
135 
136  private:
137 
138  Aws::String m_code;
139  bool m_codeHasBeenSet;
140 
141  Aws::String m_message;
142  bool m_messageHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace GameLift
147 } // 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:107