/** * 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 { /** *

Information about a pipeline.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the pipeline.

*/ inline const Aws::String& GetPipelineArn() const{ return m_pipelineArn; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline bool PipelineArnHasBeenSet() const { return m_pipelineArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(const Aws::String& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = value; } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(Aws::String&& value) { m_pipelineArnHasBeenSet = true; m_pipelineArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline void SetPipelineArn(const char* value) { m_pipelineArnHasBeenSet = true; m_pipelineArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineMetadata& WithPipelineArn(const Aws::String& value) { SetPipelineArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineMetadata& WithPipelineArn(Aws::String&& value) { SetPipelineArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the pipeline.

*/ inline PipelineMetadata& WithPipelineArn(const char* value) { SetPipelineArn(value); return *this;} /** *

The date and time the pipeline was created, in timestamp format.

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

The date and time the pipeline was created, in timestamp format.

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

The date and time the pipeline was created, in timestamp format.

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

The date and time the pipeline was created, in timestamp format.

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

The date and time the pipeline was created, in timestamp format.

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

The date and time the pipeline was created, in timestamp format.

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

The date and time the pipeline was last updated, in timestamp format.

*/ inline const Aws::Utils::DateTime& GetUpdated() const{ return m_updated; } /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline bool UpdatedHasBeenSet() const { return m_updatedHasBeenSet; } /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline void SetUpdated(const Aws::Utils::DateTime& value) { m_updatedHasBeenSet = true; m_updated = value; } /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline void SetUpdated(Aws::Utils::DateTime&& value) { m_updatedHasBeenSet = true; m_updated = std::move(value); } /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline PipelineMetadata& WithUpdated(const Aws::Utils::DateTime& value) { SetUpdated(value); return *this;} /** *

The date and time the pipeline was last updated, in timestamp format.

*/ inline PipelineMetadata& WithUpdated(Aws::Utils::DateTime&& value) { SetUpdated(std::move(value)); return *this;} /** *

The date and time that polling for source changes (periodic checks) was * stopped for the pipeline, in timestamp format. You can migrate (update) a * polling pipeline to use event-based change detection. For example, for a * pipeline with a CodeCommit source, we recommend you migrate (update) your * pipeline to use CloudWatch Events. To learn more, see Migrate * polling pipelines to use event-based change detection in the CodePipeline * User Guide.

*/ inline const Aws::Utils::DateTime& GetPollingDisabledAt() const{ return m_pollingDisabledAt; } /** *

The date and time that polling for source changes (periodic checks) was * stopped for the pipeline, in timestamp format. You can migrate (update) a * polling pipeline to use event-based change detection. For example, for a * pipeline with a CodeCommit source, we recommend you migrate (update) your * pipeline to use CloudWatch Events. To learn more, see Migrate * polling pipelines to use event-based change detection in the CodePipeline * User Guide.

*/ inline bool PollingDisabledAtHasBeenSet() const { return m_pollingDisabledAtHasBeenSet; } /** *

The date and time that polling for source changes (periodic checks) was * stopped for the pipeline, in timestamp format. You can migrate (update) a * polling pipeline to use event-based change detection. For example, for a * pipeline with a CodeCommit source, we recommend you migrate (update) your * pipeline to use CloudWatch Events. To learn more, see Migrate * polling pipelines to use event-based change detection in the CodePipeline * User Guide.

*/ inline void SetPollingDisabledAt(const Aws::Utils::DateTime& value) { m_pollingDisabledAtHasBeenSet = true; m_pollingDisabledAt = value; } /** *

The date and time that polling for source changes (periodic checks) was * stopped for the pipeline, in timestamp format. You can migrate (update) a * polling pipeline to use event-based change detection. For example, for a * pipeline with a CodeCommit source, we recommend you migrate (update) your * pipeline to use CloudWatch Events. To learn more, see Migrate * polling pipelines to use event-based change detection in the CodePipeline * User Guide.

*/ inline void SetPollingDisabledAt(Aws::Utils::DateTime&& value) { m_pollingDisabledAtHasBeenSet = true; m_pollingDisabledAt = std::move(value); } /** *

The date and time that polling for source changes (periodic checks) was * stopped for the pipeline, in timestamp format. You can migrate (update) a * polling pipeline to use event-based change detection. For example, for a * pipeline with a CodeCommit source, we recommend you migrate (update) your * pipeline to use CloudWatch Events. To learn more, see Migrate * polling pipelines to use event-based change detection in the CodePipeline * User Guide.

*/ inline PipelineMetadata& WithPollingDisabledAt(const Aws::Utils::DateTime& value) { SetPollingDisabledAt(value); return *this;} /** *

The date and time that polling for source changes (periodic checks) was * stopped for the pipeline, in timestamp format. You can migrate (update) a * polling pipeline to use event-based change detection. For example, for a * pipeline with a CodeCommit source, we recommend you migrate (update) your * pipeline to use CloudWatch Events. To learn more, see Migrate * polling pipelines to use event-based change detection in the CodePipeline * User Guide.

*/ inline PipelineMetadata& WithPollingDisabledAt(Aws::Utils::DateTime&& value) { SetPollingDisabledAt(std::move(value)); return *this;} private: Aws::String m_pipelineArn; bool m_pipelineArnHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::Utils::DateTime m_updated; bool m_updatedHasBeenSet = false; Aws::Utils::DateTime m_pollingDisabledAt; bool m_pollingDisabledAtHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws