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

Represents the total (metered or unmetered) minutes used by the resource to * run tests. Contains the sum of minutes consumed by all children.

See * Also:

AWS * API Reference

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

When specified, represents the total minutes used by the resource to run * tests.

*/ inline double GetTotal() const{ return m_total; } /** *

When specified, represents the total minutes used by the resource to run * tests.

*/ inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; } /** *

When specified, represents the total minutes used by the resource to run * tests.

*/ inline void SetTotal(double value) { m_totalHasBeenSet = true; m_total = value; } /** *

When specified, represents the total minutes used by the resource to run * tests.

*/ inline DeviceMinutes& WithTotal(double value) { SetTotal(value); return *this;} /** *

When specified, represents only the sum of metered minutes used by the * resource to run tests.

*/ inline double GetMetered() const{ return m_metered; } /** *

When specified, represents only the sum of metered minutes used by the * resource to run tests.

*/ inline bool MeteredHasBeenSet() const { return m_meteredHasBeenSet; } /** *

When specified, represents only the sum of metered minutes used by the * resource to run tests.

*/ inline void SetMetered(double value) { m_meteredHasBeenSet = true; m_metered = value; } /** *

When specified, represents only the sum of metered minutes used by the * resource to run tests.

*/ inline DeviceMinutes& WithMetered(double value) { SetMetered(value); return *this;} /** *

When specified, represents only the sum of unmetered minutes used by the * resource to run tests.

*/ inline double GetUnmetered() const{ return m_unmetered; } /** *

When specified, represents only the sum of unmetered minutes used by the * resource to run tests.

*/ inline bool UnmeteredHasBeenSet() const { return m_unmeteredHasBeenSet; } /** *

When specified, represents only the sum of unmetered minutes used by the * resource to run tests.

*/ inline void SetUnmetered(double value) { m_unmeteredHasBeenSet = true; m_unmetered = value; } /** *

When specified, represents only the sum of unmetered minutes used by the * resource to run tests.

*/ inline DeviceMinutes& WithUnmetered(double value) { SetUnmetered(value); return *this;} private: double m_total; bool m_totalHasBeenSet = false; double m_metered; bool m_meteredHasBeenSet = false; double m_unmetered; bool m_unmeteredHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws