Class NodeProfile

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

public final class NodeProfile extends Object implements com.azure.json.JsonSerializable<NodeProfile>
The node profile.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of NodeProfile class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the count property: The number of virtual machines.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of NodeProfile from the JsonReader.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the type property: The node type.
    void
    Validates the instance.
    Get the vmSize property: The virtual machine SKU.
    withCount(int count)
    Set the count property: The number of virtual machines.
    Set the type property: The node type.
    Set the vmSize property: The virtual machine SKU.

    Methods inherited from class 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

    • NodeProfile

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

    • type

      public String type()
      Get the type property: The node type.
      Returns:
      the type value.
    • withType

      public NodeProfile withType(String type)
      Set the type property: The node type.
      Parameters:
      type - the type value to set.
      Returns:
      the NodeProfile object itself.
    • vmSize

      public String vmSize()
      Get the vmSize property: The virtual machine SKU.
      Returns:
      the vmSize value.
    • withVmSize

      public NodeProfile withVmSize(String vmSize)
      Set the vmSize property: The virtual machine SKU.
      Parameters:
      vmSize - the vmSize value to set.
      Returns:
      the NodeProfile object itself.
    • count

      public int count()
      Get the count property: The number of virtual machines.
      Returns:
      the count value.
    • withCount

      public NodeProfile withCount(int count)
      Set the count property: The number of virtual machines.
      Parameters:
      count - the count value to set.
      Returns:
      the NodeProfile 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<NodeProfile>
      Throws:
      IOException
    • fromJson

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