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

The aggregate vCPU, memory, and storage resources used from the time job * start executing till the time job is terminated, rounded up to the nearest * second.

See Also:

AWS * API Reference

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

The aggregated vCPU used per hour from the time job start executing till the * time job is terminated.

*/ inline double GetVCPUHour() const{ return m_vCPUHour; } /** *

The aggregated vCPU used per hour from the time job start executing till the * time job is terminated.

*/ inline bool VCPUHourHasBeenSet() const { return m_vCPUHourHasBeenSet; } /** *

The aggregated vCPU used per hour from the time job start executing till the * time job is terminated.

*/ inline void SetVCPUHour(double value) { m_vCPUHourHasBeenSet = true; m_vCPUHour = value; } /** *

The aggregated vCPU used per hour from the time job start executing till the * time job is terminated.

*/ inline TotalResourceUtilization& WithVCPUHour(double value) { SetVCPUHour(value); return *this;} /** *

The aggregated memory used per hour from the time job start executing till * the time job is terminated.

*/ inline double GetMemoryGBHour() const{ return m_memoryGBHour; } /** *

The aggregated memory used per hour from the time job start executing till * the time job is terminated.

*/ inline bool MemoryGBHourHasBeenSet() const { return m_memoryGBHourHasBeenSet; } /** *

The aggregated memory used per hour from the time job start executing till * the time job is terminated.

*/ inline void SetMemoryGBHour(double value) { m_memoryGBHourHasBeenSet = true; m_memoryGBHour = value; } /** *

The aggregated memory used per hour from the time job start executing till * the time job is terminated.

*/ inline TotalResourceUtilization& WithMemoryGBHour(double value) { SetMemoryGBHour(value); return *this;} /** *

The aggregated storage used per hour from the time job start executing till * the time job is terminated.

*/ inline double GetStorageGBHour() const{ return m_storageGBHour; } /** *

The aggregated storage used per hour from the time job start executing till * the time job is terminated.

*/ inline bool StorageGBHourHasBeenSet() const { return m_storageGBHourHasBeenSet; } /** *

The aggregated storage used per hour from the time job start executing till * the time job is terminated.

*/ inline void SetStorageGBHour(double value) { m_storageGBHourHasBeenSet = true; m_storageGBHour = value; } /** *

The aggregated storage used per hour from the time job start executing till * the time job is terminated.

*/ inline TotalResourceUtilization& WithStorageGBHour(double value) { SetStorageGBHour(value); return *this;} private: double m_vCPUHour; bool m_vCPUHourHasBeenSet = false; double m_memoryGBHour; bool m_memoryGBHourHasBeenSet = false; double m_storageGBHour; bool m_storageGBHourHasBeenSet = false; }; } // namespace Model } // namespace EMRServerless } // namespace Aws