Class SshProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.SshProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SshProfile>
Ssh profile for the cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcount()Get the count property: Number of ssh pods per cluster.static SshProfilefromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vmSize()Get the vmSize property: The virtual machine SKU.withCount(int count) Set the count property: Number of ssh pods per cluster.withVmSize(String vmSize) Set the vmSize property: The virtual machine SKU.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Set the count property: Number of ssh pods per cluster.- Parameters:
count- the count value to set.- Returns:
- the SshProfile object itself.
-
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
-
withVmSize
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SshProfile>- Throws:
IOException
-
fromJson
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.
-