/** * 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 drs { namespace Model { /** *

An object containing information regarding the last launch of a Source * Server.

See Also:

AWS * API Reference

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

An object containing information regarding the initiation of the last launch * of a Source Server.

*/ inline const LifeCycleLastLaunchInitiated& GetInitiated() const{ return m_initiated; } /** *

An object containing information regarding the initiation of the last launch * of a Source Server.

*/ inline bool InitiatedHasBeenSet() const { return m_initiatedHasBeenSet; } /** *

An object containing information regarding the initiation of the last launch * of a Source Server.

*/ inline void SetInitiated(const LifeCycleLastLaunchInitiated& value) { m_initiatedHasBeenSet = true; m_initiated = value; } /** *

An object containing information regarding the initiation of the last launch * of a Source Server.

*/ inline void SetInitiated(LifeCycleLastLaunchInitiated&& value) { m_initiatedHasBeenSet = true; m_initiated = std::move(value); } /** *

An object containing information regarding the initiation of the last launch * of a Source Server.

*/ inline LifeCycleLastLaunch& WithInitiated(const LifeCycleLastLaunchInitiated& value) { SetInitiated(value); return *this;} /** *

An object containing information regarding the initiation of the last launch * of a Source Server.

*/ inline LifeCycleLastLaunch& WithInitiated(LifeCycleLastLaunchInitiated&& value) { SetInitiated(std::move(value)); return *this;} /** *

Status of Source Server's last launch.

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

Status of Source Server's last launch.

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

Status of Source Server's last launch.

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

Status of Source Server's last launch.

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

Status of Source Server's last launch.

*/ inline LifeCycleLastLaunch& WithStatus(const LaunchStatus& value) { SetStatus(value); return *this;} /** *

Status of Source Server's last launch.

*/ inline LifeCycleLastLaunch& WithStatus(LaunchStatus&& value) { SetStatus(std::move(value)); return *this;} private: LifeCycleLastLaunchInitiated m_initiated; bool m_initiatedHasBeenSet = false; LaunchStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws