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

Information about the version (or revision) of a source artifact that * initiated a pipeline execution.

See Also:

AWS * API Reference

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

The name of the action that processed the revision to the source * artifact.

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *

The name of the action that processed the revision to the source * artifact.

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *

The name of the action that processed the revision to the source * artifact.

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *

The name of the action that processed the revision to the source * artifact.

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *

The name of the action that processed the revision to the source * artifact.

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *

The name of the action that processed the revision to the source * artifact.

*/ inline SourceRevision& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *

The name of the action that processed the revision to the source * artifact.

*/ inline SourceRevision& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *

The name of the action that processed the revision to the source * artifact.

*/ inline SourceRevision& WithActionName(const char* value) { SetActionName(value); return *this;} /** *

The system-generated unique ID that identifies the revision number of the * artifact.

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

The system-generated unique ID that identifies the revision number of the * artifact.

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

The system-generated unique ID that identifies the revision number of the * artifact.

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

The system-generated unique ID that identifies the revision number of the * artifact.

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

The system-generated unique ID that identifies the revision number of the * artifact.

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

The system-generated unique ID that identifies the revision number of the * artifact.

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

The system-generated unique ID that identifies the revision number of the * artifact.

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

The system-generated unique ID that identifies the revision number of the * artifact.

*/ inline SourceRevision& WithRevisionId(const char* value) { SetRevisionId(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 SourceRevision& 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 SourceRevision& 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 SourceRevision& WithRevisionSummary(const char* value) { SetRevisionSummary(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 SourceRevision& 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 SourceRevision& 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 SourceRevision& WithRevisionUrl(const char* value) { SetRevisionUrl(value); return *this;} private: Aws::String m_actionName; bool m_actionNameHasBeenSet = false; Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; Aws::String m_revisionSummary; bool m_revisionSummaryHasBeenSet = false; Aws::String m_revisionUrl; bool m_revisionUrlHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws