/** * 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 CodePipeline { namespace Model { /** *

Represents information about an artifact that is worked on by actions in the * pipeline.

See Also:

AWS * API Reference

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

The artifact's name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The artifact's name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The artifact's name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The artifact's name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The artifact's name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The artifact's name.

*/ inline Artifact& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The artifact's name.

*/ inline Artifact& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The artifact's name.

*/ inline Artifact& WithName(const char* value) { SetName(value); return *this;} /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline const Aws::String& GetRevision() const{ return m_revision; } /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; } /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline void SetRevision(const Aws::String& value) { m_revisionHasBeenSet = true; m_revision = value; } /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline void SetRevision(Aws::String&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); } /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline void SetRevision(const char* value) { m_revisionHasBeenSet = true; m_revision.assign(value); } /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline Artifact& WithRevision(const Aws::String& value) { SetRevision(value); return *this;} /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline Artifact& WithRevision(Aws::String&& value) { SetRevision(std::move(value)); return *this;} /** *

The artifact's revision ID. Depending on the type of object, this could be a * commit ID (GitHub) or a revision ID (Amazon S3).

*/ inline Artifact& WithRevision(const char* value) { SetRevision(value); return *this;} /** *

The location of an artifact.

*/ inline const ArtifactLocation& GetLocation() const{ return m_location; } /** *

The location of an artifact.

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

The location of an artifact.

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

The location of an artifact.

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

The location of an artifact.

*/ inline Artifact& WithLocation(const ArtifactLocation& value) { SetLocation(value); return *this;} /** *

The location of an artifact.

*/ inline Artifact& WithLocation(ArtifactLocation&& value) { SetLocation(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_revision; bool m_revisionHasBeenSet; ArtifactLocation m_location; bool m_locationHasBeenSet; }; } // namespace Model } // namespace CodePipeline } // namespace Aws