/** * 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 the version (or revision) of an * action.

See Also:

AWS * API Reference

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

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

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

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

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

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

*/ 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 * action.

*/ 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 * action.

*/ 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 * action.

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

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

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

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

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

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline const Aws::String& GetRevisionChangeId() const{ return m_revisionChangeId; } /** *

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline bool RevisionChangeIdHasBeenSet() const { return m_revisionChangeIdHasBeenSet; } /** *

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline void SetRevisionChangeId(const Aws::String& value) { m_revisionChangeIdHasBeenSet = true; m_revisionChangeId = value; } /** *

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline void SetRevisionChangeId(Aws::String&& value) { m_revisionChangeIdHasBeenSet = true; m_revisionChangeId = std::move(value); } /** *

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline void SetRevisionChangeId(const char* value) { m_revisionChangeIdHasBeenSet = true; m_revisionChangeId.assign(value); } /** *

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline ActionRevision& WithRevisionChangeId(const Aws::String& value) { SetRevisionChangeId(value); return *this;} /** *

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline ActionRevision& WithRevisionChangeId(Aws::String&& value) { SetRevisionChangeId(std::move(value)); return *this;} /** *

The unique identifier of the change that set the state to this revision (for * example, a deployment ID or timestamp).

*/ inline ActionRevision& WithRevisionChangeId(const char* value) { SetRevisionChangeId(value); return *this;} /** *

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

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

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

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

The date and time when the most recent version of the action 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 version of the action 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 version of the action was created, in * timestamp format.

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

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

*/ inline ActionRevision& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} private: Aws::String m_revisionId; bool m_revisionIdHasBeenSet = false; Aws::String m_revisionChangeId; bool m_revisionChangeIdHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws