/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeBuild { namespace Model { /** *

Information about build output artifacts.

See Also:

AWS * API Reference

*/ class BuildArtifacts { public: AWS_CODEBUILD_API BuildArtifacts(); AWS_CODEBUILD_API BuildArtifacts(Aws::Utils::Json::JsonView jsonValue); AWS_CODEBUILD_API BuildArtifacts& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Information about the location of the build artifacts.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

Information about the location of the build artifacts.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

Information about the location of the build artifacts.

*/ inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; } /** *

Information about the location of the build artifacts.

*/ inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

Information about the location of the build artifacts.

*/ inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); } /** *

Information about the location of the build artifacts.

*/ inline BuildArtifacts& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

Information about the location of the build artifacts.

*/ inline BuildArtifacts& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

Information about the location of the build artifacts.

*/ inline BuildArtifacts& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline const Aws::String& GetSha256sum() const{ return m_sha256sum; } /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline bool Sha256sumHasBeenSet() const { return m_sha256sumHasBeenSet; } /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline void SetSha256sum(const Aws::String& value) { m_sha256sumHasBeenSet = true; m_sha256sum = value; } /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline void SetSha256sum(Aws::String&& value) { m_sha256sumHasBeenSet = true; m_sha256sum = std::move(value); } /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline void SetSha256sum(const char* value) { m_sha256sumHasBeenSet = true; m_sha256sum.assign(value); } /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline BuildArtifacts& WithSha256sum(const Aws::String& value) { SetSha256sum(value); return *this;} /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline BuildArtifacts& WithSha256sum(Aws::String&& value) { SetSha256sum(std::move(value)); return *this;} /** *

The SHA-256 hash of the build artifact.

You can use this hash along * with a checksum tool to confirm file integrity and authenticity.

*

This value is available only if the build project's packaging * value is set to ZIP.

*/ inline BuildArtifacts& WithSha256sum(const char* value) { SetSha256sum(value); return *this;} /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline const Aws::String& GetMd5sum() const{ return m_md5sum; } /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline bool Md5sumHasBeenSet() const { return m_md5sumHasBeenSet; } /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline void SetMd5sum(const Aws::String& value) { m_md5sumHasBeenSet = true; m_md5sum = value; } /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline void SetMd5sum(Aws::String&& value) { m_md5sumHasBeenSet = true; m_md5sum = std::move(value); } /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline void SetMd5sum(const char* value) { m_md5sumHasBeenSet = true; m_md5sum.assign(value); } /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline BuildArtifacts& WithMd5sum(const Aws::String& value) { SetMd5sum(value); return *this;} /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline BuildArtifacts& WithMd5sum(Aws::String&& value) { SetMd5sum(std::move(value)); return *this;} /** *

The MD5 hash of the build artifact.

You can use this hash along with a * checksum tool to confirm file integrity and authenticity.

This * value is available only if the build project's packaging value is * set to ZIP.

*/ inline BuildArtifacts& WithMd5sum(const char* value) { SetMd5sum(value); return *this;} /** *

If this flag is set, a name specified in the buildspec file overrides the * artifact name. The name specified in a buildspec file is calculated at build * time and uses the Shell Command Language. For example, you can append a date and * time to your artifact name so that it is always unique.

*/ inline bool GetOverrideArtifactName() const{ return m_overrideArtifactName; } /** *

If this flag is set, a name specified in the buildspec file overrides the * artifact name. The name specified in a buildspec file is calculated at build * time and uses the Shell Command Language. For example, you can append a date and * time to your artifact name so that it is always unique.

*/ inline bool OverrideArtifactNameHasBeenSet() const { return m_overrideArtifactNameHasBeenSet; } /** *

If this flag is set, a name specified in the buildspec file overrides the * artifact name. The name specified in a buildspec file is calculated at build * time and uses the Shell Command Language. For example, you can append a date and * time to your artifact name so that it is always unique.

*/ inline void SetOverrideArtifactName(bool value) { m_overrideArtifactNameHasBeenSet = true; m_overrideArtifactName = value; } /** *

If this flag is set, a name specified in the buildspec file overrides the * artifact name. The name specified in a buildspec file is calculated at build * time and uses the Shell Command Language. For example, you can append a date and * time to your artifact name so that it is always unique.

*/ inline BuildArtifacts& WithOverrideArtifactName(bool value) { SetOverrideArtifactName(value); return *this;} /** *

Information that tells you if encryption for build artifacts is disabled. *

*/ inline bool GetEncryptionDisabled() const{ return m_encryptionDisabled; } /** *

Information that tells you if encryption for build artifacts is disabled. *

*/ inline bool EncryptionDisabledHasBeenSet() const { return m_encryptionDisabledHasBeenSet; } /** *

Information that tells you if encryption for build artifacts is disabled. *

*/ inline void SetEncryptionDisabled(bool value) { m_encryptionDisabledHasBeenSet = true; m_encryptionDisabled = value; } /** *

Information that tells you if encryption for build artifacts is disabled. *

*/ inline BuildArtifacts& WithEncryptionDisabled(bool value) { SetEncryptionDisabled(value); return *this;} /** *

An identifier for this artifact definition.

*/ inline const Aws::String& GetArtifactIdentifier() const{ return m_artifactIdentifier; } /** *

An identifier for this artifact definition.

*/ inline bool ArtifactIdentifierHasBeenSet() const { return m_artifactIdentifierHasBeenSet; } /** *

An identifier for this artifact definition.

*/ inline void SetArtifactIdentifier(const Aws::String& value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier = value; } /** *

An identifier for this artifact definition.

*/ inline void SetArtifactIdentifier(Aws::String&& value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier = std::move(value); } /** *

An identifier for this artifact definition.

*/ inline void SetArtifactIdentifier(const char* value) { m_artifactIdentifierHasBeenSet = true; m_artifactIdentifier.assign(value); } /** *

An identifier for this artifact definition.

*/ inline BuildArtifacts& WithArtifactIdentifier(const Aws::String& value) { SetArtifactIdentifier(value); return *this;} /** *

An identifier for this artifact definition.

*/ inline BuildArtifacts& WithArtifactIdentifier(Aws::String&& value) { SetArtifactIdentifier(std::move(value)); return *this;} /** *

An identifier for this artifact definition.

*/ inline BuildArtifacts& WithArtifactIdentifier(const char* value) { SetArtifactIdentifier(value); return *this;} inline const BucketOwnerAccess& GetBucketOwnerAccess() const{ return m_bucketOwnerAccess; } inline bool BucketOwnerAccessHasBeenSet() const { return m_bucketOwnerAccessHasBeenSet; } inline void SetBucketOwnerAccess(const BucketOwnerAccess& value) { m_bucketOwnerAccessHasBeenSet = true; m_bucketOwnerAccess = value; } inline void SetBucketOwnerAccess(BucketOwnerAccess&& value) { m_bucketOwnerAccessHasBeenSet = true; m_bucketOwnerAccess = std::move(value); } inline BuildArtifacts& WithBucketOwnerAccess(const BucketOwnerAccess& value) { SetBucketOwnerAccess(value); return *this;} inline BuildArtifacts& WithBucketOwnerAccess(BucketOwnerAccess&& value) { SetBucketOwnerAccess(std::move(value)); return *this;} private: Aws::String m_location; bool m_locationHasBeenSet = false; Aws::String m_sha256sum; bool m_sha256sumHasBeenSet = false; Aws::String m_md5sum; bool m_md5sumHasBeenSet = false; bool m_overrideArtifactName; bool m_overrideArtifactNameHasBeenSet = false; bool m_encryptionDisabled; bool m_encryptionDisabledHasBeenSet = false; Aws::String m_artifactIdentifier; bool m_artifactIdentifierHasBeenSet = false; BucketOwnerAccess m_bucketOwnerAccess; bool m_bucketOwnerAccessHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws