AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
AWSResources.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityagent/SecurityAgent_EXPORTS.h>
10#include <aws/securityagent/model/VpcConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityAgent {
22namespace Model {
23
32 public:
33 AWS_SECURITYAGENT_API AWSResources() = default;
34 AWS_SECURITYAGENT_API AWSResources(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API AWSResources& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<VpcConfig>& GetVpcs() const { return m_vpcs; }
43 inline bool VpcsHasBeenSet() const { return m_vpcsHasBeenSet; }
44 template <typename VpcsT = Aws::Vector<VpcConfig>>
45 void SetVpcs(VpcsT&& value) {
46 m_vpcsHasBeenSet = true;
47 m_vpcs = std::forward<VpcsT>(value);
48 }
49 template <typename VpcsT = Aws::Vector<VpcConfig>>
50 AWSResources& WithVpcs(VpcsT&& value) {
51 SetVpcs(std::forward<VpcsT>(value));
52 return *this;
53 }
54 template <typename VpcsT = VpcConfig>
55 AWSResources& AddVpcs(VpcsT&& value) {
56 m_vpcsHasBeenSet = true;
57 m_vpcs.emplace_back(std::forward<VpcsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<Aws::String>& GetLogGroups() const { return m_logGroups; }
68 inline bool LogGroupsHasBeenSet() const { return m_logGroupsHasBeenSet; }
69 template <typename LogGroupsT = Aws::Vector<Aws::String>>
70 void SetLogGroups(LogGroupsT&& value) {
71 m_logGroupsHasBeenSet = true;
72 m_logGroups = std::forward<LogGroupsT>(value);
73 }
74 template <typename LogGroupsT = Aws::Vector<Aws::String>>
75 AWSResources& WithLogGroups(LogGroupsT&& value) {
76 SetLogGroups(std::forward<LogGroupsT>(value));
77 return *this;
78 }
79 template <typename LogGroupsT = Aws::String>
80 AWSResources& AddLogGroups(LogGroupsT&& value) {
81 m_logGroupsHasBeenSet = true;
82 m_logGroups.emplace_back(std::forward<LogGroupsT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Vector<Aws::String>& GetS3Buckets() const { return m_s3Buckets; }
93 inline bool S3BucketsHasBeenSet() const { return m_s3BucketsHasBeenSet; }
94 template <typename S3BucketsT = Aws::Vector<Aws::String>>
95 void SetS3Buckets(S3BucketsT&& value) {
96 m_s3BucketsHasBeenSet = true;
97 m_s3Buckets = std::forward<S3BucketsT>(value);
98 }
99 template <typename S3BucketsT = Aws::Vector<Aws::String>>
100 AWSResources& WithS3Buckets(S3BucketsT&& value) {
101 SetS3Buckets(std::forward<S3BucketsT>(value));
102 return *this;
103 }
104 template <typename S3BucketsT = Aws::String>
105 AWSResources& AddS3Buckets(S3BucketsT&& value) {
106 m_s3BucketsHasBeenSet = true;
107 m_s3Buckets.emplace_back(std::forward<S3BucketsT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Vector<Aws::String>& GetSecretArns() const { return m_secretArns; }
118 inline bool SecretArnsHasBeenSet() const { return m_secretArnsHasBeenSet; }
119 template <typename SecretArnsT = Aws::Vector<Aws::String>>
120 void SetSecretArns(SecretArnsT&& value) {
121 m_secretArnsHasBeenSet = true;
122 m_secretArns = std::forward<SecretArnsT>(value);
123 }
124 template <typename SecretArnsT = Aws::Vector<Aws::String>>
125 AWSResources& WithSecretArns(SecretArnsT&& value) {
126 SetSecretArns(std::forward<SecretArnsT>(value));
127 return *this;
128 }
129 template <typename SecretArnsT = Aws::String>
130 AWSResources& AddSecretArns(SecretArnsT&& value) {
131 m_secretArnsHasBeenSet = true;
132 m_secretArns.emplace_back(std::forward<SecretArnsT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::Vector<Aws::String>& GetLambdaFunctionArns() const { return m_lambdaFunctionArns; }
143 inline bool LambdaFunctionArnsHasBeenSet() const { return m_lambdaFunctionArnsHasBeenSet; }
144 template <typename LambdaFunctionArnsT = Aws::Vector<Aws::String>>
145 void SetLambdaFunctionArns(LambdaFunctionArnsT&& value) {
146 m_lambdaFunctionArnsHasBeenSet = true;
147 m_lambdaFunctionArns = std::forward<LambdaFunctionArnsT>(value);
148 }
149 template <typename LambdaFunctionArnsT = Aws::Vector<Aws::String>>
150 AWSResources& WithLambdaFunctionArns(LambdaFunctionArnsT&& value) {
151 SetLambdaFunctionArns(std::forward<LambdaFunctionArnsT>(value));
152 return *this;
153 }
154 template <typename LambdaFunctionArnsT = Aws::String>
155 AWSResources& AddLambdaFunctionArns(LambdaFunctionArnsT&& value) {
156 m_lambdaFunctionArnsHasBeenSet = true;
157 m_lambdaFunctionArns.emplace_back(std::forward<LambdaFunctionArnsT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Vector<Aws::String>& GetIamRoles() const { return m_iamRoles; }
167 inline bool IamRolesHasBeenSet() const { return m_iamRolesHasBeenSet; }
168 template <typename IamRolesT = Aws::Vector<Aws::String>>
169 void SetIamRoles(IamRolesT&& value) {
170 m_iamRolesHasBeenSet = true;
171 m_iamRoles = std::forward<IamRolesT>(value);
172 }
173 template <typename IamRolesT = Aws::Vector<Aws::String>>
174 AWSResources& WithIamRoles(IamRolesT&& value) {
175 SetIamRoles(std::forward<IamRolesT>(value));
176 return *this;
177 }
178 template <typename IamRolesT = Aws::String>
179 AWSResources& AddIamRoles(IamRolesT&& value) {
180 m_iamRolesHasBeenSet = true;
181 m_iamRoles.emplace_back(std::forward<IamRolesT>(value));
182 return *this;
183 }
185 private:
187
188 Aws::Vector<Aws::String> m_logGroups;
189
190 Aws::Vector<Aws::String> m_s3Buckets;
191
192 Aws::Vector<Aws::String> m_secretArns;
193
194 Aws::Vector<Aws::String> m_lambdaFunctionArns;
195
196 Aws::Vector<Aws::String> m_iamRoles;
197 bool m_vpcsHasBeenSet = false;
198 bool m_logGroupsHasBeenSet = false;
199 bool m_s3BucketsHasBeenSet = false;
200 bool m_secretArnsHasBeenSet = false;
201 bool m_lambdaFunctionArnsHasBeenSet = false;
202 bool m_iamRolesHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace SecurityAgent
207} // namespace Aws
AWSResources & WithVpcs(VpcsT &&value)
const Aws::Vector< Aws::String > & GetSecretArns() const
void SetLambdaFunctionArns(LambdaFunctionArnsT &&value)
AWSResources & WithLambdaFunctionArns(LambdaFunctionArnsT &&value)
AWSResources & WithIamRoles(IamRolesT &&value)
AWSResources & AddLogGroups(LogGroupsT &&value)
const Aws::Vector< Aws::String > & GetIamRoles() const
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetS3Buckets(S3BucketsT &&value)
const Aws::Vector< Aws::String > & GetLogGroups() const
AWSResources & AddIamRoles(IamRolesT &&value)
void SetLogGroups(LogGroupsT &&value)
AWSResources & AddLambdaFunctionArns(LambdaFunctionArnsT &&value)
const Aws::Vector< Aws::String > & GetLambdaFunctionArns() const
AWSResources & WithLogGroups(LogGroupsT &&value)
AWSResources & AddSecretArns(SecretArnsT &&value)
AWSResources & WithS3Buckets(S3BucketsT &&value)
AWSResources & AddS3Buckets(S3BucketsT &&value)
AWS_SECURITYAGENT_API AWSResources(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetS3Buckets() const
AWSResources & AddVpcs(VpcsT &&value)
const Aws::Vector< VpcConfig > & GetVpcs() const
AWS_SECURITYAGENT_API AWSResources & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecretArns(SecretArnsT &&value)
AWSResources & WithSecretArns(SecretArnsT &&value)
AWS_SECURITYAGENT_API AWSResources()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue