/** * 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 revision details of an artifact.

See Also:

AWS * API Reference

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The name of an artifact. This name might be system-generated, such as * "MyApp", or defined by the user when an action is created.

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

The revision ID of the artifact.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

The revision ID of the artifact.

*/ inline bool RevisionIdHasBeenSet() const { return m_revisionIdHasBeenSet; } /** *

The revision ID of the artifact.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionIdHasBeenSet = true; m_revisionId = value; } /** *

The revision ID of the artifact.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionIdHasBeenSet = true; m_revisionId = std::move(value); } /** *

The revision ID of the artifact.

*/ inline void SetRevisionId(const char* value) { m_revisionIdHasBeenSet = true; m_revisionId.assign(value); } /** *

The revision ID of the artifact.

*/ inline ArtifactRevision& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

The revision ID of the artifact.

*/ inline ArtifactRevision& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

The revision ID of the artifact.

*/ inline ArtifactRevision& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline const Aws::String& GetRevisionChangeIdentifier() const{ return m_revisionChangeIdentifier; } /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline bool RevisionChangeIdentifierHasBeenSet() const { return m_revisionChangeIdentifierHasBeenSet; } /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline void SetRevisionChangeIdentifier(const Aws::String& value) { m_revisionChangeIdentifierHasBeenSet = true; m_revisionChangeIdentifier = value; } /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline void SetRevisionChangeIdentifier(Aws::String&& value) { m_revisionChangeIdentifierHasBeenSet = true; m_revisionChangeIdentifier = std::move(value); } /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline void SetRevisionChangeIdentifier(const char* value) { m_revisionChangeIdentifierHasBeenSet = true; m_revisionChangeIdentifier.assign(value); } /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline ArtifactRevision& WithRevisionChangeIdentifier(const Aws::String& value) { SetRevisionChangeIdentifier(value); return *this;} /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline ArtifactRevision& WithRevisionChangeIdentifier(Aws::String&& value) { SetRevisionChangeIdentifier(std::move(value)); return *this;} /** *

An additional identifier for a revision, such as a commit date or, for * artifacts stored in Amazon S3 buckets, the ETag value.

*/ inline ArtifactRevision& WithRevisionChangeIdentifier(const char* value) { SetRevisionChangeIdentifier(value); return *this;} /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline const Aws::String& GetRevisionSummary() const{ return m_revisionSummary; } /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline bool RevisionSummaryHasBeenSet() const { return m_revisionSummaryHasBeenSet; } /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline void SetRevisionSummary(const Aws::String& value) { m_revisionSummaryHasBeenSet = true; m_revisionSummary = value; } /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline void SetRevisionSummary(Aws::String&& value) { m_revisionSummaryHasBeenSet = true; m_revisionSummary = std::move(value); } /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline void SetRevisionSummary(const char* value) { m_revisionSummaryHasBeenSet = true; m_revisionSummary.assign(value); } /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline ArtifactRevision& WithRevisionSummary(const Aws::String& value) { SetRevisionSummary(value); return *this;} /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline ArtifactRevision& WithRevisionSummary(Aws::String&& value) { SetRevisionSummary(std::move(value)); return *this;} /** *

Summary information about the most recent revision of the artifact. For * GitHub and CodeCommit repositories, the commit message. For Amazon S3 buckets or * actions, the user-provided content of a * codepipeline-artifact-revision-summary key specified in the object * metadata.

*/ inline ArtifactRevision& WithRevisionSummary(const char* value) { SetRevisionSummary(value); return *this;} /** *

The date and time when the most recent revision of the artifact was created, * in timestamp format.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date and time when the most recent revision of the artifact was created, * in timestamp format.

*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *

The date and time when the most recent revision of the artifact was created, * in timestamp format.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *

The date and time when the most recent revision of the artifact was created, * in timestamp format.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *

The date and time when the most recent revision of the artifact was created, * in timestamp format.

*/ inline ArtifactRevision& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date and time when the most recent revision of the artifact was created, * in timestamp format.

*/ inline ArtifactRevision& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline const Aws::String& GetRevisionUrl() const{ return m_revisionUrl; } /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline bool RevisionUrlHasBeenSet() const { return m_revisionUrlHasBeenSet; } /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline void SetRevisionUrl(const Aws::String& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = value; } /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline void SetRevisionUrl(Aws::String&& value) { m_revisionUrlHasBeenSet = true; m_revisionUrl = std::move(value); } /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline void SetRevisionUrl(const char* value) { m_revisionUrlHasBeenSet = true; m_revisionUrl.assign(value); } /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline ArtifactRevision& WithRevisionUrl(const Aws::String& value) { SetRevisionUrl(value); return *this;} /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline ArtifactRevision& WithRevisionUrl(Aws::String&& value) { SetRevisionUrl(std::move(value)); return *this;} /** *

The commit ID for the artifact revision. For artifacts stored in GitHub or * CodeCommit repositories, the commit ID is linked to a commit details page.

*/ inline ArtifactRevision& WithRevisionUrl(const char* value) { SetRevisionUrl(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; Aws::String m_revisionChangeIdentifier; bool m_revisionChangeIdentifierHasBeenSet = false; Aws::String m_revisionSummary; bool m_revisionSummaryHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::String m_revisionUrl; bool m_revisionUrlHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws