AWS SDK for C++  0.14.3
AWS SDK for C++
SecurityGroupReference.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
39  {
40  public:
43  SecurityGroupReference& 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& GetGroupId() const{ return m_groupId; }
52 
56  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
57 
61  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
62 
66  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
67 
71  inline SecurityGroupReference& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
72 
76  inline SecurityGroupReference& WithGroupId(Aws::String&& value) { SetGroupId(value); return *this;}
77 
81  inline SecurityGroupReference& WithGroupId(const char* value) { SetGroupId(value); return *this;}
82 
86  inline const Aws::String& GetReferencingVpcId() const{ return m_referencingVpcId; }
87 
91  inline void SetReferencingVpcId(const Aws::String& value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId = value; }
92 
96  inline void SetReferencingVpcId(Aws::String&& value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId = value; }
97 
101  inline void SetReferencingVpcId(const char* value) { m_referencingVpcIdHasBeenSet = true; m_referencingVpcId.assign(value); }
102 
106  inline SecurityGroupReference& WithReferencingVpcId(const Aws::String& value) { SetReferencingVpcId(value); return *this;}
107 
111  inline SecurityGroupReference& WithReferencingVpcId(Aws::String&& value) { SetReferencingVpcId(value); return *this;}
112 
116  inline SecurityGroupReference& WithReferencingVpcId(const char* value) { SetReferencingVpcId(value); return *this;}
117 
121  inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; }
122 
126  inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
127 
131  inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; }
132 
136  inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); }
137 
141  inline SecurityGroupReference& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;}
142 
146  inline SecurityGroupReference& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(value); return *this;}
147 
151  inline SecurityGroupReference& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;}
152 
153  private:
154  Aws::String m_groupId;
155  bool m_groupIdHasBeenSet;
156  Aws::String m_referencingVpcId;
157  bool m_referencingVpcIdHasBeenSet;
158  Aws::String m_vpcPeeringConnectionId;
159  bool m_vpcPeeringConnectionIdHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace EC2
164 } // namespace Aws
SecurityGroupReference & WithVpcPeeringConnectionId(const Aws::String &value)
const Aws::String & GetVpcPeeringConnectionId() const
SecurityGroupReference & WithGroupId(const char *value)
void SetGroupId(const Aws::String &value)
void SetReferencingVpcId(const Aws::String &value)
SecurityGroupReference & WithGroupId(const Aws::String &value)
SecurityGroupReference & WithVpcPeeringConnectionId(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
SecurityGroupReference & WithReferencingVpcId(const char *value)
void SetVpcPeeringConnectionId(const Aws::String &value)
SecurityGroupReference & WithReferencingVpcId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetVpcPeeringConnectionId(Aws::String &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
SecurityGroupReference & WithVpcPeeringConnectionId(const char *value)
SecurityGroupReference & WithReferencingVpcId(const Aws::String &value)
SecurityGroupReference & WithGroupId(Aws::String &&value)
JSON (JavaScript Object Notation).
const Aws::String & GetReferencingVpcId() const