Class CPUUsage
java.lang.Object
io.github.alersrt.pod4j.openapi.model.CPUUsage
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CPUUsage
extends Object
implements Serializable
CPUUsage
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CPUUsageCreate an instance of CPUUsage given an JSON stringGet idlePercentGet systemPercentGet userPercentinthashCode()idlePercent(Double idlePercent) voidsetIdlePercent(Double idlePercent) voidsetSystemPercent(Double systemPercent) voidsetUserPercent(Double userPercent) systemPercent(Double systemPercent) toJson()Convert an instance of CPUUsage to an JSON stringtoString()userPercent(Double userPercent) static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_IDLE_PERCENT
- See Also:
-
SERIALIZED_NAME_SYSTEM_PERCENT
- See Also:
-
SERIALIZED_NAME_USER_PERCENT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CPUUsage
public CPUUsage()
-
-
Method Details
-
idlePercent
-
getIdlePercent
Get idlePercent- Returns:
- idlePercent
-
setIdlePercent
-
systemPercent
-
getSystemPercent
Get systemPercent- Returns:
- systemPercent
-
setSystemPercent
-
userPercent
-
getUserPercent
Get userPercent- Returns:
- userPercent
-
setUserPercent
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CPUUsage
-
fromJson
Create an instance of CPUUsage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CPUUsage
- Throws:
IOException- if the JSON string is invalid with respect to CPUUsage
-
toJson
Convert an instance of CPUUsage to an JSON string- Returns:
- JSON string
-