/** * 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 resource participating in an asynchronous Job.

See * Also:

AWS * API Reference

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

The launch status of a participating resource.

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

The launch status of a participating resource.

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

The launch status of a participating resource.

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

The launch status of a participating resource.

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

The launch status of a participating resource.

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

The launch status of a participating resource.

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

The ID of a participating resource.

*/ inline const ParticipatingResourceID& GetParticipatingResourceID() const{ return m_participatingResourceID; } /** *

The ID of a participating resource.

*/ inline bool ParticipatingResourceIDHasBeenSet() const { return m_participatingResourceIDHasBeenSet; } /** *

The ID of a participating resource.

*/ inline void SetParticipatingResourceID(const ParticipatingResourceID& value) { m_participatingResourceIDHasBeenSet = true; m_participatingResourceID = value; } /** *

The ID of a participating resource.

*/ inline void SetParticipatingResourceID(ParticipatingResourceID&& value) { m_participatingResourceIDHasBeenSet = true; m_participatingResourceID = std::move(value); } /** *

The ID of a participating resource.

*/ inline ParticipatingResource& WithParticipatingResourceID(const ParticipatingResourceID& value) { SetParticipatingResourceID(value); return *this;} /** *

The ID of a participating resource.

*/ inline ParticipatingResource& WithParticipatingResourceID(ParticipatingResourceID&& value) { SetParticipatingResourceID(std::move(value)); return *this;} private: LaunchStatus m_launchStatus; bool m_launchStatusHasBeenSet = false; ParticipatingResourceID m_participatingResourceID; bool m_participatingResourceIDHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws