AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
ProjectArtifacts.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/ArtifactNamespace.h>
9#include <aws/codebuild/model/ArtifactPackaging.h>
10#include <aws/codebuild/model/ArtifactsType.h>
11#include <aws/codebuild/model/BucketOwnerAccess.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeBuild {
24namespace Model {
25
33 public:
34 AWS_CODEBUILD_API ProjectArtifacts() = default;
35 AWS_CODEBUILD_API ProjectArtifacts(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
49 inline ArtifactsType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(ArtifactsType value) {
52 m_typeHasBeenSet = true;
53 m_type = value;
54 }
56 SetType(value);
57 return *this;
58 }
60
62
71 inline const Aws::String& GetLocation() const { return m_location; }
72 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
73 template <typename LocationT = Aws::String>
74 void SetLocation(LocationT&& value) {
75 m_locationHasBeenSet = true;
76 m_location = std::forward<LocationT>(value);
77 }
78 template <typename LocationT = Aws::String>
79 ProjectArtifacts& WithLocation(LocationT&& value) {
80 SetLocation(std::forward<LocationT>(value));
81 return *this;
82 }
84
86
101 inline const Aws::String& GetPath() const { return m_path; }
102 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
103 template <typename PathT = Aws::String>
104 void SetPath(PathT&& value) {
105 m_pathHasBeenSet = true;
106 m_path = std::forward<PathT>(value);
107 }
108 template <typename PathT = Aws::String>
109 ProjectArtifacts& WithPath(PathT&& value) {
110 SetPath(std::forward<PathT>(value));
111 return *this;
112 }
114
116
134 inline ArtifactNamespace GetNamespaceType() const { return m_namespaceType; }
135 inline bool NamespaceTypeHasBeenSet() const { return m_namespaceTypeHasBeenSet; }
137 m_namespaceTypeHasBeenSet = true;
138 m_namespaceType = value;
139 }
141 SetNamespaceType(value);
142 return *this;
143 }
145
147
170 inline const Aws::String& GetName() const { return m_name; }
171 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
172 template <typename NameT = Aws::String>
173 void SetName(NameT&& value) {
174 m_nameHasBeenSet = true;
175 m_name = std::forward<NameT>(value);
176 }
177 template <typename NameT = Aws::String>
178 ProjectArtifacts& WithName(NameT&& value) {
179 SetName(std::forward<NameT>(value));
180 return *this;
181 }
183
185
198 inline ArtifactPackaging GetPackaging() const { return m_packaging; }
199 inline bool PackagingHasBeenSet() const { return m_packagingHasBeenSet; }
200 inline void SetPackaging(ArtifactPackaging value) {
201 m_packagingHasBeenSet = true;
202 m_packaging = value;
203 }
205 SetPackaging(value);
206 return *this;
207 }
209
211
217 inline bool GetOverrideArtifactName() const { return m_overrideArtifactName; }
218 inline bool OverrideArtifactNameHasBeenSet() const { return m_overrideArtifactNameHasBeenSet; }
219 inline void SetOverrideArtifactName(bool value) {
220 m_overrideArtifactNameHasBeenSet = true;
221 m_overrideArtifactName = value;
222 }
225 return *this;
226 }
228
230
235 inline bool GetEncryptionDisabled() const { return m_encryptionDisabled; }
236 inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; }
237 inline void SetEncryptionDisabled(bool value) {
238 m_encryptionDisabledHasBeenSet = true;
239 m_encryptionDisabled = value;
240 }
243 return *this;
244 }
246
248
251 inline const Aws::String& GetArtifactIdentifier() const { return m_artifactIdentifier; }
252 inline bool ArtifactIdentifierHasBeenSet() const { return m_artifactIdentifierHasBeenSet; }
253 template <typename ArtifactIdentifierT = Aws::String>
254 void SetArtifactIdentifier(ArtifactIdentifierT&& value) {
255 m_artifactIdentifierHasBeenSet = true;
256 m_artifactIdentifier = std::forward<ArtifactIdentifierT>(value);
257 }
258 template <typename ArtifactIdentifierT = Aws::String>
259 ProjectArtifacts& WithArtifactIdentifier(ArtifactIdentifierT&& value) {
260 SetArtifactIdentifier(std::forward<ArtifactIdentifierT>(value));
261 return *this;
262 }
264
266
267 inline BucketOwnerAccess GetBucketOwnerAccess() const { return m_bucketOwnerAccess; }
268 inline bool BucketOwnerAccessHasBeenSet() const { return m_bucketOwnerAccessHasBeenSet; }
270 m_bucketOwnerAccessHasBeenSet = true;
271 m_bucketOwnerAccess = value;
272 }
275 return *this;
276 }
278 private:
280 bool m_typeHasBeenSet = false;
281
282 Aws::String m_location;
283 bool m_locationHasBeenSet = false;
284
285 Aws::String m_path;
286 bool m_pathHasBeenSet = false;
287
289 bool m_namespaceTypeHasBeenSet = false;
290
291 Aws::String m_name;
292 bool m_nameHasBeenSet = false;
293
295 bool m_packagingHasBeenSet = false;
296
297 bool m_overrideArtifactName{false};
298 bool m_overrideArtifactNameHasBeenSet = false;
299
300 bool m_encryptionDisabled{false};
301 bool m_encryptionDisabledHasBeenSet = false;
302
303 Aws::String m_artifactIdentifier;
304 bool m_artifactIdentifierHasBeenSet = false;
305
307 bool m_bucketOwnerAccessHasBeenSet = false;
308};
309
310} // namespace Model
311} // namespace CodeBuild
312} // namespace Aws
ProjectArtifacts & WithBucketOwnerAccess(BucketOwnerAccess value)
void SetArtifactIdentifier(ArtifactIdentifierT &&value)
BucketOwnerAccess GetBucketOwnerAccess() const
void SetNamespaceType(ArtifactNamespace value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBucketOwnerAccess(BucketOwnerAccess value)
ArtifactNamespace GetNamespaceType() const
ProjectArtifacts & WithPath(PathT &&value)
ProjectArtifacts & WithArtifactIdentifier(ArtifactIdentifierT &&value)
const Aws::String & GetArtifactIdentifier() const
ProjectArtifacts & WithNamespaceType(ArtifactNamespace value)
void SetPackaging(ArtifactPackaging value)
const Aws::String & GetLocation() const
ProjectArtifacts & WithType(ArtifactsType value)
ProjectArtifacts & WithName(NameT &&value)
ProjectArtifacts & WithOverrideArtifactName(bool value)
AWS_CODEBUILD_API ProjectArtifacts()=default
AWS_CODEBUILD_API ProjectArtifacts(Aws::Utils::Json::JsonView jsonValue)
ProjectArtifacts & WithEncryptionDisabled(bool value)
ProjectArtifacts & WithLocation(LocationT &&value)
AWS_CODEBUILD_API ProjectArtifacts & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectArtifacts & WithPackaging(ArtifactPackaging value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue