AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ProjectArtifacts.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/ArtifactsType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codebuild/model/ArtifactNamespace.h>
11#include <aws/codebuild/model/ArtifactPackaging.h>
12#include <aws/codebuild/model/BucketOwnerAccess.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodeBuild
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CODEBUILD_API ProjectArtifacts() = default;
40 AWS_CODEBUILD_API ProjectArtifacts(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
55 inline ArtifactsType GetType() const { return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(ArtifactsType value) { m_typeHasBeenSet = true; m_type = value; }
58 inline ProjectArtifacts& WithType(ArtifactsType value) { SetType(value); return *this;}
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) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
75 template<typename LocationT = Aws::String>
76 ProjectArtifacts& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
78
80
95 inline const Aws::String& GetPath() const { return m_path; }
96 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
97 template<typename PathT = Aws::String>
98 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
99 template<typename PathT = Aws::String>
100 ProjectArtifacts& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
102
104
122 inline ArtifactNamespace GetNamespaceType() const { return m_namespaceType; }
123 inline bool NamespaceTypeHasBeenSet() const { return m_namespaceTypeHasBeenSet; }
124 inline void SetNamespaceType(ArtifactNamespace value) { m_namespaceTypeHasBeenSet = true; m_namespaceType = value; }
127
129
152 inline const Aws::String& GetName() const { return m_name; }
153 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
154 template<typename NameT = Aws::String>
155 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
156 template<typename NameT = Aws::String>
157 ProjectArtifacts& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
159
161
174 inline ArtifactPackaging GetPackaging() const { return m_packaging; }
175 inline bool PackagingHasBeenSet() const { return m_packagingHasBeenSet; }
176 inline void SetPackaging(ArtifactPackaging value) { m_packagingHasBeenSet = true; m_packaging = value; }
177 inline ProjectArtifacts& WithPackaging(ArtifactPackaging value) { SetPackaging(value); return *this;}
179
181
187 inline bool GetOverrideArtifactName() const { return m_overrideArtifactName; }
188 inline bool OverrideArtifactNameHasBeenSet() const { return m_overrideArtifactNameHasBeenSet; }
189 inline void SetOverrideArtifactName(bool value) { m_overrideArtifactNameHasBeenSet = true; m_overrideArtifactName = value; }
190 inline ProjectArtifacts& WithOverrideArtifactName(bool value) { SetOverrideArtifactName(value); return *this;}
192
194
199 inline bool GetEncryptionDisabled() const { return m_encryptionDisabled; }
200 inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; }
201 inline void SetEncryptionDisabled(bool value) { m_encryptionDisabledHasBeenSet = true; m_encryptionDisabled = value; }
202 inline ProjectArtifacts& WithEncryptionDisabled(bool value) { SetEncryptionDisabled(value); return *this;}
204
206
209 inline const Aws::String& GetArtifactIdentifier() const { return m_artifactIdentifier; }
210 inline bool ArtifactIdentifierHasBeenSet() const { return m_artifactIdentifierHasBeenSet; }
211 template<typename ArtifactIdentifierT = Aws::String>
212 void SetArtifactIdentifier(ArtifactIdentifierT&& value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier = std::forward<ArtifactIdentifierT>(value); }
213 template<typename ArtifactIdentifierT = Aws::String>
214 ProjectArtifacts& WithArtifactIdentifier(ArtifactIdentifierT&& value) { SetArtifactIdentifier(std::forward<ArtifactIdentifierT>(value)); return *this;}
216
218
219 inline BucketOwnerAccess GetBucketOwnerAccess() const { return m_bucketOwnerAccess; }
220 inline bool BucketOwnerAccessHasBeenSet() const { return m_bucketOwnerAccessHasBeenSet; }
221 inline void SetBucketOwnerAccess(BucketOwnerAccess value) { m_bucketOwnerAccessHasBeenSet = true; m_bucketOwnerAccess = value; }
224 private:
225
227 bool m_typeHasBeenSet = false;
228
229 Aws::String m_location;
230 bool m_locationHasBeenSet = false;
231
232 Aws::String m_path;
233 bool m_pathHasBeenSet = false;
234
236 bool m_namespaceTypeHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
242 bool m_packagingHasBeenSet = false;
243
244 bool m_overrideArtifactName{false};
245 bool m_overrideArtifactNameHasBeenSet = false;
246
247 bool m_encryptionDisabled{false};
248 bool m_encryptionDisabledHasBeenSet = false;
249
250 Aws::String m_artifactIdentifier;
251 bool m_artifactIdentifierHasBeenSet = false;
252
254 bool m_bucketOwnerAccessHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace CodeBuild
259} // 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)
const Aws::String & GetPath() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue