AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
Assets.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9#include <aws/securityagent/model/Actor.h>
10#include <aws/securityagent/model/ClientCertificate.h>
11#include <aws/securityagent/model/DocumentInfo.h>
12#include <aws/securityagent/model/Endpoint.h>
13#include <aws/securityagent/model/IntegratedRepository.h>
14#include <aws/securityagent/model/SourceCodeRepository.h>
15#include <aws/securityagent/model/TrustedCaCertificate.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace SecurityAgent {
27namespace Model {
28
36class Assets {
37 public:
38 AWS_SECURITYAGENT_API Assets() = default;
39 AWS_SECURITYAGENT_API Assets(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYAGENT_API Assets& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::Vector<Endpoint>& GetEndpoints() const { return m_endpoints; }
48 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
49 template <typename EndpointsT = Aws::Vector<Endpoint>>
50 void SetEndpoints(EndpointsT&& value) {
51 m_endpointsHasBeenSet = true;
52 m_endpoints = std::forward<EndpointsT>(value);
53 }
54 template <typename EndpointsT = Aws::Vector<Endpoint>>
55 Assets& WithEndpoints(EndpointsT&& value) {
56 SetEndpoints(std::forward<EndpointsT>(value));
57 return *this;
58 }
59 template <typename EndpointsT = Endpoint>
60 Assets& AddEndpoints(EndpointsT&& value) {
61 m_endpointsHasBeenSet = true;
62 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<Actor>& GetActors() const { return m_actors; }
72 inline bool ActorsHasBeenSet() const { return m_actorsHasBeenSet; }
73 template <typename ActorsT = Aws::Vector<Actor>>
74 void SetActors(ActorsT&& value) {
75 m_actorsHasBeenSet = true;
76 m_actors = std::forward<ActorsT>(value);
77 }
78 template <typename ActorsT = Aws::Vector<Actor>>
79 Assets& WithActors(ActorsT&& value) {
80 SetActors(std::forward<ActorsT>(value));
81 return *this;
82 }
83 template <typename ActorsT = Actor>
84 Assets& AddActors(ActorsT&& value) {
85 m_actorsHasBeenSet = true;
86 m_actors.emplace_back(std::forward<ActorsT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<DocumentInfo>& GetDocuments() const { return m_documents; }
96 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
97 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
98 void SetDocuments(DocumentsT&& value) {
99 m_documentsHasBeenSet = true;
100 m_documents = std::forward<DocumentsT>(value);
101 }
102 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
103 Assets& WithDocuments(DocumentsT&& value) {
104 SetDocuments(std::forward<DocumentsT>(value));
105 return *this;
106 }
107 template <typename DocumentsT = DocumentInfo>
108 Assets& AddDocuments(DocumentsT&& value) {
109 m_documentsHasBeenSet = true;
110 m_documents.emplace_back(std::forward<DocumentsT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<SourceCodeRepository>& GetSourceCode() const { return m_sourceCode; }
120 inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
121 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
122 void SetSourceCode(SourceCodeT&& value) {
123 m_sourceCodeHasBeenSet = true;
124 m_sourceCode = std::forward<SourceCodeT>(value);
125 }
126 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
127 Assets& WithSourceCode(SourceCodeT&& value) {
128 SetSourceCode(std::forward<SourceCodeT>(value));
129 return *this;
130 }
131 template <typename SourceCodeT = SourceCodeRepository>
132 Assets& AddSourceCode(SourceCodeT&& value) {
133 m_sourceCodeHasBeenSet = true;
134 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<IntegratedRepository>& GetIntegratedRepositories() const { return m_integratedRepositories; }
144 inline bool IntegratedRepositoriesHasBeenSet() const { return m_integratedRepositoriesHasBeenSet; }
145 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
146 void SetIntegratedRepositories(IntegratedRepositoriesT&& value) {
147 m_integratedRepositoriesHasBeenSet = true;
148 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
149 }
150 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
151 Assets& WithIntegratedRepositories(IntegratedRepositoriesT&& value) {
152 SetIntegratedRepositories(std::forward<IntegratedRepositoriesT>(value));
153 return *this;
154 }
155 template <typename IntegratedRepositoriesT = IntegratedRepository>
156 Assets& AddIntegratedRepositories(IntegratedRepositoriesT&& value) {
157 m_integratedRepositoriesHasBeenSet = true;
158 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::Vector<TrustedCaCertificate>& GetTrustedCaCertificates() const { return m_trustedCaCertificates; }
170 inline bool TrustedCaCertificatesHasBeenSet() const { return m_trustedCaCertificatesHasBeenSet; }
171 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
172 void SetTrustedCaCertificates(TrustedCaCertificatesT&& value) {
173 m_trustedCaCertificatesHasBeenSet = true;
174 m_trustedCaCertificates = std::forward<TrustedCaCertificatesT>(value);
175 }
176 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
177 Assets& WithTrustedCaCertificates(TrustedCaCertificatesT&& value) {
178 SetTrustedCaCertificates(std::forward<TrustedCaCertificatesT>(value));
179 return *this;
180 }
181 template <typename TrustedCaCertificatesT = TrustedCaCertificate>
182 Assets& AddTrustedCaCertificates(TrustedCaCertificatesT&& value) {
183 m_trustedCaCertificatesHasBeenSet = true;
184 m_trustedCaCertificates.emplace_back(std::forward<TrustedCaCertificatesT>(value));
185 return *this;
186 }
188
190
195 inline const Aws::Vector<ClientCertificate>& GetClientCertificates() const { return m_clientCertificates; }
196 inline bool ClientCertificatesHasBeenSet() const { return m_clientCertificatesHasBeenSet; }
197 template <typename ClientCertificatesT = Aws::Vector<ClientCertificate>>
198 void SetClientCertificates(ClientCertificatesT&& value) {
199 m_clientCertificatesHasBeenSet = true;
200 m_clientCertificates = std::forward<ClientCertificatesT>(value);
201 }
202 template <typename ClientCertificatesT = Aws::Vector<ClientCertificate>>
203 Assets& WithClientCertificates(ClientCertificatesT&& value) {
204 SetClientCertificates(std::forward<ClientCertificatesT>(value));
205 return *this;
206 }
207 template <typename ClientCertificatesT = ClientCertificate>
208 Assets& AddClientCertificates(ClientCertificatesT&& value) {
209 m_clientCertificatesHasBeenSet = true;
210 m_clientCertificates.emplace_back(std::forward<ClientCertificatesT>(value));
211 return *this;
212 }
214 private:
215 Aws::Vector<Endpoint> m_endpoints;
216
217 Aws::Vector<Actor> m_actors;
218
219 Aws::Vector<DocumentInfo> m_documents;
220
222
223 Aws::Vector<IntegratedRepository> m_integratedRepositories;
224
225 Aws::Vector<TrustedCaCertificate> m_trustedCaCertificates;
226
227 Aws::Vector<ClientCertificate> m_clientCertificates;
228 bool m_endpointsHasBeenSet = false;
229 bool m_actorsHasBeenSet = false;
230 bool m_documentsHasBeenSet = false;
231 bool m_sourceCodeHasBeenSet = false;
232 bool m_integratedRepositoriesHasBeenSet = false;
233 bool m_trustedCaCertificatesHasBeenSet = false;
234 bool m_clientCertificatesHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace SecurityAgent
239} // namespace Aws
Assets & WithEndpoints(EndpointsT &&value)
Definition Assets.h:55
void SetActors(ActorsT &&value)
Definition Assets.h:74
AWS_SECURITYAGENT_API Assets & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Assets & WithTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition Assets.h:177
Assets & AddClientCertificates(ClientCertificatesT &&value)
Definition Assets.h:208
bool TrustedCaCertificatesHasBeenSet() const
Definition Assets.h:170
const Aws::Vector< Endpoint > & GetEndpoints() const
Definition Assets.h:47
void SetClientCertificates(ClientCertificatesT &&value)
Definition Assets.h:198
Assets & AddSourceCode(SourceCodeT &&value)
Definition Assets.h:132
const Aws::Vector< Actor > & GetActors() const
Definition Assets.h:71
Assets & WithClientCertificates(ClientCertificatesT &&value)
Definition Assets.h:203
const Aws::Vector< DocumentInfo > & GetDocuments() const
Definition Assets.h:95
Assets & WithSourceCode(SourceCodeT &&value)
Definition Assets.h:127
AWS_SECURITYAGENT_API Assets(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ClientCertificate > & GetClientCertificates() const
Definition Assets.h:195
Assets & WithActors(ActorsT &&value)
Definition Assets.h:79
bool ClientCertificatesHasBeenSet() const
Definition Assets.h:196
AWS_SECURITYAGENT_API Assets()=default
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition Assets.h:146
Assets & AddIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition Assets.h:156
Assets & WithDocuments(DocumentsT &&value)
Definition Assets.h:103
Assets & AddDocuments(DocumentsT &&value)
Definition Assets.h:108
bool IntegratedRepositoriesHasBeenSet() const
Definition Assets.h:144
const Aws::Vector< SourceCodeRepository > & GetSourceCode() const
Definition Assets.h:119
const Aws::Vector< TrustedCaCertificate > & GetTrustedCaCertificates() const
Definition Assets.h:169
Assets & WithIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition Assets.h:151
const Aws::Vector< IntegratedRepository > & GetIntegratedRepositories() const
Definition Assets.h:143
Assets & AddActors(ActorsT &&value)
Definition Assets.h:84
Assets & AddEndpoints(EndpointsT &&value)
Definition Assets.h:60
void SetDocuments(DocumentsT &&value)
Definition Assets.h:98
Assets & AddTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition Assets.h:182
void SetEndpoints(EndpointsT &&value)
Definition Assets.h:50
void SetSourceCode(SourceCodeT &&value)
Definition Assets.h:122
void SetTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition Assets.h:172
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue