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

Information about a server's CPU.

See Also:

AWS API * Reference

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

The number of CPU cores.

*/ inline long long GetCores() const{ return m_cores; } /** *

The number of CPU cores.

*/ inline bool CoresHasBeenSet() const { return m_coresHasBeenSet; } /** *

The number of CPU cores.

*/ inline void SetCores(long long value) { m_coresHasBeenSet = true; m_cores = value; } /** *

The number of CPU cores.

*/ inline CPU& WithCores(long long value) { SetCores(value); return *this;} /** *

The model name of the CPU.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

The model name of the CPU.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

The model name of the CPU.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

The model name of the CPU.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

The model name of the CPU.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

The model name of the CPU.

*/ inline CPU& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

The model name of the CPU.

*/ inline CPU& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

The model name of the CPU.

*/ inline CPU& WithModelName(const char* value) { SetModelName(value); return *this;} private: long long m_cores; bool m_coresHasBeenSet = false; Aws::String m_modelName; bool m_modelNameHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws