Class SshConnectivityEndpoint
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.SshConnectivityEndpoint
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SshConnectivityEndpoint>
public final class SshConnectivityEndpoint
extends Object
implements com.azure.json.JsonSerializable<SshConnectivityEndpoint>
SSH connectivity endpoint details.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SshConnectivityEndpoint class. -
Method Summary
Modifier and TypeMethodDescriptionendpoint()Get the endpoint property: SSH connectivity endpoint.static SshConnectivityEndpointfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SshConnectivityEndpoint from the JsonReader.Get the privateSshEndpoint property: Private SSH connectivity endpoint.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndpoint(String endpoint) Set the endpoint property: SSH connectivity endpoint.withPrivateSshEndpoint(String privateSshEndpoint) Set the privateSshEndpoint property: Private SSH connectivity endpoint.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
-
SshConnectivityEndpoint
public SshConnectivityEndpoint()Creates an instance of SshConnectivityEndpoint class.
-
-
Method Details
-
endpoint
Get the endpoint property: SSH connectivity endpoint.- Returns:
- the endpoint value.
-
withEndpoint
Set the endpoint property: SSH connectivity endpoint.- Parameters:
endpoint- the endpoint value to set.- Returns:
- the SshConnectivityEndpoint object itself.
-
privateSshEndpoint
Get the privateSshEndpoint property: Private SSH connectivity endpoint. This property will only be returned when enableInternalIngress is true.- Returns:
- the privateSshEndpoint value.
-
withPrivateSshEndpoint
Set the privateSshEndpoint property: Private SSH connectivity endpoint. This property will only be returned when enableInternalIngress is true.- Parameters:
privateSshEndpoint- the privateSshEndpoint value to set.- Returns:
- the SshConnectivityEndpoint 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<SshConnectivityEndpoint>- Throws:
IOException
-
fromJson
public static SshConnectivityEndpoint fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SshConnectivityEndpoint from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SshConnectivityEndpoint 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 SshConnectivityEndpoint.
-