AWS SDK for C++

AWS SDK for C++ Version 1.11.881

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/DocumentInfo.h>
11#include <aws/securityagent/model/Endpoint.h>
12#include <aws/securityagent/model/IntegratedRepository.h>
13#include <aws/securityagent/model/SourceCodeRepository.h>
14#include <aws/securityagent/model/TrustedCaCertificate.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SecurityAgent {
26namespace Model {
27
35class Assets {
36 public:
37 AWS_SECURITYAGENT_API Assets() = default;
38 AWS_SECURITYAGENT_API Assets(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYAGENT_API Assets& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::Vector<Endpoint>& GetEndpoints() const { return m_endpoints; }
47 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
48 template <typename EndpointsT = Aws::Vector<Endpoint>>
49 void SetEndpoints(EndpointsT&& value) {
50 m_endpointsHasBeenSet = true;
51 m_endpoints = std::forward<EndpointsT>(value);
52 }
53 template <typename EndpointsT = Aws::Vector<Endpoint>>
54 Assets& WithEndpoints(EndpointsT&& value) {
55 SetEndpoints(std::forward<EndpointsT>(value));
56 return *this;
57 }
58 template <typename EndpointsT = Endpoint>
59 Assets& AddEndpoints(EndpointsT&& value) {
60 m_endpointsHasBeenSet = true;
61 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Vector<Actor>& GetActors() const { return m_actors; }
71 inline bool ActorsHasBeenSet() const { return m_actorsHasBeenSet; }
72 template <typename ActorsT = Aws::Vector<Actor>>
73 void SetActors(ActorsT&& value) {
74 m_actorsHasBeenSet = true;
75 m_actors = std::forward<ActorsT>(value);
76 }
77 template <typename ActorsT = Aws::Vector<Actor>>
78 Assets& WithActors(ActorsT&& value) {
79 SetActors(std::forward<ActorsT>(value));
80 return *this;
81 }
82 template <typename ActorsT = Actor>
83 Assets& AddActors(ActorsT&& value) {
84 m_actorsHasBeenSet = true;
85 m_actors.emplace_back(std::forward<ActorsT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<DocumentInfo>& GetDocuments() const { return m_documents; }
95 inline bool DocumentsHasBeenSet() const { return m_documentsHasBeenSet; }
96 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
97 void SetDocuments(DocumentsT&& value) {
98 m_documentsHasBeenSet = true;
99 m_documents = std::forward<DocumentsT>(value);
100 }
101 template <typename DocumentsT = Aws::Vector<DocumentInfo>>
102 Assets& WithDocuments(DocumentsT&& value) {
103 SetDocuments(std::forward<DocumentsT>(value));
104 return *this;
105 }
106 template <typename DocumentsT = DocumentInfo>
107 Assets& AddDocuments(DocumentsT&& value) {
108 m_documentsHasBeenSet = true;
109 m_documents.emplace_back(std::forward<DocumentsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<SourceCodeRepository>& GetSourceCode() const { return m_sourceCode; }
119 inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
120 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
121 void SetSourceCode(SourceCodeT&& value) {
122 m_sourceCodeHasBeenSet = true;
123 m_sourceCode = std::forward<SourceCodeT>(value);
124 }
125 template <typename SourceCodeT = Aws::Vector<SourceCodeRepository>>
126 Assets& WithSourceCode(SourceCodeT&& value) {
127 SetSourceCode(std::forward<SourceCodeT>(value));
128 return *this;
129 }
130 template <typename SourceCodeT = SourceCodeRepository>
131 Assets& AddSourceCode(SourceCodeT&& value) {
132 m_sourceCodeHasBeenSet = true;
133 m_sourceCode.emplace_back(std::forward<SourceCodeT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<IntegratedRepository>& GetIntegratedRepositories() const { return m_integratedRepositories; }
143 inline bool IntegratedRepositoriesHasBeenSet() const { return m_integratedRepositoriesHasBeenSet; }
144 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
145 void SetIntegratedRepositories(IntegratedRepositoriesT&& value) {
146 m_integratedRepositoriesHasBeenSet = true;
147 m_integratedRepositories = std::forward<IntegratedRepositoriesT>(value);
148 }
149 template <typename IntegratedRepositoriesT = Aws::Vector<IntegratedRepository>>
150 Assets& WithIntegratedRepositories(IntegratedRepositoriesT&& value) {
151 SetIntegratedRepositories(std::forward<IntegratedRepositoriesT>(value));
152 return *this;
153 }
154 template <typename IntegratedRepositoriesT = IntegratedRepository>
155 Assets& AddIntegratedRepositories(IntegratedRepositoriesT&& value) {
156 m_integratedRepositoriesHasBeenSet = true;
157 m_integratedRepositories.emplace_back(std::forward<IntegratedRepositoriesT>(value));
158 return *this;
159 }
161
163
168 inline const Aws::Vector<TrustedCaCertificate>& GetTrustedCaCertificates() const { return m_trustedCaCertificates; }
169 inline bool TrustedCaCertificatesHasBeenSet() const { return m_trustedCaCertificatesHasBeenSet; }
170 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
171 void SetTrustedCaCertificates(TrustedCaCertificatesT&& value) {
172 m_trustedCaCertificatesHasBeenSet = true;
173 m_trustedCaCertificates = std::forward<TrustedCaCertificatesT>(value);
174 }
175 template <typename TrustedCaCertificatesT = Aws::Vector<TrustedCaCertificate>>
176 Assets& WithTrustedCaCertificates(TrustedCaCertificatesT&& value) {
177 SetTrustedCaCertificates(std::forward<TrustedCaCertificatesT>(value));
178 return *this;
179 }
180 template <typename TrustedCaCertificatesT = TrustedCaCertificate>
181 Assets& AddTrustedCaCertificates(TrustedCaCertificatesT&& value) {
182 m_trustedCaCertificatesHasBeenSet = true;
183 m_trustedCaCertificates.emplace_back(std::forward<TrustedCaCertificatesT>(value));
184 return *this;
185 }
187 private:
188 Aws::Vector<Endpoint> m_endpoints;
189
190 Aws::Vector<Actor> m_actors;
191
192 Aws::Vector<DocumentInfo> m_documents;
193
195
196 Aws::Vector<IntegratedRepository> m_integratedRepositories;
197
198 Aws::Vector<TrustedCaCertificate> m_trustedCaCertificates;
199 bool m_endpointsHasBeenSet = false;
200 bool m_actorsHasBeenSet = false;
201 bool m_documentsHasBeenSet = false;
202 bool m_sourceCodeHasBeenSet = false;
203 bool m_integratedRepositoriesHasBeenSet = false;
204 bool m_trustedCaCertificatesHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace SecurityAgent
209} // namespace Aws
Assets & WithEndpoints(EndpointsT &&value)
Definition Assets.h:54
void SetActors(ActorsT &&value)
Definition Assets.h:73
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:176
bool TrustedCaCertificatesHasBeenSet() const
Definition Assets.h:169
const Aws::Vector< Endpoint > & GetEndpoints() const
Definition Assets.h:46
Assets & AddSourceCode(SourceCodeT &&value)
Definition Assets.h:131
const Aws::Vector< Actor > & GetActors() const
Definition Assets.h:70
const Aws::Vector< DocumentInfo > & GetDocuments() const
Definition Assets.h:94
Assets & WithSourceCode(SourceCodeT &&value)
Definition Assets.h:126
AWS_SECURITYAGENT_API Assets(Aws::Utils::Json::JsonView jsonValue)
Assets & WithActors(ActorsT &&value)
Definition Assets.h:78
AWS_SECURITYAGENT_API Assets()=default
void SetIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition Assets.h:145
Assets & AddIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition Assets.h:155
Assets & WithDocuments(DocumentsT &&value)
Definition Assets.h:102
Assets & AddDocuments(DocumentsT &&value)
Definition Assets.h:107
bool IntegratedRepositoriesHasBeenSet() const
Definition Assets.h:143
const Aws::Vector< SourceCodeRepository > & GetSourceCode() const
Definition Assets.h:118
const Aws::Vector< TrustedCaCertificate > & GetTrustedCaCertificates() const
Definition Assets.h:168
Assets & WithIntegratedRepositories(IntegratedRepositoriesT &&value)
Definition Assets.h:150
const Aws::Vector< IntegratedRepository > & GetIntegratedRepositories() const
Definition Assets.h:142
Assets & AddActors(ActorsT &&value)
Definition Assets.h:83
Assets & AddEndpoints(EndpointsT &&value)
Definition Assets.h:59
void SetDocuments(DocumentsT &&value)
Definition Assets.h:97
Assets & AddTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition Assets.h:181
void SetEndpoints(EndpointsT &&value)
Definition Assets.h:49
void SetSourceCode(SourceCodeT &&value)
Definition Assets.h:121
void SetTrustedCaCertificates(TrustedCaCertificatesT &&value)
Definition Assets.h:171
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue