AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcBlockPublicAccessOptions.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/InternetGatewayBlockMode.h>
12#include <aws/ec2/model/ManagedBy.h>
13#include <aws/ec2/model/VpcBlockPublicAccessExclusionsAllowed.h>
14#include <aws/ec2/model/VpcBlockPublicAccessState.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
26
39 public:
40 AWS_EC2_API VpcBlockPublicAccessOptions() = default;
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
48
51 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
52 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
53 template <typename AwsAccountIdT = Aws::String>
54 void SetAwsAccountId(AwsAccountIdT&& value) {
55 m_awsAccountIdHasBeenSet = true;
56 m_awsAccountId = std::forward<AwsAccountIdT>(value);
57 }
58 template <typename AwsAccountIdT = Aws::String>
60 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
70 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
71 template <typename AwsRegionT = Aws::String>
72 void SetAwsRegion(AwsRegionT&& value) {
73 m_awsRegionHasBeenSet = true;
74 m_awsRegion = std::forward<AwsRegionT>(value);
75 }
76 template <typename AwsRegionT = Aws::String>
78 SetAwsRegion(std::forward<AwsRegionT>(value));
79 return *this;
80 }
82
84
87 inline VpcBlockPublicAccessState GetState() const { return m_state; }
88 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
90 m_stateHasBeenSet = true;
91 m_state = value;
92 }
94 SetState(value);
95 return *this;
96 }
98
100
112 inline InternetGatewayBlockMode GetInternetGatewayBlockMode() const { return m_internetGatewayBlockMode; }
113 inline bool InternetGatewayBlockModeHasBeenSet() const { return m_internetGatewayBlockModeHasBeenSet; }
115 m_internetGatewayBlockModeHasBeenSet = true;
116 m_internetGatewayBlockMode = value;
117 }
120 return *this;
121 }
123
125
128 inline const Aws::String& GetReason() const { return m_reason; }
129 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
130 template <typename ReasonT = Aws::String>
131 void SetReason(ReasonT&& value) {
132 m_reasonHasBeenSet = true;
133 m_reason = std::forward<ReasonT>(value);
134 }
135 template <typename ReasonT = Aws::String>
137 SetReason(std::forward<ReasonT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetLastUpdateTimestamp() const { return m_lastUpdateTimestamp; }
147 inline bool LastUpdateTimestampHasBeenSet() const { return m_lastUpdateTimestampHasBeenSet; }
148 template <typename LastUpdateTimestampT = Aws::Utils::DateTime>
149 void SetLastUpdateTimestamp(LastUpdateTimestampT&& value) {
150 m_lastUpdateTimestampHasBeenSet = true;
151 m_lastUpdateTimestamp = std::forward<LastUpdateTimestampT>(value);
152 }
153 template <typename LastUpdateTimestampT = Aws::Utils::DateTime>
155 SetLastUpdateTimestamp(std::forward<LastUpdateTimestampT>(value));
156 return *this;
157 }
159
161
167 inline ManagedBy GetManagedBy() const { return m_managedBy; }
168 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
169 inline void SetManagedBy(ManagedBy value) {
170 m_managedByHasBeenSet = true;
171 m_managedBy = value;
172 }
174 SetManagedBy(value);
175 return *this;
176 }
178
180
186 inline VpcBlockPublicAccessExclusionsAllowed GetExclusionsAllowed() const { return m_exclusionsAllowed; }
187 inline bool ExclusionsAllowedHasBeenSet() const { return m_exclusionsAllowedHasBeenSet; }
189 m_exclusionsAllowedHasBeenSet = true;
190 m_exclusionsAllowed = value;
191 }
194 return *this;
195 }
197 private:
198 Aws::String m_awsAccountId;
199
200 Aws::String m_awsRegion;
201
203
205
206 Aws::String m_reason;
207
208 Aws::Utils::DateTime m_lastUpdateTimestamp{};
209
210 ManagedBy m_managedBy{ManagedBy::NOT_SET};
211
213 bool m_awsAccountIdHasBeenSet = false;
214 bool m_awsRegionHasBeenSet = false;
215 bool m_stateHasBeenSet = false;
216 bool m_internetGatewayBlockModeHasBeenSet = false;
217 bool m_reasonHasBeenSet = false;
218 bool m_lastUpdateTimestampHasBeenSet = false;
219 bool m_managedByHasBeenSet = false;
220 bool m_exclusionsAllowedHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace EC2
225} // namespace Aws
void SetLastUpdateTimestamp(LastUpdateTimestampT &&value)
AWS_EC2_API VpcBlockPublicAccessOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcBlockPublicAccessOptions & WithAwsRegion(AwsRegionT &&value)
InternetGatewayBlockMode GetInternetGatewayBlockMode() const
AWS_EC2_API VpcBlockPublicAccessOptions()=default
AWS_EC2_API VpcBlockPublicAccessOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
VpcBlockPublicAccessOptions & WithExclusionsAllowed(VpcBlockPublicAccessExclusionsAllowed value)
void SetExclusionsAllowed(VpcBlockPublicAccessExclusionsAllowed value)
VpcBlockPublicAccessOptions & WithAwsAccountId(AwsAccountIdT &&value)
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
VpcBlockPublicAccessOptions & WithInternetGatewayBlockMode(InternetGatewayBlockMode value)
VpcBlockPublicAccessOptions & WithManagedBy(ManagedBy value)
VpcBlockPublicAccessExclusionsAllowed GetExclusionsAllowed() const
VpcBlockPublicAccessOptions & WithReason(ReasonT &&value)
const Aws::Utils::DateTime & GetLastUpdateTimestamp() const
VpcBlockPublicAccessOptions & WithState(VpcBlockPublicAccessState value)
VpcBlockPublicAccessOptions & WithLastUpdateTimestamp(LastUpdateTimestampT &&value)
void SetInternetGatewayBlockMode(InternetGatewayBlockMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream