/** * 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 representing the Source Server Lifecycle.

See Also:

* AWS * API Reference

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

The date and time of when the Source Server was added to the service.

*/ inline const Aws::String& GetAddedToServiceDateTime() const{ return m_addedToServiceDateTime; } /** *

The date and time of when the Source Server was added to the service.

*/ inline bool AddedToServiceDateTimeHasBeenSet() const { return m_addedToServiceDateTimeHasBeenSet; } /** *

The date and time of when the Source Server was added to the service.

*/ inline void SetAddedToServiceDateTime(const Aws::String& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = value; } /** *

The date and time of when the Source Server was added to the service.

*/ inline void SetAddedToServiceDateTime(Aws::String&& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = std::move(value); } /** *

The date and time of when the Source Server was added to the service.

*/ inline void SetAddedToServiceDateTime(const char* value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime.assign(value); } /** *

The date and time of when the Source Server was added to the service.

*/ inline LifeCycle& WithAddedToServiceDateTime(const Aws::String& value) { SetAddedToServiceDateTime(value); return *this;} /** *

The date and time of when the Source Server was added to the service.

*/ inline LifeCycle& WithAddedToServiceDateTime(Aws::String&& value) { SetAddedToServiceDateTime(std::move(value)); return *this;} /** *

The date and time of when the Source Server was added to the service.

*/ inline LifeCycle& WithAddedToServiceDateTime(const char* value) { SetAddedToServiceDateTime(value); return *this;} /** *

The amount of time that the Source Server has been replicating for.

*/ inline const Aws::String& GetElapsedReplicationDuration() const{ return m_elapsedReplicationDuration; } /** *

The amount of time that the Source Server has been replicating for.

*/ inline bool ElapsedReplicationDurationHasBeenSet() const { return m_elapsedReplicationDurationHasBeenSet; } /** *

The amount of time that the Source Server has been replicating for.

*/ inline void SetElapsedReplicationDuration(const Aws::String& value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = value; } /** *

The amount of time that the Source Server has been replicating for.

*/ inline void SetElapsedReplicationDuration(Aws::String&& value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = std::move(value); } /** *

The amount of time that the Source Server has been replicating for.

*/ inline void SetElapsedReplicationDuration(const char* value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration.assign(value); } /** *

The amount of time that the Source Server has been replicating for.

*/ inline LifeCycle& WithElapsedReplicationDuration(const Aws::String& value) { SetElapsedReplicationDuration(value); return *this;} /** *

The amount of time that the Source Server has been replicating for.

*/ inline LifeCycle& WithElapsedReplicationDuration(Aws::String&& value) { SetElapsedReplicationDuration(std::move(value)); return *this;} /** *

The amount of time that the Source Server has been replicating for.

*/ inline LifeCycle& WithElapsedReplicationDuration(const char* value) { SetElapsedReplicationDuration(value); return *this;} /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline const Aws::String& GetFirstByteDateTime() const{ return m_firstByteDateTime; } /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; } /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline void SetFirstByteDateTime(const Aws::String& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = value; } /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline void SetFirstByteDateTime(Aws::String&& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = std::move(value); } /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline void SetFirstByteDateTime(const char* value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime.assign(value); } /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline LifeCycle& WithFirstByteDateTime(const Aws::String& value) { SetFirstByteDateTime(value); return *this;} /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline LifeCycle& WithFirstByteDateTime(Aws::String&& value) { SetFirstByteDateTime(std::move(value)); return *this;} /** *

The date and time of the first byte that was replicated from the Source * Server.

*/ inline LifeCycle& WithFirstByteDateTime(const char* value) { SetFirstByteDateTime(value); return *this;} /** *

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

*/ inline const LifeCycleLastLaunch& GetLastLaunch() const{ return m_lastLaunch; } /** *

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

*/ inline bool LastLaunchHasBeenSet() const { return m_lastLaunchHasBeenSet; } /** *

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

*/ inline void SetLastLaunch(const LifeCycleLastLaunch& value) { m_lastLaunchHasBeenSet = true; m_lastLaunch = value; } /** *

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

*/ inline void SetLastLaunch(LifeCycleLastLaunch&& value) { m_lastLaunchHasBeenSet = true; m_lastLaunch = std::move(value); } /** *

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

*/ inline LifeCycle& WithLastLaunch(const LifeCycleLastLaunch& value) { SetLastLaunch(value); return *this;} /** *

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

*/ inline LifeCycle& WithLastLaunch(LifeCycleLastLaunch&& value) { SetLastLaunch(std::move(value)); return *this;} /** *

The date and time this Source Server was last seen by the service.

*/ inline const Aws::String& GetLastSeenByServiceDateTime() const{ return m_lastSeenByServiceDateTime; } /** *

The date and time this Source Server was last seen by the service.

*/ inline bool LastSeenByServiceDateTimeHasBeenSet() const { return m_lastSeenByServiceDateTimeHasBeenSet; } /** *

The date and time this Source Server was last seen by the service.

*/ inline void SetLastSeenByServiceDateTime(const Aws::String& value) { m_lastSeenByServiceDateTimeHasBeenSet = true; m_lastSeenByServiceDateTime = value; } /** *

The date and time this Source Server was last seen by the service.

*/ inline void SetLastSeenByServiceDateTime(Aws::String&& value) { m_lastSeenByServiceDateTimeHasBeenSet = true; m_lastSeenByServiceDateTime = std::move(value); } /** *

The date and time this Source Server was last seen by the service.

*/ inline void SetLastSeenByServiceDateTime(const char* value) { m_lastSeenByServiceDateTimeHasBeenSet = true; m_lastSeenByServiceDateTime.assign(value); } /** *

The date and time this Source Server was last seen by the service.

*/ inline LifeCycle& WithLastSeenByServiceDateTime(const Aws::String& value) { SetLastSeenByServiceDateTime(value); return *this;} /** *

The date and time this Source Server was last seen by the service.

*/ inline LifeCycle& WithLastSeenByServiceDateTime(Aws::String&& value) { SetLastSeenByServiceDateTime(std::move(value)); return *this;} /** *

The date and time this Source Server was last seen by the service.

*/ inline LifeCycle& WithLastSeenByServiceDateTime(const char* value) { SetLastSeenByServiceDateTime(value); return *this;} private: Aws::String m_addedToServiceDateTime; bool m_addedToServiceDateTimeHasBeenSet = false; Aws::String m_elapsedReplicationDuration; bool m_elapsedReplicationDurationHasBeenSet = false; Aws::String m_firstByteDateTime; bool m_firstByteDateTimeHasBeenSet = false; LifeCycleLastLaunch m_lastLaunch; bool m_lastLaunchHasBeenSet = false; Aws::String m_lastSeenByServiceDateTime; bool m_lastSeenByServiceDateTimeHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws