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

Represents a server participating in an asynchronous Job.

See * Also:

AWS * API Reference

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

The launch status of a participating server.

*/ inline const LaunchStatus& GetLaunchStatus() const{ return m_launchStatus; } /** *

The launch status of a participating server.

*/ inline bool LaunchStatusHasBeenSet() const { return m_launchStatusHasBeenSet; } /** *

The launch status of a participating server.

*/ inline void SetLaunchStatus(const LaunchStatus& value) { m_launchStatusHasBeenSet = true; m_launchStatus = value; } /** *

The launch status of a participating server.

*/ inline void SetLaunchStatus(LaunchStatus&& value) { m_launchStatusHasBeenSet = true; m_launchStatus = std::move(value); } /** *

The launch status of a participating server.

*/ inline ParticipatingServer& WithLaunchStatus(const LaunchStatus& value) { SetLaunchStatus(value); return *this;} /** *

The launch status of a participating server.

*/ inline ParticipatingServer& WithLaunchStatus(LaunchStatus&& value) { SetLaunchStatus(std::move(value)); return *this;} /** *

The Recovery Instance ID of a participating server.

*/ inline const Aws::String& GetRecoveryInstanceID() const{ return m_recoveryInstanceID; } /** *

The Recovery Instance ID of a participating server.

*/ inline bool RecoveryInstanceIDHasBeenSet() const { return m_recoveryInstanceIDHasBeenSet; } /** *

The Recovery Instance ID of a participating server.

*/ inline void SetRecoveryInstanceID(const Aws::String& value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID = value; } /** *

The Recovery Instance ID of a participating server.

*/ inline void SetRecoveryInstanceID(Aws::String&& value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID = std::move(value); } /** *

The Recovery Instance ID of a participating server.

*/ inline void SetRecoveryInstanceID(const char* value) { m_recoveryInstanceIDHasBeenSet = true; m_recoveryInstanceID.assign(value); } /** *

The Recovery Instance ID of a participating server.

*/ inline ParticipatingServer& WithRecoveryInstanceID(const Aws::String& value) { SetRecoveryInstanceID(value); return *this;} /** *

The Recovery Instance ID of a participating server.

*/ inline ParticipatingServer& WithRecoveryInstanceID(Aws::String&& value) { SetRecoveryInstanceID(std::move(value)); return *this;} /** *

The Recovery Instance ID of a participating server.

*/ inline ParticipatingServer& WithRecoveryInstanceID(const char* value) { SetRecoveryInstanceID(value); return *this;} /** *

The Source Server ID of a participating server.

*/ inline const Aws::String& GetSourceServerID() const{ return m_sourceServerID; } /** *

The Source Server ID of a participating server.

*/ inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; } /** *

The Source Server ID of a participating server.

*/ inline void SetSourceServerID(const Aws::String& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = value; } /** *

The Source Server ID of a participating server.

*/ inline void SetSourceServerID(Aws::String&& value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID = std::move(value); } /** *

The Source Server ID of a participating server.

*/ inline void SetSourceServerID(const char* value) { m_sourceServerIDHasBeenSet = true; m_sourceServerID.assign(value); } /** *

The Source Server ID of a participating server.

*/ inline ParticipatingServer& WithSourceServerID(const Aws::String& value) { SetSourceServerID(value); return *this;} /** *

The Source Server ID of a participating server.

*/ inline ParticipatingServer& WithSourceServerID(Aws::String&& value) { SetSourceServerID(std::move(value)); return *this;} /** *

The Source Server ID of a participating server.

*/ inline ParticipatingServer& WithSourceServerID(const char* value) { SetSourceServerID(value); return *this;} private: LaunchStatus m_launchStatus; bool m_launchStatusHasBeenSet = false; Aws::String m_recoveryInstanceID; bool m_recoveryInstanceIDHasBeenSet = false; Aws::String m_sourceServerID; bool m_sourceServerIDHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws