AWS SDK for C++  1.9.66
AWS SDK for C++
NetworkAclAssociation.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetNetworkAclAssociationId() const{ return m_networkAclAssociationId; }
47 
51  inline bool NetworkAclAssociationIdHasBeenSet() const { return m_networkAclAssociationIdHasBeenSet; }
52 
56  inline void SetNetworkAclAssociationId(const Aws::String& value) { m_networkAclAssociationIdHasBeenSet = true; m_networkAclAssociationId = value; }
57 
61  inline void SetNetworkAclAssociationId(Aws::String&& value) { m_networkAclAssociationIdHasBeenSet = true; m_networkAclAssociationId = std::move(value); }
62 
66  inline void SetNetworkAclAssociationId(const char* value) { m_networkAclAssociationIdHasBeenSet = true; m_networkAclAssociationId.assign(value); }
67 
71  inline NetworkAclAssociation& WithNetworkAclAssociationId(const Aws::String& value) { SetNetworkAclAssociationId(value); return *this;}
72 
76  inline NetworkAclAssociation& WithNetworkAclAssociationId(Aws::String&& value) { SetNetworkAclAssociationId(std::move(value)); return *this;}
77 
81  inline NetworkAclAssociation& WithNetworkAclAssociationId(const char* value) { SetNetworkAclAssociationId(value); return *this;}
82 
83 
87  inline const Aws::String& GetNetworkAclId() const{ return m_networkAclId; }
88 
92  inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
93 
97  inline void SetNetworkAclId(const Aws::String& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = value; }
98 
102  inline void SetNetworkAclId(Aws::String&& value) { m_networkAclIdHasBeenSet = true; m_networkAclId = std::move(value); }
103 
107  inline void SetNetworkAclId(const char* value) { m_networkAclIdHasBeenSet = true; m_networkAclId.assign(value); }
108 
112  inline NetworkAclAssociation& WithNetworkAclId(const Aws::String& value) { SetNetworkAclId(value); return *this;}
113 
117  inline NetworkAclAssociation& WithNetworkAclId(Aws::String&& value) { SetNetworkAclId(std::move(value)); return *this;}
118 
122  inline NetworkAclAssociation& WithNetworkAclId(const char* value) { SetNetworkAclId(value); return *this;}
123 
124 
128  inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
129 
133  inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
134 
138  inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
139 
143  inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
144 
148  inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
149 
153  inline NetworkAclAssociation& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
154 
158  inline NetworkAclAssociation& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
159 
163  inline NetworkAclAssociation& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
164 
165  private:
166 
167  Aws::String m_networkAclAssociationId;
168  bool m_networkAclAssociationIdHasBeenSet;
169 
170  Aws::String m_networkAclId;
171  bool m_networkAclIdHasBeenSet;
172 
173  Aws::String m_subnetId;
174  bool m_subnetIdHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
Aws::EC2::Model::NetworkAclAssociation::SetNetworkAclAssociationId
void SetNetworkAclAssociationId(Aws::String &&value)
Definition: NetworkAclAssociation.h:61
Aws::EC2::Model::NetworkAclAssociation::WithNetworkAclAssociationId
NetworkAclAssociation & WithNetworkAclAssociationId(const char *value)
Definition: NetworkAclAssociation.h:81
Aws::EC2::Model::NetworkAclAssociation::operator=
NetworkAclAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkAclAssociation::WithSubnetId
NetworkAclAssociation & WithSubnetId(const Aws::String &value)
Definition: NetworkAclAssociation.h:153
Aws::EC2::Model::NetworkAclAssociation::GetSubnetId
const Aws::String & GetSubnetId() const
Definition: NetworkAclAssociation.h:128
Aws::EC2::Model::NetworkAclAssociation::GetNetworkAclId
const Aws::String & GetNetworkAclId() const
Definition: NetworkAclAssociation.h:87
Aws::EC2::Model::NetworkAclAssociation::NetworkAclAssociation
NetworkAclAssociation()
Aws::EC2::Model::NetworkAclAssociation::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::NetworkAclAssociation
Definition: NetworkAclAssociation.h:33
Aws::EC2::Model::NetworkAclAssociation::NetworkAclAssociationIdHasBeenSet
bool NetworkAclAssociationIdHasBeenSet() const
Definition: NetworkAclAssociation.h:51
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkAclAssociation::SetNetworkAclId
void SetNetworkAclId(Aws::String &&value)
Definition: NetworkAclAssociation.h:102
Aws::EC2::Model::NetworkAclAssociation::WithNetworkAclAssociationId
NetworkAclAssociation & WithNetworkAclAssociationId(const Aws::String &value)
Definition: NetworkAclAssociation.h:71
AWSStreamFwd.h
Aws::EC2::Model::NetworkAclAssociation::SetNetworkAclId
void SetNetworkAclId(const char *value)
Definition: NetworkAclAssociation.h:107
Aws::EC2::Model::NetworkAclAssociation::SetNetworkAclId
void SetNetworkAclId(const Aws::String &value)
Definition: NetworkAclAssociation.h:97
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkAclAssociation::SetNetworkAclAssociationId
void SetNetworkAclAssociationId(const char *value)
Definition: NetworkAclAssociation.h:66
Aws::EC2::Model::NetworkAclAssociation::SubnetIdHasBeenSet
bool SubnetIdHasBeenSet() const
Definition: NetworkAclAssociation.h:133
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkAclAssociation::WithNetworkAclId
NetworkAclAssociation & WithNetworkAclId(const char *value)
Definition: NetworkAclAssociation.h:122
Aws::EC2::Model::NetworkAclAssociation::WithNetworkAclAssociationId
NetworkAclAssociation & WithNetworkAclAssociationId(Aws::String &&value)
Definition: NetworkAclAssociation.h:76
Aws::EC2::Model::NetworkAclAssociation::NetworkAclAssociation
NetworkAclAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkAclAssociation::GetNetworkAclAssociationId
const Aws::String & GetNetworkAclAssociationId() const
Definition: NetworkAclAssociation.h:46
AWSString.h
Aws::EC2::Model::NetworkAclAssociation::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkAclAssociation::SetSubnetId
void SetSubnetId(Aws::String &&value)
Definition: NetworkAclAssociation.h:143
Aws::EC2::Model::NetworkAclAssociation::SetSubnetId
void SetSubnetId(const char *value)
Definition: NetworkAclAssociation.h:148
Aws::EC2::Model::NetworkAclAssociation::SetSubnetId
void SetSubnetId(const Aws::String &value)
Definition: NetworkAclAssociation.h:138
Aws::EC2::Model::NetworkAclAssociation::NetworkAclIdHasBeenSet
bool NetworkAclIdHasBeenSet() const
Definition: NetworkAclAssociation.h:92
Aws::EC2::Model::NetworkAclAssociation::WithNetworkAclId
NetworkAclAssociation & WithNetworkAclId(Aws::String &&value)
Definition: NetworkAclAssociation.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::NetworkAclAssociation::WithNetworkAclId
NetworkAclAssociation & WithNetworkAclId(const Aws::String &value)
Definition: NetworkAclAssociation.h:112
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkAclAssociation::WithSubnetId
NetworkAclAssociation & WithSubnetId(Aws::String &&value)
Definition: NetworkAclAssociation.h:158
EC2_EXPORTS.h
Aws::EC2::Model::NetworkAclAssociation::WithSubnetId
NetworkAclAssociation & WithSubnetId(const char *value)
Definition: NetworkAclAssociation.h:163
Aws::EC2::Model::NetworkAclAssociation::SetNetworkAclAssociationId
void SetNetworkAclAssociationId(const Aws::String &value)
Definition: NetworkAclAssociation.h:56