Class WorkloadProfile
java.lang.Object
com.azure.resourcemanager.appcontainers.models.WorkloadProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkloadProfile>
public final class WorkloadProfile
extends Object
implements com.azure.json.JsonSerializable<WorkloadProfile>
Workload profile to scope container app execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkloadProfile
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WorkloadProfile from the JsonReader.Get the maximumCount property: The maximum capacity.Get the minimumCount property: The minimum capacity.name()
Get the name property: Workload profile type for the workloads to run on.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withMaximumCount
(Integer maximumCount) Set the maximumCount property: The maximum capacity.withMinimumCount
(Integer minimumCount) Set the minimumCount property: The minimum capacity.Set the name property: Workload profile type for the workloads to run on.withWorkloadProfileType
(String workloadProfileType) Set the workloadProfileType property: Workload profile type for the workloads to run on.Get the workloadProfileType property: Workload profile type for the workloads to run on.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WorkloadProfile
public WorkloadProfile()Creates an instance of WorkloadProfile class.
-
-
Method Details
-
name
Get the name property: Workload profile type for the workloads to run on.- Returns:
- the name value.
-
withName
Set the name property: Workload profile type for the workloads to run on.- Parameters:
name
- the name value to set.- Returns:
- the WorkloadProfile object itself.
-
workloadProfileType
Get the workloadProfileType property: Workload profile type for the workloads to run on.- Returns:
- the workloadProfileType value.
-
withWorkloadProfileType
Set the workloadProfileType property: Workload profile type for the workloads to run on.- Parameters:
workloadProfileType
- the workloadProfileType value to set.- Returns:
- the WorkloadProfile object itself.
-
minimumCount
Get the minimumCount property: The minimum capacity.- Returns:
- the minimumCount value.
-
withMinimumCount
Set the minimumCount property: The minimum capacity.- Parameters:
minimumCount
- the minimumCount value to set.- Returns:
- the WorkloadProfile object itself.
-
maximumCount
Get the maximumCount property: The maximum capacity.- Returns:
- the maximumCount value.
-
withMaximumCount
Set the maximumCount property: The maximum capacity.- Parameters:
maximumCount
- the maximumCount value to set.- Returns:
- the WorkloadProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<WorkloadProfile>
- Throws:
IOException
-
fromJson
Reads an instance of WorkloadProfile from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WorkloadProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the WorkloadProfile.
-