Class ConnectivityDestination
java.lang.Object
com.azure.resourcemanager.network.models.ConnectivityDestination
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ConnectivityDestination>
public final class ConnectivityDestination
extends Object
implements com.azure.json.JsonSerializable<ConnectivityDestination>
Parameters that define destination of connection.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ConnectivityDestination class. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Get the address property: The IP address or URI the resource to which a connection attempt will be made.static ConnectivityDestinationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ConnectivityDestination from the JsonReader.port()Get the port property: Port on which check connectivity will be performed.Get the resourceId property: The ID of the resource to which a connection attempt will be made.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAddress(String address) Set the address property: The IP address or URI the resource to which a connection attempt will be made.Set the port property: Port on which check connectivity will be performed.withResourceId(String resourceId) Set the resourceId property: The ID of the resource to which a connection attempt will be made.Methods inherited from class java.lang.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
-
ConnectivityDestination
public ConnectivityDestination()Creates an instance of ConnectivityDestination class.
-
-
Method Details
-
resourceId
Get the resourceId property: The ID of the resource to which a connection attempt will be made.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The ID of the resource to which a connection attempt will be made.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the ConnectivityDestination object itself.
-
address
Get the address property: The IP address or URI the resource to which a connection attempt will be made.- Returns:
- the address value.
-
withAddress
Set the address property: The IP address or URI the resource to which a connection attempt will be made.- Parameters:
address- the address value to set.- Returns:
- the ConnectivityDestination object itself.
-
port
Get the port property: Port on which check connectivity will be performed.- Returns:
- the port value.
-
withPort
Set the port property: Port on which check connectivity will be performed.- Parameters:
port- the port value to set.- Returns:
- the ConnectivityDestination 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<ConnectivityDestination>- Throws:
IOException
-
fromJson
public static ConnectivityDestination fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ConnectivityDestination from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ConnectivityDestination if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ConnectivityDestination.
-