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 Details

    • AvailableWorkloadProfileProperties

      public AvailableWorkloadProfileProperties()
      Creates an instance of AvailableWorkloadProfileProperties class.
  • Method Details

    • category

      public String category()
      Get the category property: Used to categorize workload profiles.
      Returns:
      the category value.
    • withCategory

      public AvailableWorkloadProfileProperties withCategory(String category)
      Set the category property: Used to categorize workload profiles.
      Parameters:
      category - the category value to set.
      Returns:
      the AvailableWorkloadProfileProperties object itself.
    • applicability

      public Applicability applicability()
      Get the applicability property: indicates whether the profile is default for the location.
      Returns:
      the applicability value.
    • withApplicability

      public AvailableWorkloadProfileProperties withApplicability(Applicability applicability)
      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

      public Integer cores()
      Get the cores property: Number of cores in CPU.
      Returns:
      the cores value.
    • withCores

      public AvailableWorkloadProfileProperties withCores(Integer cores)
      Set the cores property: Number of cores in CPU.
      Parameters:
      cores - the cores value to set.
      Returns:
      the AvailableWorkloadProfileProperties object itself.
    • memoryGiB

      public Integer memoryGiB()
      Get the memoryGiB property: Memory in GiB.
      Returns:
      the memoryGiB value.
    • withMemoryGiB

      public AvailableWorkloadProfileProperties withMemoryGiB(Integer memoryGiB)
      Set the memoryGiB property: Memory in GiB.
      Parameters:
      memoryGiB - the memoryGiB value to set.
      Returns:
      the AvailableWorkloadProfileProperties object itself.
    • gpus

      public Integer 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

      public String displayName()
      Get the displayName property: The everyday name of the workload profile.
      Returns:
      the displayName value.
    • withDisplayName

      public AvailableWorkloadProfileProperties withDisplayName(String displayName)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.