AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
31 public:
32 AWS_SECURITYAGENT_API AWSResources() = default;
33 AWS_SECURITYAGENT_API AWSResources(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API AWSResources& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
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
66 inline const Aws::Vector<Aws::String>& GetLogGroups() const { return m_logGroups; }
67 inline bool LogGroupsHasBeenSet() const { return m_logGroupsHasBeenSet; }
68 template <typename LogGroupsT = Aws::Vector<Aws::String>>
69 void SetLogGroups(LogGroupsT&& value) {
70 m_logGroupsHasBeenSet = true;
71 m_logGroups = std::forward<LogGroupsT>(value);
72 }
73 template <typename LogGroupsT = Aws::Vector<Aws::String>>
74 AWSResources& WithLogGroups(LogGroupsT&& value) {
75 SetLogGroups(std::forward<LogGroupsT>(value));
76 return *this;
77 }
78 template <typename LogGroupsT = Aws::String>
79 AWSResources& AddLogGroups(LogGroupsT&& value) {
80 m_logGroupsHasBeenSet = true;
81 m_logGroups.emplace_back(std::forward<LogGroupsT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetS3Buckets() const { return m_s3Buckets; }
91 inline bool S3BucketsHasBeenSet() const { return m_s3BucketsHasBeenSet; }
92 template <typename S3BucketsT = Aws::Vector<Aws::String>>
93 void SetS3Buckets(S3BucketsT&& value) {
94 m_s3BucketsHasBeenSet = true;
95 m_s3Buckets = std::forward<S3BucketsT>(value);
96 }
97 template <typename S3BucketsT = Aws::Vector<Aws::String>>
98 AWSResources& WithS3Buckets(S3BucketsT&& value) {
99 SetS3Buckets(std::forward<S3BucketsT>(value));
100 return *this;
101 }
102 template <typename S3BucketsT = Aws::String>
103 AWSResources& AddS3Buckets(S3BucketsT&& value) {
104 m_s3BucketsHasBeenSet = true;
105 m_s3Buckets.emplace_back(std::forward<S3BucketsT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Vector<Aws::String>& GetSecretArns() const { return m_secretArns; }
116 inline bool SecretArnsHasBeenSet() const { return m_secretArnsHasBeenSet; }
117 template <typename SecretArnsT = Aws::Vector<Aws::String>>
118 void SetSecretArns(SecretArnsT&& value) {
119 m_secretArnsHasBeenSet = true;
120 m_secretArns = std::forward<SecretArnsT>(value);
121 }
122 template <typename SecretArnsT = Aws::Vector<Aws::String>>
123 AWSResources& WithSecretArns(SecretArnsT&& value) {
124 SetSecretArns(std::forward<SecretArnsT>(value));
125 return *this;
126 }
127 template <typename SecretArnsT = Aws::String>
128 AWSResources& AddSecretArns(SecretArnsT&& value) {
129 m_secretArnsHasBeenSet = true;
130 m_secretArns.emplace_back(std::forward<SecretArnsT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::Vector<Aws::String>& GetLambdaFunctionArns() const { return m_lambdaFunctionArns; }
141 inline bool LambdaFunctionArnsHasBeenSet() const { return m_lambdaFunctionArnsHasBeenSet; }
142 template <typename LambdaFunctionArnsT = Aws::Vector<Aws::String>>
143 void SetLambdaFunctionArns(LambdaFunctionArnsT&& value) {
144 m_lambdaFunctionArnsHasBeenSet = true;
145 m_lambdaFunctionArns = std::forward<LambdaFunctionArnsT>(value);
146 }
147 template <typename LambdaFunctionArnsT = Aws::Vector<Aws::String>>
148 AWSResources& WithLambdaFunctionArns(LambdaFunctionArnsT&& value) {
149 SetLambdaFunctionArns(std::forward<LambdaFunctionArnsT>(value));
150 return *this;
151 }
152 template <typename LambdaFunctionArnsT = Aws::String>
153 AWSResources& AddLambdaFunctionArns(LambdaFunctionArnsT&& value) {
154 m_lambdaFunctionArnsHasBeenSet = true;
155 m_lambdaFunctionArns.emplace_back(std::forward<LambdaFunctionArnsT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::Vector<Aws::String>& GetIamRoles() const { return m_iamRoles; }
166 inline bool IamRolesHasBeenSet() const { return m_iamRolesHasBeenSet; }
167 template <typename IamRolesT = Aws::Vector<Aws::String>>
168 void SetIamRoles(IamRolesT&& value) {
169 m_iamRolesHasBeenSet = true;
170 m_iamRoles = std::forward<IamRolesT>(value);
171 }
172 template <typename IamRolesT = Aws::Vector<Aws::String>>
173 AWSResources& WithIamRoles(IamRolesT&& value) {
174 SetIamRoles(std::forward<IamRolesT>(value));
175 return *this;
176 }
177 template <typename IamRolesT = Aws::String>
178 AWSResources& AddIamRoles(IamRolesT&& value) {
179 m_iamRolesHasBeenSet = true;
180 m_iamRoles.emplace_back(std::forward<IamRolesT>(value));
181 return *this;
182 }
184 private:
186
187 Aws::Vector<Aws::String> m_logGroups;
188
189 Aws::Vector<Aws::String> m_s3Buckets;
190
191 Aws::Vector<Aws::String> m_secretArns;
192
193 Aws::Vector<Aws::String> m_lambdaFunctionArns;
194
195 Aws::Vector<Aws::String> m_iamRoles;
196 bool m_vpcsHasBeenSet = false;
197 bool m_logGroupsHasBeenSet = false;
198 bool m_s3BucketsHasBeenSet = false;
199 bool m_secretArnsHasBeenSet = false;
200 bool m_lambdaFunctionArnsHasBeenSet = false;
201 bool m_iamRolesHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace SecurityAgent
206} // 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