AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ArtifactsType& GetType() const{ return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(const ArtifactsType& value) { m_typeHasBeenSet = true; m_type = value; }
58 inline void SetType(ArtifactsType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
59 inline ProjectArtifacts& WithType(const ArtifactsType& value) { SetType(value); return *this;}
60 inline ProjectArtifacts& WithType(ArtifactsType&& value) { SetType(std::move(value)); return *this;}
62
64
73 inline const Aws::String& GetLocation() const{ return m_location; }
74 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
75 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
76 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
77 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
78 inline ProjectArtifacts& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
79 inline ProjectArtifacts& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
80 inline ProjectArtifacts& WithLocation(const char* value) { SetLocation(value); return *this;}
82
84
99 inline const Aws::String& GetPath() const{ return m_path; }
100 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
101 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
102 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
103 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
104 inline ProjectArtifacts& WithPath(const Aws::String& value) { SetPath(value); return *this;}
105 inline ProjectArtifacts& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
106 inline ProjectArtifacts& WithPath(const char* value) { SetPath(value); return *this;}
108
110
128 inline const ArtifactNamespace& GetNamespaceType() const{ return m_namespaceType; }
129 inline bool NamespaceTypeHasBeenSet() const { return m_namespaceTypeHasBeenSet; }
130 inline void SetNamespaceType(const ArtifactNamespace& value) { m_namespaceTypeHasBeenSet = true; m_namespaceType = value; }
131 inline void SetNamespaceType(ArtifactNamespace&& value) { m_namespaceTypeHasBeenSet = true; m_namespaceType = std::move(value); }
132 inline ProjectArtifacts& WithNamespaceType(const ArtifactNamespace& value) { SetNamespaceType(value); return *this;}
133 inline ProjectArtifacts& WithNamespaceType(ArtifactNamespace&& value) { SetNamespaceType(std::move(value)); return *this;}
135
137
160 inline const Aws::String& GetName() const{ return m_name; }
161 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
162 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
163 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
164 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
165 inline ProjectArtifacts& WithName(const Aws::String& value) { SetName(value); return *this;}
166 inline ProjectArtifacts& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
167 inline ProjectArtifacts& WithName(const char* value) { SetName(value); return *this;}
169
171
184 inline const ArtifactPackaging& GetPackaging() const{ return m_packaging; }
185 inline bool PackagingHasBeenSet() const { return m_packagingHasBeenSet; }
186 inline void SetPackaging(const ArtifactPackaging& value) { m_packagingHasBeenSet = true; m_packaging = value; }
187 inline void SetPackaging(ArtifactPackaging&& value) { m_packagingHasBeenSet = true; m_packaging = std::move(value); }
188 inline ProjectArtifacts& WithPackaging(const ArtifactPackaging& value) { SetPackaging(value); return *this;}
189 inline ProjectArtifacts& WithPackaging(ArtifactPackaging&& value) { SetPackaging(std::move(value)); return *this;}
191
193
199 inline bool GetOverrideArtifactName() const{ return m_overrideArtifactName; }
200 inline bool OverrideArtifactNameHasBeenSet() const { return m_overrideArtifactNameHasBeenSet; }
201 inline void SetOverrideArtifactName(bool value) { m_overrideArtifactNameHasBeenSet = true; m_overrideArtifactName = value; }
202 inline ProjectArtifacts& WithOverrideArtifactName(bool value) { SetOverrideArtifactName(value); return *this;}
204
206
211 inline bool GetEncryptionDisabled() const{ return m_encryptionDisabled; }
212 inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; }
213 inline void SetEncryptionDisabled(bool value) { m_encryptionDisabledHasBeenSet = true; m_encryptionDisabled = value; }
214 inline ProjectArtifacts& WithEncryptionDisabled(bool value) { SetEncryptionDisabled(value); return *this;}
216
218
221 inline const Aws::String& GetArtifactIdentifier() const{ return m_artifactIdentifier; }
222 inline bool ArtifactIdentifierHasBeenSet() const { return m_artifactIdentifierHasBeenSet; }
223 inline void SetArtifactIdentifier(const Aws::String& value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier = value; }
224 inline void SetArtifactIdentifier(Aws::String&& value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier = std::move(value); }
225 inline void SetArtifactIdentifier(const char* value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier.assign(value); }
226 inline ProjectArtifacts& WithArtifactIdentifier(const Aws::String& value) { SetArtifactIdentifier(value); return *this;}
227 inline ProjectArtifacts& WithArtifactIdentifier(Aws::String&& value) { SetArtifactIdentifier(std::move(value)); return *this;}
228 inline ProjectArtifacts& WithArtifactIdentifier(const char* value) { SetArtifactIdentifier(value); return *this;}
230
232
233 inline const BucketOwnerAccess& GetBucketOwnerAccess() const{ return m_bucketOwnerAccess; }
234 inline bool BucketOwnerAccessHasBeenSet() const { return m_bucketOwnerAccessHasBeenSet; }
235 inline void SetBucketOwnerAccess(const BucketOwnerAccess& value) { m_bucketOwnerAccessHasBeenSet = true; m_bucketOwnerAccess = value; }
236 inline void SetBucketOwnerAccess(BucketOwnerAccess&& value) { m_bucketOwnerAccessHasBeenSet = true; m_bucketOwnerAccess = std::move(value); }
238 inline ProjectArtifacts& WithBucketOwnerAccess(BucketOwnerAccess&& value) { SetBucketOwnerAccess(std::move(value)); return *this;}
240 private:
241
242 ArtifactsType m_type;
243 bool m_typeHasBeenSet = false;
244
245 Aws::String m_location;
246 bool m_locationHasBeenSet = false;
247
248 Aws::String m_path;
249 bool m_pathHasBeenSet = false;
250
251 ArtifactNamespace m_namespaceType;
252 bool m_namespaceTypeHasBeenSet = false;
253
254 Aws::String m_name;
255 bool m_nameHasBeenSet = false;
256
257 ArtifactPackaging m_packaging;
258 bool m_packagingHasBeenSet = false;
259
260 bool m_overrideArtifactName;
261 bool m_overrideArtifactNameHasBeenSet = false;
262
263 bool m_encryptionDisabled;
264 bool m_encryptionDisabledHasBeenSet = false;
265
266 Aws::String m_artifactIdentifier;
267 bool m_artifactIdentifierHasBeenSet = false;
268
269 BucketOwnerAccess m_bucketOwnerAccess;
270 bool m_bucketOwnerAccessHasBeenSet = false;
271 };
272
273} // namespace Model
274} // namespace CodeBuild
275} // namespace Aws
ProjectArtifacts & WithArtifactIdentifier(Aws::String &&value)
const BucketOwnerAccess & GetBucketOwnerAccess() const
ProjectArtifacts & WithType(ArtifactsType &&value)
const ArtifactNamespace & GetNamespaceType() const
void SetNamespaceType(ArtifactNamespace &&value)
ProjectArtifacts & WithPath(const Aws::String &value)
void SetLocation(const Aws::String &value)
void SetPath(const Aws::String &value)
ProjectArtifacts & WithArtifactIdentifier(const char *value)
void SetType(const ArtifactsType &value)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
ProjectArtifacts & WithPackaging(ArtifactPackaging &&value)
void SetName(const Aws::String &value)
ProjectArtifacts & WithArtifactIdentifier(const Aws::String &value)
void SetArtifactIdentifier(const Aws::String &value)
const Aws::String & GetArtifactIdentifier() const
ProjectArtifacts & WithBucketOwnerAccess(const BucketOwnerAccess &value)
ProjectArtifacts & WithPackaging(const ArtifactPackaging &value)
void SetBucketOwnerAccess(BucketOwnerAccess &&value)
void SetBucketOwnerAccess(const BucketOwnerAccess &value)
ProjectArtifacts & WithNamespaceType(ArtifactNamespace &&value)
void SetPackaging(const ArtifactPackaging &value)
const ArtifactPackaging & GetPackaging() const
const Aws::String & GetLocation() const
void SetArtifactIdentifier(const char *value)
ProjectArtifacts & WithLocation(const Aws::String &value)
ProjectArtifacts & WithLocation(Aws::String &&value)
void SetPackaging(ArtifactPackaging &&value)
ProjectArtifacts & WithPath(Aws::String &&value)
ProjectArtifacts & WithOverrideArtifactName(bool value)
ProjectArtifacts & WithName(const char *value)
ProjectArtifacts & WithLocation(const char *value)
ProjectArtifacts & WithType(const ArtifactsType &value)
ProjectArtifacts & WithNamespaceType(const ArtifactNamespace &value)
void SetNamespaceType(const ArtifactNamespace &value)
AWS_CODEBUILD_API ProjectArtifacts(Aws::Utils::Json::JsonView jsonValue)
ProjectArtifacts & WithEncryptionDisabled(bool value)
const ArtifactsType & GetType() const
AWS_CODEBUILD_API ProjectArtifacts & operator=(Aws::Utils::Json::JsonView jsonValue)
ProjectArtifacts & WithBucketOwnerAccess(BucketOwnerAccess &&value)
ProjectArtifacts & WithPath(const char *value)
ProjectArtifacts & WithName(Aws::String &&value)
const Aws::String & GetPath() const
void SetType(ArtifactsType &&value)
void SetArtifactIdentifier(Aws::String &&value)
ProjectArtifacts & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue