/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 AWS_CODEBUILD_API BuildArtifacts { public: BuildArtifacts(); BuildArtifacts(Aws::Utils::Json::JsonView jsonValue); BuildArtifacts& operator=(Aws::Utils::Json::JsonView jsonValue); 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;} private: Aws::String m_location; bool m_locationHasBeenSet; Aws::String m_sha256sum; bool m_sha256sumHasBeenSet; Aws::String m_md5sum; bool m_md5sumHasBeenSet; bool m_overrideArtifactName; bool m_overrideArtifactNameHasBeenSet; bool m_encryptionDisabled; bool m_encryptionDisabledHasBeenSet; Aws::String m_artifactIdentifier; bool m_artifactIdentifierHasBeenSet; }; } // namespace Model } // namespace CodeBuild } // namespace Aws