Class ConnectivityDestination
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectivityDestination
-
public final class ConnectivityDestination extends Object
Parameters that define destination of connection.
-
-
Constructor Summary
Constructors Constructor Description ConnectivityDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaddress()Get the address property: The IP address or URI the resource to which a connection attempt will be made.Integerport()Get the port property: Port on which check connectivity will be performed.StringresourceId()Get the resourceId property: The ID of the resource to which a connection attempt will be made.voidvalidate()Validates the instance.ConnectivityDestinationwithAddress(String address)Set the address property: The IP address or URI the resource to which a connection attempt will be made.ConnectivityDestinationwithPort(Integer port)Set the port property: Port on which check connectivity will be performed.ConnectivityDestinationwithResourceId(String resourceId)Set the resourceId property: The ID of the resource to which a connection attempt will be made.
-
-
-
Method Detail
-
resourceId
public String resourceId()
Get the resourceId property: The ID of the resource to which a connection attempt will be made.- Returns:
- the resourceId value.
-
withResourceId
public ConnectivityDestination withResourceId(String resourceId)
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
public String 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
public ConnectivityDestination withAddress(String address)
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
public Integer port()
Get the port property: Port on which check connectivity will be performed.- Returns:
- the port value.
-
withPort
public ConnectivityDestination withPort(Integer port)
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.
-
-