AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnalysisSecurityGroupRule.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/PortRange.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetCidr() const{ return m_cidr; }
48 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
49 inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
50 inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
51 inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
52 inline AnalysisSecurityGroupRule& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
53 inline AnalysisSecurityGroupRule& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
54 inline AnalysisSecurityGroupRule& WithCidr(const char* value) { SetCidr(value); return *this;}
56
58
62 inline const Aws::String& GetDirection() const{ return m_direction; }
63 inline bool DirectionHasBeenSet() const { return m_directionHasBeenSet; }
64 inline void SetDirection(const Aws::String& value) { m_directionHasBeenSet = true; m_direction = value; }
65 inline void SetDirection(Aws::String&& value) { m_directionHasBeenSet = true; m_direction = std::move(value); }
66 inline void SetDirection(const char* value) { m_directionHasBeenSet = true; m_direction.assign(value); }
67 inline AnalysisSecurityGroupRule& WithDirection(const Aws::String& value) { SetDirection(value); return *this;}
68 inline AnalysisSecurityGroupRule& WithDirection(Aws::String&& value) { SetDirection(std::move(value)); return *this;}
69 inline AnalysisSecurityGroupRule& WithDirection(const char* value) { SetDirection(value); return *this;}
71
73
76 inline const Aws::String& GetSecurityGroupId() const{ return m_securityGroupId; }
77 inline bool SecurityGroupIdHasBeenSet() const { return m_securityGroupIdHasBeenSet; }
78 inline void SetSecurityGroupId(const Aws::String& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = value; }
79 inline void SetSecurityGroupId(Aws::String&& value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId = std::move(value); }
80 inline void SetSecurityGroupId(const char* value) { m_securityGroupIdHasBeenSet = true; m_securityGroupId.assign(value); }
81 inline AnalysisSecurityGroupRule& WithSecurityGroupId(const Aws::String& value) { SetSecurityGroupId(value); return *this;}
82 inline AnalysisSecurityGroupRule& WithSecurityGroupId(Aws::String&& value) { SetSecurityGroupId(std::move(value)); return *this;}
83 inline AnalysisSecurityGroupRule& WithSecurityGroupId(const char* value) { SetSecurityGroupId(value); return *this;}
85
87
90 inline const PortRange& GetPortRange() const{ return m_portRange; }
91 inline bool PortRangeHasBeenSet() const { return m_portRangeHasBeenSet; }
92 inline void SetPortRange(const PortRange& value) { m_portRangeHasBeenSet = true; m_portRange = value; }
93 inline void SetPortRange(PortRange&& value) { m_portRangeHasBeenSet = true; m_portRange = std::move(value); }
94 inline AnalysisSecurityGroupRule& WithPortRange(const PortRange& value) { SetPortRange(value); return *this;}
95 inline AnalysisSecurityGroupRule& WithPortRange(PortRange&& value) { SetPortRange(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
103 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
104 inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
105 inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
106 inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
107 inline AnalysisSecurityGroupRule& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
108 inline AnalysisSecurityGroupRule& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
109 inline AnalysisSecurityGroupRule& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
111
113
116 inline const Aws::String& GetProtocol() const{ return m_protocol; }
117 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
118 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
119 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
120 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
121 inline AnalysisSecurityGroupRule& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
122 inline AnalysisSecurityGroupRule& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
123 inline AnalysisSecurityGroupRule& WithProtocol(const char* value) { SetProtocol(value); return *this;}
125 private:
126
127 Aws::String m_cidr;
128 bool m_cidrHasBeenSet = false;
129
130 Aws::String m_direction;
131 bool m_directionHasBeenSet = false;
132
133 Aws::String m_securityGroupId;
134 bool m_securityGroupIdHasBeenSet = false;
135
136 PortRange m_portRange;
137 bool m_portRangeHasBeenSet = false;
138
139 Aws::String m_prefixListId;
140 bool m_prefixListIdHasBeenSet = false;
141
142 Aws::String m_protocol;
143 bool m_protocolHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace EC2
148} // namespace Aws
AnalysisSecurityGroupRule & WithPrefixListId(Aws::String &&value)
AnalysisSecurityGroupRule & WithPortRange(PortRange &&value)
AnalysisSecurityGroupRule & WithDirection(const Aws::String &value)
AnalysisSecurityGroupRule & WithCidr(const char *value)
AWS_EC2_API AnalysisSecurityGroupRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API AnalysisSecurityGroupRule(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisSecurityGroupRule & WithSecurityGroupId(const Aws::String &value)
AnalysisSecurityGroupRule & WithPrefixListId(const char *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 & WithProtocol(const char *value)
AnalysisSecurityGroupRule & WithProtocol(Aws::String &&value)
AnalysisSecurityGroupRule & WithPortRange(const PortRange &value)
AnalysisSecurityGroupRule & WithDirection(Aws::String &&value)
AnalysisSecurityGroupRule & WithSecurityGroupId(Aws::String &&value)
AnalysisSecurityGroupRule & WithCidr(const Aws::String &value)
AnalysisSecurityGroupRule & WithPrefixListId(const Aws::String &value)
AnalysisSecurityGroupRule & WithProtocol(const Aws::String &value)
AnalysisSecurityGroupRule & WithDirection(const char *value)
AnalysisSecurityGroupRule & WithCidr(Aws::String &&value)
AnalysisSecurityGroupRule & WithSecurityGroupId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream