AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
BuildArtifacts.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/codebuild/model/BucketOwnerAccess.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeBuild {
21namespace Model {
22
29 public:
30 AWS_CODEBUILD_API BuildArtifacts() = default;
31 AWS_CODEBUILD_API BuildArtifacts(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLocation() const { return m_location; }
40 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
41 template <typename LocationT = Aws::String>
42 void SetLocation(LocationT&& value) {
43 m_locationHasBeenSet = true;
44 m_location = std::forward<LocationT>(value);
45 }
46 template <typename LocationT = Aws::String>
47 BuildArtifacts& WithLocation(LocationT&& value) {
48 SetLocation(std::forward<LocationT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetSha256sum() const { return m_sha256sum; }
61 inline bool Sha256sumHasBeenSet() const { return m_sha256sumHasBeenSet; }
62 template <typename Sha256sumT = Aws::String>
63 void SetSha256sum(Sha256sumT&& value) {
64 m_sha256sumHasBeenSet = true;
65 m_sha256sum = std::forward<Sha256sumT>(value);
66 }
67 template <typename Sha256sumT = Aws::String>
68 BuildArtifacts& WithSha256sum(Sha256sumT&& value) {
69 SetSha256sum(std::forward<Sha256sumT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetMd5sum() const { return m_md5sum; }
82 inline bool Md5sumHasBeenSet() const { return m_md5sumHasBeenSet; }
83 template <typename Md5sumT = Aws::String>
84 void SetMd5sum(Md5sumT&& value) {
85 m_md5sumHasBeenSet = true;
86 m_md5sum = std::forward<Md5sumT>(value);
87 }
88 template <typename Md5sumT = Aws::String>
89 BuildArtifacts& WithMd5sum(Md5sumT&& value) {
90 SetMd5sum(std::forward<Md5sumT>(value));
91 return *this;
92 }
94
96
102 inline bool GetOverrideArtifactName() const { return m_overrideArtifactName; }
103 inline bool OverrideArtifactNameHasBeenSet() const { return m_overrideArtifactNameHasBeenSet; }
104 inline void SetOverrideArtifactName(bool value) {
105 m_overrideArtifactNameHasBeenSet = true;
106 m_overrideArtifactName = value;
107 }
110 return *this;
111 }
113
115
119 inline bool GetEncryptionDisabled() const { return m_encryptionDisabled; }
120 inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; }
121 inline void SetEncryptionDisabled(bool value) {
122 m_encryptionDisabledHasBeenSet = true;
123 m_encryptionDisabled = value;
124 }
127 return *this;
128 }
130
132
135 inline const Aws::String& GetArtifactIdentifier() const { return m_artifactIdentifier; }
136 inline bool ArtifactIdentifierHasBeenSet() const { return m_artifactIdentifierHasBeenSet; }
137 template <typename ArtifactIdentifierT = Aws::String>
138 void SetArtifactIdentifier(ArtifactIdentifierT&& value) {
139 m_artifactIdentifierHasBeenSet = true;
140 m_artifactIdentifier = std::forward<ArtifactIdentifierT>(value);
141 }
142 template <typename ArtifactIdentifierT = Aws::String>
143 BuildArtifacts& WithArtifactIdentifier(ArtifactIdentifierT&& value) {
144 SetArtifactIdentifier(std::forward<ArtifactIdentifierT>(value));
145 return *this;
146 }
148
150
151 inline BucketOwnerAccess GetBucketOwnerAccess() const { return m_bucketOwnerAccess; }
152 inline bool BucketOwnerAccessHasBeenSet() const { return m_bucketOwnerAccessHasBeenSet; }
154 m_bucketOwnerAccessHasBeenSet = true;
155 m_bucketOwnerAccess = value;
156 }
159 return *this;
160 }
162 private:
163 Aws::String m_location;
164
165 Aws::String m_sha256sum;
166
167 Aws::String m_md5sum;
168
169 bool m_overrideArtifactName{false};
170
171 bool m_encryptionDisabled{false};
172
173 Aws::String m_artifactIdentifier;
174
176 bool m_locationHasBeenSet = false;
177 bool m_sha256sumHasBeenSet = false;
178 bool m_md5sumHasBeenSet = false;
179 bool m_overrideArtifactNameHasBeenSet = false;
180 bool m_encryptionDisabledHasBeenSet = false;
181 bool m_artifactIdentifierHasBeenSet = false;
182 bool m_bucketOwnerAccessHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace CodeBuild
187} // namespace Aws
BuildArtifacts & WithEncryptionDisabled(bool value)
void SetArtifactIdentifier(ArtifactIdentifierT &&value)
BuildArtifacts & WithSha256sum(Sha256sumT &&value)
void SetLocation(LocationT &&value)
AWS_CODEBUILD_API BuildArtifacts()=default
BuildArtifacts & WithMd5sum(Md5sumT &&value)
AWS_CODEBUILD_API BuildArtifacts & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSha256sum() const
BuildArtifacts & WithBucketOwnerAccess(BucketOwnerAccess value)
BuildArtifacts & WithArtifactIdentifier(ArtifactIdentifierT &&value)
const Aws::String & GetMd5sum() const
const Aws::String & GetLocation() const
void SetBucketOwnerAccess(BucketOwnerAccess value)
AWS_CODEBUILD_API BuildArtifacts(Aws::Utils::Json::JsonView jsonValue)
BuildArtifacts & WithLocation(LocationT &&value)
BuildArtifacts & WithOverrideArtifactName(bool value)
const Aws::String & GetArtifactIdentifier() const
BucketOwnerAccess GetBucketOwnerAccess() const
void SetSha256sum(Sha256sumT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue