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

The interaction or event that started a pipeline execution.

See * Also:

AWS * API Reference

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

The type of change-detection method, command, or user interaction that * started a pipeline execution.

*/ inline const TriggerType& GetTriggerType() const{ return m_triggerType; } /** *

The type of change-detection method, command, or user interaction that * started a pipeline execution.

*/ inline bool TriggerTypeHasBeenSet() const { return m_triggerTypeHasBeenSet; } /** *

The type of change-detection method, command, or user interaction that * started a pipeline execution.

*/ inline void SetTriggerType(const TriggerType& value) { m_triggerTypeHasBeenSet = true; m_triggerType = value; } /** *

The type of change-detection method, command, or user interaction that * started a pipeline execution.

*/ inline void SetTriggerType(TriggerType&& value) { m_triggerTypeHasBeenSet = true; m_triggerType = std::move(value); } /** *

The type of change-detection method, command, or user interaction that * started a pipeline execution.

*/ inline ExecutionTrigger& WithTriggerType(const TriggerType& value) { SetTriggerType(value); return *this;} /** *

The type of change-detection method, command, or user interaction that * started a pipeline execution.

*/ inline ExecutionTrigger& WithTriggerType(TriggerType&& value) { SetTriggerType(std::move(value)); return *this;} /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline const Aws::String& GetTriggerDetail() const{ return m_triggerDetail; } /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline bool TriggerDetailHasBeenSet() const { return m_triggerDetailHasBeenSet; } /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline void SetTriggerDetail(const Aws::String& value) { m_triggerDetailHasBeenSet = true; m_triggerDetail = value; } /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline void SetTriggerDetail(Aws::String&& value) { m_triggerDetailHasBeenSet = true; m_triggerDetail = std::move(value); } /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline void SetTriggerDetail(const char* value) { m_triggerDetailHasBeenSet = true; m_triggerDetail.assign(value); } /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline ExecutionTrigger& WithTriggerDetail(const Aws::String& value) { SetTriggerDetail(value); return *this;} /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline ExecutionTrigger& WithTriggerDetail(Aws::String&& value) { SetTriggerDetail(std::move(value)); return *this;} /** *

Detail related to the event that started a pipeline execution, such as the * webhook ARN of the webhook that triggered the pipeline execution or the user ARN * for a user-initiated start-pipeline-execution CLI command.

*/ inline ExecutionTrigger& WithTriggerDetail(const char* value) { SetTriggerDetail(value); return *this;} private: TriggerType m_triggerType; bool m_triggerTypeHasBeenSet = false; Aws::String m_triggerDetail; bool m_triggerDetailHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws