AWS SDK for C++  0.12.9
AWS SDK for C++
VPC.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Route53
30 {
31 namespace Model
32 {
33 
35  {
36  public:
37  VPC();
38  VPC(const Aws::Utils::Xml::XmlNode& xmlNode);
39  VPC& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40 
41  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42 
43 
44  inline const VPCRegion& GetVPCRegion() const{ return m_vPCRegion; }
45 
46 
47  inline void SetVPCRegion(const VPCRegion& value) { m_vPCRegionHasBeenSet = true; m_vPCRegion = value; }
48 
49 
50  inline void SetVPCRegion(VPCRegion&& value) { m_vPCRegionHasBeenSet = true; m_vPCRegion = value; }
51 
52 
53  inline VPC& WithVPCRegion(const VPCRegion& value) { SetVPCRegion(value); return *this;}
54 
55 
56  inline VPC& WithVPCRegion(VPCRegion&& value) { SetVPCRegion(value); return *this;}
57 
58 
59  inline const Aws::String& GetVPCId() const{ return m_vPCId; }
60 
61 
62  inline void SetVPCId(const Aws::String& value) { m_vPCIdHasBeenSet = true; m_vPCId = value; }
63 
64 
65  inline void SetVPCId(Aws::String&& value) { m_vPCIdHasBeenSet = true; m_vPCId = value; }
66 
67 
68  inline void SetVPCId(const char* value) { m_vPCIdHasBeenSet = true; m_vPCId.assign(value); }
69 
70 
71  inline VPC& WithVPCId(const Aws::String& value) { SetVPCId(value); return *this;}
72 
73 
74  inline VPC& WithVPCId(Aws::String&& value) { SetVPCId(value); return *this;}
75 
76 
77  inline VPC& WithVPCId(const char* value) { SetVPCId(value); return *this;}
78 
79  private:
80  VPCRegion m_vPCRegion;
81  bool m_vPCRegionHasBeenSet;
82  Aws::String m_vPCId;
83  bool m_vPCIdHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace Route53
88 } // namespace Aws
void SetVPCId(const char *value)
Definition: VPC.h:68
const VPCRegion & GetVPCRegion() const
Definition: VPC.h:44
VPC & WithVPCId(const Aws::String &value)
Definition: VPC.h:71
VPC & WithVPCRegion(const VPCRegion &value)
Definition: VPC.h:53
void SetVPCRegion(const VPCRegion &value)
Definition: VPC.h:47
void SetVPCRegion(VPCRegion &&value)
Definition: VPC.h:50
VPC & WithVPCId(const char *value)
Definition: VPC.h:77
#define AWS_ROUTE53_API
VPC & WithVPCRegion(VPCRegion &&value)
Definition: VPC.h:56
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVPCId(const Aws::String &value)
Definition: VPC.h:62
void SetVPCId(Aws::String &&value)
Definition: VPC.h:65
const Aws::String & GetVPCId() const
Definition: VPC.h:59
VPC & WithVPCId(Aws::String &&value)
Definition: VPC.h:74
JSON (JavaScript Object Notation).