/** * 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 a current revision.

See Also:

* AWS * API Reference

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

The revision ID of the current version of an artifact.

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

The revision ID of the current version of an artifact.

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

The revision ID of the current version of an artifact.

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

The revision ID of the current version of an artifact.

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

The revision ID of the current version of an artifact.

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

The revision ID of the current version of an artifact.

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

The revision ID of the current version of an artifact.

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

The revision ID of the current version of an artifact.

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

The change identifier for the current revision.

*/ inline const Aws::String& GetChangeIdentifier() const{ return m_changeIdentifier; } /** *

The change identifier for the current revision.

*/ inline bool ChangeIdentifierHasBeenSet() const { return m_changeIdentifierHasBeenSet; } /** *

The change identifier for the current revision.

*/ inline void SetChangeIdentifier(const Aws::String& value) { m_changeIdentifierHasBeenSet = true; m_changeIdentifier = value; } /** *

The change identifier for the current revision.

*/ inline void SetChangeIdentifier(Aws::String&& value) { m_changeIdentifierHasBeenSet = true; m_changeIdentifier = std::move(value); } /** *

The change identifier for the current revision.

*/ inline void SetChangeIdentifier(const char* value) { m_changeIdentifierHasBeenSet = true; m_changeIdentifier.assign(value); } /** *

The change identifier for the current revision.

*/ inline CurrentRevision& WithChangeIdentifier(const Aws::String& value) { SetChangeIdentifier(value); return *this;} /** *

The change identifier for the current revision.

*/ inline CurrentRevision& WithChangeIdentifier(Aws::String&& value) { SetChangeIdentifier(std::move(value)); return *this;} /** *

The change identifier for the current revision.

*/ inline CurrentRevision& WithChangeIdentifier(const char* value) { SetChangeIdentifier(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 CurrentRevision& 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 CurrentRevision& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The summary of the most recent revision of the artifact.

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

The summary of the most recent revision of the artifact.

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

The summary of the most recent revision of the artifact.

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

The summary of the most recent revision of the artifact.

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

The summary of the most recent revision of the artifact.

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

The summary of the most recent revision of the artifact.

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

The summary of the most recent revision of the artifact.

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

The summary of the most recent revision of the artifact.

*/ inline CurrentRevision& WithRevisionSummary(const char* value) { SetRevisionSummary(value); return *this;} private: Aws::String m_revision; bool m_revisionHasBeenSet = false; Aws::String m_changeIdentifier; bool m_changeIdentifierHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::String m_revisionSummary; bool m_revisionSummaryHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws