AWS SDK for C++  0.14.3
AWS SDK for C++
VpcPeeringConnectionStateReason.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
16 #include <aws/ec2/EC2_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const VpcPeeringConnectionStateReasonCode& GetCode() const{ return m_code; }
52 
56  inline void SetCode(const VpcPeeringConnectionStateReasonCode& value) { m_codeHasBeenSet = true; m_code = value; }
57 
61  inline void SetCode(VpcPeeringConnectionStateReasonCode&& value) { m_codeHasBeenSet = true; m_code = value; }
62 
66  inline VpcPeeringConnectionStateReason& WithCode(const VpcPeeringConnectionStateReasonCode& value) { SetCode(value); return *this;}
67 
71  inline VpcPeeringConnectionStateReason& WithCode(VpcPeeringConnectionStateReasonCode&& value) { SetCode(value); return *this;}
72 
76  inline const Aws::String& GetMessage() const{ return m_message; }
77 
81  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
82 
86  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
87 
91  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
92 
96  inline VpcPeeringConnectionStateReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
97 
101  inline VpcPeeringConnectionStateReason& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
102 
106  inline VpcPeeringConnectionStateReason& WithMessage(const char* value) { SetMessage(value); return *this;}
107 
108  private:
110  bool m_codeHasBeenSet;
111  Aws::String m_message;
112  bool m_messageHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace EC2
117 } // namespace Aws
void SetCode(const VpcPeeringConnectionStateReasonCode &value)
VpcPeeringConnectionStateReason & WithMessage(Aws::String &&value)
VpcPeeringConnectionStateReason & WithCode(VpcPeeringConnectionStateReasonCode &&value)
void SetCode(VpcPeeringConnectionStateReasonCode &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const VpcPeeringConnectionStateReasonCode & GetCode() const
VpcPeeringConnectionStateReason & WithMessage(const Aws::String &value)
VpcPeeringConnectionStateReason & WithMessage(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
VpcPeeringConnectionStateReason & WithCode(const VpcPeeringConnectionStateReasonCode &value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
JSON (JavaScript Object Notation).