Class ComputeProfile

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ComputeProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeProfile>

public final class ComputeProfile extends Object implements com.azure.json.JsonSerializable<ComputeProfile>
The compute profile.
  • Constructor Details

    • ComputeProfile

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

    • nodes

      public List<NodeProfile> nodes()
      Get the nodes property: The nodes definitions.
      Returns:
      the nodes value.
    • withNodes

      public ComputeProfile withNodes(List<NodeProfile> nodes)
      Set the nodes property: The nodes definitions.
      Parameters:
      nodes - the nodes value to set.
      Returns:
      the ComputeProfile object itself.
    • availabilityZones

      public List<String> availabilityZones()
      Get the availabilityZones property: The list of Availability zones to use for AKS VMSS nodes.
      Returns:
      the availabilityZones value.
    • withAvailabilityZones

      public ComputeProfile withAvailabilityZones(List<String> availabilityZones)
      Set the availabilityZones property: The list of Availability zones to use for AKS VMSS nodes.
      Parameters:
      availabilityZones - the availabilityZones value to set.
      Returns:
      the ComputeProfile 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<ComputeProfile>
      Throws:
      IOException
    • fromJson

      public static ComputeProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ComputeProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ComputeProfile 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 ComputeProfile.