AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AnalysisSecurityGroupRule.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#include <aws/ec2/model/PortRange.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
29 public:
30 AWS_EC2_API AnalysisSecurityGroupRule() = 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& GetCidr() const { return m_cidr; }
42 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
43 template <typename CidrT = Aws::String>
44 void SetCidr(CidrT&& value) {
45 m_cidrHasBeenSet = true;
46 m_cidr = std::forward<CidrT>(value);
47 }
48 template <typename CidrT = Aws::String>
50 SetCidr(std::forward<CidrT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDirection() const { return m_direction; }
61 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
62 template <typename DirectionT = Aws::String>
63 void SetDirection(DirectionT&& value) {
64 m_directionHasBeenSet = true;
65 m_direction = std::forward<DirectionT>(value);
66 }
67 template <typename DirectionT = Aws::String>
69 SetDirection(std::forward<DirectionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetSecurityGroupId() const { return m_securityGroupId; }
79 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
80 template <typename SecurityGroupIdT = Aws::String>
81 void SetSecurityGroupId(SecurityGroupIdT&& value) {
82 m_securityGroupIdHasBeenSet = true;
83 m_securityGroupId = std::forward<SecurityGroupIdT>(value);
84 }
85 template <typename SecurityGroupIdT = Aws::String>
87 SetSecurityGroupId(std::forward<SecurityGroupIdT>(value));
88 return *this;
89 }
91
93
96 inline const PortRange& GetPortRange() const { return m_portRange; }
97 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
98 template <typename PortRangeT = PortRange>
99 void SetPortRange(PortRangeT&& value) {
100 m_portRangeHasBeenSet = true;
101 m_portRange = std::forward<PortRangeT>(value);
102 }
103 template <typename PortRangeT = PortRange>
105 SetPortRange(std::forward<PortRangeT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
115 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
116 template <typename PrefixListIdT = Aws::String>
117 void SetPrefixListId(PrefixListIdT&& value) {
118 m_prefixListIdHasBeenSet = true;
119 m_prefixListId = std::forward<PrefixListIdT>(value);
120 }
121 template <typename PrefixListIdT = Aws::String>
123 SetPrefixListId(std::forward<PrefixListIdT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetProtocol() const { return m_protocol; }
133 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
134 template <typename ProtocolT = Aws::String>
135 void SetProtocol(ProtocolT&& value) {
136 m_protocolHasBeenSet = true;
137 m_protocol = std::forward<ProtocolT>(value);
138 }
139 template <typename ProtocolT = Aws::String>
141 SetProtocol(std::forward<ProtocolT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_cidr;
147
148 Aws::String m_direction;
149
150 Aws::String m_securityGroupId;
151
152 PortRange m_portRange;
153
154 Aws::String m_prefixListId;
155
156 Aws::String m_protocol;
157 bool m_cidrHasBeenSet = false;
158 bool m_directionHasBeenSet = false;
159 bool m_securityGroupIdHasBeenSet = false;
160 bool m_portRangeHasBeenSet = false;
161 bool m_prefixListIdHasBeenSet = false;
162 bool m_protocolHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
AWS_EC2_API AnalysisSecurityGroupRule()=default
AnalysisSecurityGroupRule & WithPrefixListId(PrefixListIdT &&value)
AWS_EC2_API AnalysisSecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisSecurityGroupRule & WithProtocol(ProtocolT &&value)
AnalysisSecurityGroupRule & WithCidr(CidrT &&value)
AWS_EC2_API AnalysisSecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisSecurityGroupRule & WithSecurityGroupId(SecurityGroupIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AnalysisSecurityGroupRule & WithPortRange(PortRangeT &&value)
AnalysisSecurityGroupRule & WithDirection(DirectionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream