Class AvailableWorkloadProfileProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.models.AvailableWorkloadProfileProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AvailableWorkloadProfileProperties>
public final class AvailableWorkloadProfileProperties
extends Object
implements com.azure.json.JsonSerializable<AvailableWorkloadProfileProperties>
Revision resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AvailableWorkloadProfileProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the applicability property: indicates whether the profile is default for the location.category()
Get the category property: Used to categorize workload profiles.cores()
Get the cores property: Number of cores in CPU.Get the displayName property: The everyday name of the workload profile.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AvailableWorkloadProfileProperties from the JsonReader.gpus()
Get the gpus property: Number of GPUs.Get the memoryGiB property: Memory in GiB.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withApplicability
(Applicability applicability) Set the applicability property: indicates whether the profile is default for the location.withCategory
(String category) Set the category property: Used to categorize workload profiles.Set the cores property: Number of cores in CPU.withDisplayName
(String displayName) Set the displayName property: The everyday name of the workload profile.Set the gpus property: Number of GPUs.withMemoryGiB
(Integer memoryGiB) Set the memoryGiB property: Memory in GiB.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
-
AvailableWorkloadProfileProperties
public AvailableWorkloadProfileProperties()Creates an instance of AvailableWorkloadProfileProperties class.
-
-
Method Details
-
category
Get the category property: Used to categorize workload profiles.- Returns:
- the category value.
-
withCategory
Set the category property: Used to categorize workload profiles.- Parameters:
category
- the category value to set.- Returns:
- the AvailableWorkloadProfileProperties object itself.
-
applicability
Get the applicability property: indicates whether the profile is default for the location.- Returns:
- the applicability value.
-
withApplicability
Set the applicability property: indicates whether the profile is default for the location.- Parameters:
applicability
- the applicability value to set.- Returns:
- the AvailableWorkloadProfileProperties object itself.
-
cores
Get the cores property: Number of cores in CPU.- Returns:
- the cores value.
-
withCores
Set the cores property: Number of cores in CPU.- Parameters:
cores
- the cores value to set.- Returns:
- the AvailableWorkloadProfileProperties object itself.
-
memoryGiB
Get the memoryGiB property: Memory in GiB.- Returns:
- the memoryGiB value.
-
withMemoryGiB
Set the memoryGiB property: Memory in GiB.- Parameters:
memoryGiB
- the memoryGiB value to set.- Returns:
- the AvailableWorkloadProfileProperties object itself.
-
gpus
Get the gpus property: Number of GPUs.- Returns:
- the gpus value.
-
withGpus
Set the gpus property: Number of GPUs.- Parameters:
gpus
- the gpus value to set.- Returns:
- the AvailableWorkloadProfileProperties object itself.
-
displayName
Get the displayName property: The everyday name of the workload profile.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The everyday name of the workload profile.- Parameters:
displayName
- the displayName value to set.- Returns:
- the AvailableWorkloadProfileProperties 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<AvailableWorkloadProfileProperties>
- Throws:
IOException
-
fromJson
public static AvailableWorkloadProfileProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AvailableWorkloadProfileProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AvailableWorkloadProfileProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the AvailableWorkloadProfileProperties.
-