Class SshProfile

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

public final class SshProfile extends Object implements com.azure.json.JsonSerializable<SshProfile>
Ssh profile for the cluster.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    int
    Get the count property: Number of ssh pods per cluster.
    static SshProfile
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SshProfile from the JsonReader.
    Get the podPrefix property: Prefix of the pod names.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the vmSize property: The virtual machine SKU.
    withCount(int count)
    Set the count property: Number of ssh pods per cluster.
    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

    • SshProfile

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

    • count

      public int count()
      Get the count property: Number of ssh pods per cluster.
      Returns:
      the count value.
    • withCount

      public SshProfile withCount(int count)
      Set the count property: Number of ssh pods per cluster.
      Parameters:
      count - the count value to set.
      Returns:
      the SshProfile object itself.
    • podPrefix

      public String podPrefix()
      Get the podPrefix property: Prefix of the pod names. Pod number will be appended to the prefix. The ingress URLs for the pods will be available at <clusterFqdn>/<sshBasePath>/<prefix>-<number>.
      Returns:
      the podPrefix value.
    • vmSize

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

      public SshProfile withVmSize(String vmSize)
      Set the vmSize property: The virtual machine SKU.
      Parameters:
      vmSize - the vmSize value to set.
      Returns:
      the SshProfile 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<SshProfile>
      Throws:
      IOException
    • fromJson

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