/** * 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 DeviceFarm { namespace Model { /** *

Represents the amount of CPU that an app is using on a physical device. Does * not represent system-wide CPU usage.

See Also:

AWS API * Reference

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

The CPU's frequency.

*/ inline const Aws::String& GetFrequency() const{ return m_frequency; } /** *

The CPU's frequency.

*/ inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; } /** *

The CPU's frequency.

*/ inline void SetFrequency(const Aws::String& value) { m_frequencyHasBeenSet = true; m_frequency = value; } /** *

The CPU's frequency.

*/ inline void SetFrequency(Aws::String&& value) { m_frequencyHasBeenSet = true; m_frequency = std::move(value); } /** *

The CPU's frequency.

*/ inline void SetFrequency(const char* value) { m_frequencyHasBeenSet = true; m_frequency.assign(value); } /** *

The CPU's frequency.

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

The CPU's frequency.

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

The CPU's frequency.

*/ inline CPU& WithFrequency(const char* value) { SetFrequency(value); return *this;} /** *

The CPU's architecture (for example, x86 or ARM).

*/ inline const Aws::String& GetArchitecture() const{ return m_architecture; } /** *

The CPU's architecture (for example, x86 or ARM).

*/ inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; } /** *

The CPU's architecture (for example, x86 or ARM).

*/ inline void SetArchitecture(const Aws::String& value) { m_architectureHasBeenSet = true; m_architecture = value; } /** *

The CPU's architecture (for example, x86 or ARM).

*/ inline void SetArchitecture(Aws::String&& value) { m_architectureHasBeenSet = true; m_architecture = std::move(value); } /** *

The CPU's architecture (for example, x86 or ARM).

*/ inline void SetArchitecture(const char* value) { m_architectureHasBeenSet = true; m_architecture.assign(value); } /** *

The CPU's architecture (for example, x86 or ARM).

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

The CPU's architecture (for example, x86 or ARM).

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

The CPU's architecture (for example, x86 or ARM).

*/ inline CPU& WithArchitecture(const char* value) { SetArchitecture(value); return *this;} /** *

The clock speed of the device's CPU, expressed in hertz (Hz). For example, a * 1.2 GHz CPU is expressed as 1200000000.

*/ inline double GetClock() const{ return m_clock; } /** *

The clock speed of the device's CPU, expressed in hertz (Hz). For example, a * 1.2 GHz CPU is expressed as 1200000000.

*/ inline bool ClockHasBeenSet() const { return m_clockHasBeenSet; } /** *

The clock speed of the device's CPU, expressed in hertz (Hz). For example, a * 1.2 GHz CPU is expressed as 1200000000.

*/ inline void SetClock(double value) { m_clockHasBeenSet = true; m_clock = value; } /** *

The clock speed of the device's CPU, expressed in hertz (Hz). For example, a * 1.2 GHz CPU is expressed as 1200000000.

*/ inline CPU& WithClock(double value) { SetClock(value); return *this;} private: Aws::String m_frequency; bool m_frequencyHasBeenSet; Aws::String m_architecture; bool m_architectureHasBeenSet; double m_clock; bool m_clockHasBeenSet; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws