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 Details

    • WorkloadProfile

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

    • name

      public String name()
      Get the name property: Workload profile type for the workloads to run on.
      Returns:
      the name value.
    • withName

      public WorkloadProfile withName(String name)
      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

      public String workloadProfileType()
      Get the workloadProfileType property: Workload profile type for the workloads to run on.
      Returns:
      the workloadProfileType value.
    • withWorkloadProfileType

      public WorkloadProfile withWorkloadProfileType(String workloadProfileType)
      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

      public Integer minimumCount()
      Get the minimumCount property: The minimum capacity.
      Returns:
      the minimumCount value.
    • withMinimumCount

      public WorkloadProfile withMinimumCount(Integer minimumCount)
      Set the minimumCount property: The minimum capacity.
      Parameters:
      minimumCount - the minimumCount value to set.
      Returns:
      the WorkloadProfile object itself.
    • maximumCount

      public Integer maximumCount()
      Get the maximumCount property: The maximum capacity.
      Returns:
      the maximumCount value.
    • withMaximumCount

      public WorkloadProfile withMaximumCount(Integer maximumCount)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WorkloadProfile>
      Throws:
      IOException
    • fromJson

      public static WorkloadProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.