AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
NetworkAclAssociation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API NetworkAclAssociation() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetNetworkAclAssociationId() const { return m_networkAclAssociationId; }
42 inline bool NetworkAclAssociationIdHasBeenSet() const { return m_networkAclAssociationIdHasBeenSet; }
43 template <typename NetworkAclAssociationIdT = Aws::String>
44 void SetNetworkAclAssociationId(NetworkAclAssociationIdT&& value) {
45 m_networkAclAssociationIdHasBeenSet = true;
46 m_networkAclAssociationId = std::forward<NetworkAclAssociationIdT>(value);
47 }
48 template <typename NetworkAclAssociationIdT = Aws::String>
49 NetworkAclAssociation& WithNetworkAclAssociationId(NetworkAclAssociationIdT&& value) {
50 SetNetworkAclAssociationId(std::forward<NetworkAclAssociationIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNetworkAclId() const { return m_networkAclId; }
60 inline bool NetworkAclIdHasBeenSet() const { return m_networkAclIdHasBeenSet; }
61 template <typename NetworkAclIdT = Aws::String>
62 void SetNetworkAclId(NetworkAclIdT&& value) {
63 m_networkAclIdHasBeenSet = true;
64 m_networkAclId = std::forward<NetworkAclIdT>(value);
65 }
66 template <typename NetworkAclIdT = Aws::String>
67 NetworkAclAssociation& WithNetworkAclId(NetworkAclIdT&& value) {
68 SetNetworkAclId(std::forward<NetworkAclIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
78 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
79 template <typename SubnetIdT = Aws::String>
80 void SetSubnetId(SubnetIdT&& value) {
81 m_subnetIdHasBeenSet = true;
82 m_subnetId = std::forward<SubnetIdT>(value);
83 }
84 template <typename SubnetIdT = Aws::String>
85 NetworkAclAssociation& WithSubnetId(SubnetIdT&& value) {
86 SetSubnetId(std::forward<SubnetIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_networkAclAssociationId;
92
93 Aws::String m_networkAclId;
94
95 Aws::String m_subnetId;
96 bool m_networkAclAssociationIdHasBeenSet = false;
97 bool m_networkAclIdHasBeenSet = false;
98 bool m_subnetIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
const Aws::String & GetNetworkAclId() const
NetworkAclAssociation & WithSubnetId(SubnetIdT &&value)
AWS_EC2_API NetworkAclAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
NetworkAclAssociation & WithNetworkAclAssociationId(NetworkAclAssociationIdT &&value)
void SetNetworkAclAssociationId(NetworkAclAssociationIdT &&value)
AWS_EC2_API NetworkAclAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetNetworkAclAssociationId() const
NetworkAclAssociation & WithNetworkAclId(NetworkAclIdT &&value)
void SetNetworkAclId(NetworkAclIdT &&value)
AWS_EC2_API NetworkAclAssociation()=default
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream