/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents information about the state of transitions between one stage and
* another stage.See Also:
AWS
* API Reference
Whether the transition between stages is enabled (true) or disabled * (false).
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Whether the transition between stages is enabled (true) or disabled * (false).
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Whether the transition between stages is enabled (true) or disabled * (false).
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Whether the transition between stages is enabled (true) or disabled * (false).
*/ inline TransitionState& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The ID of the user who last changed the transition state.
*/ inline const Aws::String& GetLastChangedBy() const{ return m_lastChangedBy; } /** *The ID of the user who last changed the transition state.
*/ inline bool LastChangedByHasBeenSet() const { return m_lastChangedByHasBeenSet; } /** *The ID of the user who last changed the transition state.
*/ inline void SetLastChangedBy(const Aws::String& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = value; } /** *The ID of the user who last changed the transition state.
*/ inline void SetLastChangedBy(Aws::String&& value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy = std::move(value); } /** *The ID of the user who last changed the transition state.
*/ inline void SetLastChangedBy(const char* value) { m_lastChangedByHasBeenSet = true; m_lastChangedBy.assign(value); } /** *The ID of the user who last changed the transition state.
*/ inline TransitionState& WithLastChangedBy(const Aws::String& value) { SetLastChangedBy(value); return *this;} /** *The ID of the user who last changed the transition state.
*/ inline TransitionState& WithLastChangedBy(Aws::String&& value) { SetLastChangedBy(std::move(value)); return *this;} /** *The ID of the user who last changed the transition state.
*/ inline TransitionState& WithLastChangedBy(const char* value) { SetLastChangedBy(value); return *this;} /** *The timestamp when the transition state was last changed.
*/ inline const Aws::Utils::DateTime& GetLastChangedAt() const{ return m_lastChangedAt; } /** *The timestamp when the transition state was last changed.
*/ inline bool LastChangedAtHasBeenSet() const { return m_lastChangedAtHasBeenSet; } /** *The timestamp when the transition state was last changed.
*/ inline void SetLastChangedAt(const Aws::Utils::DateTime& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = value; } /** *The timestamp when the transition state was last changed.
*/ inline void SetLastChangedAt(Aws::Utils::DateTime&& value) { m_lastChangedAtHasBeenSet = true; m_lastChangedAt = std::move(value); } /** *The timestamp when the transition state was last changed.
*/ inline TransitionState& WithLastChangedAt(const Aws::Utils::DateTime& value) { SetLastChangedAt(value); return *this;} /** *The timestamp when the transition state was last changed.
*/ inline TransitionState& WithLastChangedAt(Aws::Utils::DateTime&& value) { SetLastChangedAt(std::move(value)); return *this;} /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline const Aws::String& GetDisabledReason() const{ return m_disabledReason; } /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline bool DisabledReasonHasBeenSet() const { return m_disabledReasonHasBeenSet; } /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline void SetDisabledReason(const Aws::String& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = value; } /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline void SetDisabledReason(Aws::String&& value) { m_disabledReasonHasBeenSet = true; m_disabledReason = std::move(value); } /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline void SetDisabledReason(const char* value) { m_disabledReasonHasBeenSet = true; m_disabledReason.assign(value); } /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline TransitionState& WithDisabledReason(const Aws::String& value) { SetDisabledReason(value); return *this;} /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline TransitionState& WithDisabledReason(Aws::String&& value) { SetDisabledReason(std::move(value)); return *this;} /** *The user-specified reason why the transition between two stages of a pipeline * was disabled.
*/ inline TransitionState& WithDisabledReason(const char* value) { SetDisabledReason(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_lastChangedBy; bool m_lastChangedByHasBeenSet = false; Aws::Utils::DateTime m_lastChangedAt; bool m_lastChangedAtHasBeenSet = false; Aws::String m_disabledReason; bool m_disabledReasonHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws