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

Describes the hardware of a database.

See Also:

AWS * API Reference

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

The number of vCPUs for the database.

*/ inline int GetCpuCount() const{ return m_cpuCount; } /** *

The number of vCPUs for the database.

*/ inline bool CpuCountHasBeenSet() const { return m_cpuCountHasBeenSet; } /** *

The number of vCPUs for the database.

*/ inline void SetCpuCount(int value) { m_cpuCountHasBeenSet = true; m_cpuCount = value; } /** *

The number of vCPUs for the database.

*/ inline RelationalDatabaseHardware& WithCpuCount(int value) { SetCpuCount(value); return *this;} /** *

The size of the disk for the database.

*/ inline int GetDiskSizeInGb() const{ return m_diskSizeInGb; } /** *

The size of the disk for the database.

*/ inline bool DiskSizeInGbHasBeenSet() const { return m_diskSizeInGbHasBeenSet; } /** *

The size of the disk for the database.

*/ inline void SetDiskSizeInGb(int value) { m_diskSizeInGbHasBeenSet = true; m_diskSizeInGb = value; } /** *

The size of the disk for the database.

*/ inline RelationalDatabaseHardware& WithDiskSizeInGb(int value) { SetDiskSizeInGb(value); return *this;} /** *

The amount of RAM in GB for the database.

*/ inline double GetRamSizeInGb() const{ return m_ramSizeInGb; } /** *

The amount of RAM in GB for the database.

*/ inline bool RamSizeInGbHasBeenSet() const { return m_ramSizeInGbHasBeenSet; } /** *

The amount of RAM in GB for the database.

*/ inline void SetRamSizeInGb(double value) { m_ramSizeInGbHasBeenSet = true; m_ramSizeInGb = value; } /** *

The amount of RAM in GB for the database.

*/ inline RelationalDatabaseHardware& WithRamSizeInGb(double value) { SetRamSizeInGb(value); return *this;} private: int m_cpuCount; bool m_cpuCountHasBeenSet = false; int m_diskSizeInGb; bool m_diskSizeInGbHasBeenSet = false; double m_ramSizeInGb; bool m_ramSizeInGbHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws