AWS SDK for C++  0.12.9
AWS SDK for C++
VpcPeeringConnectionVpcInfo.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:
43  VpcPeeringConnectionVpcInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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 Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
52 
56  inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
57 
61  inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
62 
66  inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
67 
71  inline VpcPeeringConnectionVpcInfo& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
72 
76  inline VpcPeeringConnectionVpcInfo& WithCidrBlock(Aws::String&& value) { SetCidrBlock(value); return *this;}
77 
81  inline VpcPeeringConnectionVpcInfo& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
82 
86  inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
87 
91  inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
92 
96  inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
97 
101  inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
102 
106  inline VpcPeeringConnectionVpcInfo& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
107 
111  inline VpcPeeringConnectionVpcInfo& WithOwnerId(Aws::String&& value) { SetOwnerId(value); return *this;}
112 
116  inline VpcPeeringConnectionVpcInfo& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
117 
121  inline const Aws::String& GetVpcId() const{ return m_vpcId; }
122 
126  inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
127 
131  inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
132 
136  inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
137 
141  inline VpcPeeringConnectionVpcInfo& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
142 
146  inline VpcPeeringConnectionVpcInfo& WithVpcId(Aws::String&& value) { SetVpcId(value); return *this;}
147 
151  inline VpcPeeringConnectionVpcInfo& WithVpcId(const char* value) { SetVpcId(value); return *this;}
152 
157  inline const VpcPeeringConnectionOptionsDescription& GetPeeringOptions() const{ return m_peeringOptions; }
158 
163  inline void SetPeeringOptions(const VpcPeeringConnectionOptionsDescription& value) { m_peeringOptionsHasBeenSet = true; m_peeringOptions = value; }
164 
169  inline void SetPeeringOptions(VpcPeeringConnectionOptionsDescription&& value) { m_peeringOptionsHasBeenSet = true; m_peeringOptions = value; }
170 
175  inline VpcPeeringConnectionVpcInfo& WithPeeringOptions(const VpcPeeringConnectionOptionsDescription& value) { SetPeeringOptions(value); return *this;}
176 
181  inline VpcPeeringConnectionVpcInfo& WithPeeringOptions(VpcPeeringConnectionOptionsDescription&& value) { SetPeeringOptions(value); return *this;}
182 
183  private:
184  Aws::String m_cidrBlock;
185  bool m_cidrBlockHasBeenSet;
186  Aws::String m_ownerId;
187  bool m_ownerIdHasBeenSet;
188  Aws::String m_vpcId;
189  bool m_vpcIdHasBeenSet;
191  bool m_peeringOptionsHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace EC2
196 } // namespace Aws
VpcPeeringConnectionVpcInfo & WithCidrBlock(Aws::String &&value)
VpcPeeringConnectionVpcInfo & WithCidrBlock(const char *value)
const VpcPeeringConnectionOptionsDescription & GetPeeringOptions() const
VpcPeeringConnectionVpcInfo & WithPeeringOptions(VpcPeeringConnectionOptionsDescription &&value)
VpcPeeringConnectionVpcInfo & WithVpcId(Aws::String &&value)
VpcPeeringConnectionVpcInfo & WithPeeringOptions(const VpcPeeringConnectionOptionsDescription &value)
VpcPeeringConnectionVpcInfo & WithVpcId(const char *value)
VpcPeeringConnectionVpcInfo & WithVpcId(const Aws::String &value)
void SetPeeringOptions(VpcPeeringConnectionOptionsDescription &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
VpcPeeringConnectionVpcInfo & WithOwnerId(const Aws::String &value)
VpcPeeringConnectionVpcInfo & WithOwnerId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:34
VpcPeeringConnectionVpcInfo & WithOwnerId(Aws::String &&value)
void SetPeeringOptions(const VpcPeeringConnectionOptionsDescription &value)
JSON (JavaScript Object Notation).
VpcPeeringConnectionVpcInfo & WithCidrBlock(const Aws::String &value)