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

Properties of the Recovery Instance machine.

See Also:

AWS * API Reference

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

An array of CPUs.

*/ inline const Aws::Vector& GetCpus() const{ return m_cpus; } /** *

An array of CPUs.

*/ inline bool CpusHasBeenSet() const { return m_cpusHasBeenSet; } /** *

An array of CPUs.

*/ inline void SetCpus(const Aws::Vector& value) { m_cpusHasBeenSet = true; m_cpus = value; } /** *

An array of CPUs.

*/ inline void SetCpus(Aws::Vector&& value) { m_cpusHasBeenSet = true; m_cpus = std::move(value); } /** *

An array of CPUs.

*/ inline RecoveryInstanceProperties& WithCpus(const Aws::Vector& value) { SetCpus(value); return *this;} /** *

An array of CPUs.

*/ inline RecoveryInstanceProperties& WithCpus(Aws::Vector&& value) { SetCpus(std::move(value)); return *this;} /** *

An array of CPUs.

*/ inline RecoveryInstanceProperties& AddCpus(const CPU& value) { m_cpusHasBeenSet = true; m_cpus.push_back(value); return *this; } /** *

An array of CPUs.

*/ inline RecoveryInstanceProperties& AddCpus(CPU&& value) { m_cpusHasBeenSet = true; m_cpus.push_back(std::move(value)); return *this; } /** *

An array of disks.

*/ inline const Aws::Vector& GetDisks() const{ return m_disks; } /** *

An array of disks.

*/ inline bool DisksHasBeenSet() const { return m_disksHasBeenSet; } /** *

An array of disks.

*/ inline void SetDisks(const Aws::Vector& value) { m_disksHasBeenSet = true; m_disks = value; } /** *

An array of disks.

*/ inline void SetDisks(Aws::Vector&& value) { m_disksHasBeenSet = true; m_disks = std::move(value); } /** *

An array of disks.

*/ inline RecoveryInstanceProperties& WithDisks(const Aws::Vector& value) { SetDisks(value); return *this;} /** *

An array of disks.

*/ inline RecoveryInstanceProperties& WithDisks(Aws::Vector&& value) { SetDisks(std::move(value)); return *this;} /** *

An array of disks.

*/ inline RecoveryInstanceProperties& AddDisks(const RecoveryInstanceDisk& value) { m_disksHasBeenSet = true; m_disks.push_back(value); return *this; } /** *

An array of disks.

*/ inline RecoveryInstanceProperties& AddDisks(RecoveryInstanceDisk&& value) { m_disksHasBeenSet = true; m_disks.push_back(std::move(value)); return *this; } /** *

Hints used to uniquely identify a machine.

*/ inline const IdentificationHints& GetIdentificationHints() const{ return m_identificationHints; } /** *

Hints used to uniquely identify a machine.

*/ inline bool IdentificationHintsHasBeenSet() const { return m_identificationHintsHasBeenSet; } /** *

Hints used to uniquely identify a machine.

*/ inline void SetIdentificationHints(const IdentificationHints& value) { m_identificationHintsHasBeenSet = true; m_identificationHints = value; } /** *

Hints used to uniquely identify a machine.

*/ inline void SetIdentificationHints(IdentificationHints&& value) { m_identificationHintsHasBeenSet = true; m_identificationHints = std::move(value); } /** *

Hints used to uniquely identify a machine.

*/ inline RecoveryInstanceProperties& WithIdentificationHints(const IdentificationHints& value) { SetIdentificationHints(value); return *this;} /** *

Hints used to uniquely identify a machine.

*/ inline RecoveryInstanceProperties& WithIdentificationHints(IdentificationHints&& value) { SetIdentificationHints(std::move(value)); return *this;} /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline const Aws::String& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline void SetLastUpdatedDateTime(const Aws::String& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline void SetLastUpdatedDateTime(Aws::String&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline void SetLastUpdatedDateTime(const char* value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime.assign(value); } /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline RecoveryInstanceProperties& WithLastUpdatedDateTime(const Aws::String& value) { SetLastUpdatedDateTime(value); return *this;} /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline RecoveryInstanceProperties& WithLastUpdatedDateTime(Aws::String&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} /** *

The date and time the Recovery Instance properties were last updated on.

*/ inline RecoveryInstanceProperties& WithLastUpdatedDateTime(const char* value) { SetLastUpdatedDateTime(value); return *this;} /** *

An array of network interfaces.

*/ inline const Aws::Vector& GetNetworkInterfaces() const{ return m_networkInterfaces; } /** *

An array of network interfaces.

*/ inline bool NetworkInterfacesHasBeenSet() const { return m_networkInterfacesHasBeenSet; } /** *

An array of network interfaces.

*/ inline void SetNetworkInterfaces(const Aws::Vector& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = value; } /** *

An array of network interfaces.

*/ inline void SetNetworkInterfaces(Aws::Vector&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces = std::move(value); } /** *

An array of network interfaces.

*/ inline RecoveryInstanceProperties& WithNetworkInterfaces(const Aws::Vector& value) { SetNetworkInterfaces(value); return *this;} /** *

An array of network interfaces.

*/ inline RecoveryInstanceProperties& WithNetworkInterfaces(Aws::Vector&& value) { SetNetworkInterfaces(std::move(value)); return *this;} /** *

An array of network interfaces.

*/ inline RecoveryInstanceProperties& AddNetworkInterfaces(const NetworkInterface& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(value); return *this; } /** *

An array of network interfaces.

*/ inline RecoveryInstanceProperties& AddNetworkInterfaces(NetworkInterface&& value) { m_networkInterfacesHasBeenSet = true; m_networkInterfaces.push_back(std::move(value)); return *this; } /** *

Operating system.

*/ inline const OS& GetOs() const{ return m_os; } /** *

Operating system.

*/ inline bool OsHasBeenSet() const { return m_osHasBeenSet; } /** *

Operating system.

*/ inline void SetOs(const OS& value) { m_osHasBeenSet = true; m_os = value; } /** *

Operating system.

*/ inline void SetOs(OS&& value) { m_osHasBeenSet = true; m_os = std::move(value); } /** *

Operating system.

*/ inline RecoveryInstanceProperties& WithOs(const OS& value) { SetOs(value); return *this;} /** *

Operating system.

*/ inline RecoveryInstanceProperties& WithOs(OS&& value) { SetOs(std::move(value)); return *this;} /** *

The amount of RAM in bytes.

*/ inline long long GetRamBytes() const{ return m_ramBytes; } /** *

The amount of RAM in bytes.

*/ inline bool RamBytesHasBeenSet() const { return m_ramBytesHasBeenSet; } /** *

The amount of RAM in bytes.

*/ inline void SetRamBytes(long long value) { m_ramBytesHasBeenSet = true; m_ramBytes = value; } /** *

The amount of RAM in bytes.

*/ inline RecoveryInstanceProperties& WithRamBytes(long long value) { SetRamBytes(value); return *this;} private: Aws::Vector m_cpus; bool m_cpusHasBeenSet = false; Aws::Vector m_disks; bool m_disksHasBeenSet = false; IdentificationHints m_identificationHints; bool m_identificationHintsHasBeenSet = false; Aws::String m_lastUpdatedDateTime; bool m_lastUpdatedDateTimeHasBeenSet = false; Aws::Vector m_networkInterfaces; bool m_networkInterfacesHasBeenSet = false; OS m_os; bool m_osHasBeenSet = false; long long m_ramBytes; bool m_ramBytesHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws