/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeDeploy { namespace Model { /** *

Information about a deployment lifecycle event.

See Also:

AWS * API Reference

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

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline const Aws::String& GetLifecycleEventName() const{ return m_lifecycleEventName; } /** *

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline bool LifecycleEventNameHasBeenSet() const { return m_lifecycleEventNameHasBeenSet; } /** *

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline void SetLifecycleEventName(const Aws::String& value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName = value; } /** *

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline void SetLifecycleEventName(Aws::String&& value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName = std::move(value); } /** *

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline void SetLifecycleEventName(const char* value) { m_lifecycleEventNameHasBeenSet = true; m_lifecycleEventName.assign(value); } /** *

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline LifecycleEvent& WithLifecycleEventName(const Aws::String& value) { SetLifecycleEventName(value); return *this;} /** *

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline LifecycleEvent& WithLifecycleEventName(Aws::String&& value) { SetLifecycleEventName(std::move(value)); return *this;} /** *

The deployment lifecycle event name, such as ApplicationStop, * BeforeInstall, AfterInstall, * ApplicationStart, or ValidateService.

*/ inline LifecycleEvent& WithLifecycleEventName(const char* value) { SetLifecycleEventName(value); return *this;} /** *

Diagnostic information about the deployment lifecycle event.

*/ inline const Diagnostics& GetDiagnostics() const{ return m_diagnostics; } /** *

Diagnostic information about the deployment lifecycle event.

*/ inline bool DiagnosticsHasBeenSet() const { return m_diagnosticsHasBeenSet; } /** *

Diagnostic information about the deployment lifecycle event.

*/ inline void SetDiagnostics(const Diagnostics& value) { m_diagnosticsHasBeenSet = true; m_diagnostics = value; } /** *

Diagnostic information about the deployment lifecycle event.

*/ inline void SetDiagnostics(Diagnostics&& value) { m_diagnosticsHasBeenSet = true; m_diagnostics = std::move(value); } /** *

Diagnostic information about the deployment lifecycle event.

*/ inline LifecycleEvent& WithDiagnostics(const Diagnostics& value) { SetDiagnostics(value); return *this;} /** *

Diagnostic information about the deployment lifecycle event.

*/ inline LifecycleEvent& WithDiagnostics(Diagnostics&& value) { SetDiagnostics(std::move(value)); return *this;} /** *

A timestamp that indicates when the deployment lifecycle event started.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

A timestamp that indicates when the deployment lifecycle event started.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

A timestamp that indicates when the deployment lifecycle event started.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

A timestamp that indicates when the deployment lifecycle event started.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

A timestamp that indicates when the deployment lifecycle event started.

*/ inline LifecycleEvent& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

A timestamp that indicates when the deployment lifecycle event started.

*/ inline LifecycleEvent& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

A timestamp that indicates when the deployment lifecycle event ended.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

A timestamp that indicates when the deployment lifecycle event ended.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

A timestamp that indicates when the deployment lifecycle event ended.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

A timestamp that indicates when the deployment lifecycle event ended.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

A timestamp that indicates when the deployment lifecycle event ended.

*/ inline LifecycleEvent& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

A timestamp that indicates when the deployment lifecycle event ended.

*/ inline LifecycleEvent& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The deployment lifecycle event status:

  • Pending: The * deployment lifecycle event is pending.

  • InProgress: The * deployment lifecycle event is in progress.

  • Succeeded: The * deployment lifecycle event ran successfully.

  • Failed: The * deployment lifecycle event has failed.

  • Skipped: The deployment * lifecycle event has been skipped.

  • Unknown: The deployment * lifecycle event is unknown.

*/ inline const LifecycleEventStatus& GetStatus() const{ return m_status; } /** *

The deployment lifecycle event status:

  • Pending: The * deployment lifecycle event is pending.

  • InProgress: The * deployment lifecycle event is in progress.

  • Succeeded: The * deployment lifecycle event ran successfully.

  • Failed: The * deployment lifecycle event has failed.

  • Skipped: The deployment * lifecycle event has been skipped.

  • Unknown: The deployment * lifecycle event is unknown.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The deployment lifecycle event status:

  • Pending: The * deployment lifecycle event is pending.

  • InProgress: The * deployment lifecycle event is in progress.

  • Succeeded: The * deployment lifecycle event ran successfully.

  • Failed: The * deployment lifecycle event has failed.

  • Skipped: The deployment * lifecycle event has been skipped.

  • Unknown: The deployment * lifecycle event is unknown.

*/ inline void SetStatus(const LifecycleEventStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The deployment lifecycle event status:

  • Pending: The * deployment lifecycle event is pending.

  • InProgress: The * deployment lifecycle event is in progress.

  • Succeeded: The * deployment lifecycle event ran successfully.

  • Failed: The * deployment lifecycle event has failed.

  • Skipped: The deployment * lifecycle event has been skipped.

  • Unknown: The deployment * lifecycle event is unknown.

*/ inline void SetStatus(LifecycleEventStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The deployment lifecycle event status:

  • Pending: The * deployment lifecycle event is pending.

  • InProgress: The * deployment lifecycle event is in progress.

  • Succeeded: The * deployment lifecycle event ran successfully.

  • Failed: The * deployment lifecycle event has failed.

  • Skipped: The deployment * lifecycle event has been skipped.

  • Unknown: The deployment * lifecycle event is unknown.

*/ inline LifecycleEvent& WithStatus(const LifecycleEventStatus& value) { SetStatus(value); return *this;} /** *

The deployment lifecycle event status:

  • Pending: The * deployment lifecycle event is pending.

  • InProgress: The * deployment lifecycle event is in progress.

  • Succeeded: The * deployment lifecycle event ran successfully.

  • Failed: The * deployment lifecycle event has failed.

  • Skipped: The deployment * lifecycle event has been skipped.

  • Unknown: The deployment * lifecycle event is unknown.

*/ inline LifecycleEvent& WithStatus(LifecycleEventStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_lifecycleEventName; bool m_lifecycleEventNameHasBeenSet = false; Diagnostics m_diagnostics; bool m_diagnosticsHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; LifecycleEventStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws