Class ConnectivityCheckRequestDestination
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.ConnectivityCheckRequestDestination
-
public final class ConnectivityCheckRequestDestination extends Object
The connectivity check operation destination.
-
-
Constructor Summary
Constructors Constructor Description ConnectivityCheckRequestDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
address()
Get the address property: Destination address.long
port()
Get the port property: Destination port.void
validate()
Validates the instance.ConnectivityCheckRequestDestination
withAddress(String address)
Set the address property: Destination address.ConnectivityCheckRequestDestination
withPort(long port)
Set the port property: Destination port.
-
-
-
Method Detail
-
address
public String address()
Get the address property: Destination address. Can either be an IP address or a FQDN.- Returns:
- the address value.
-
withAddress
public ConnectivityCheckRequestDestination withAddress(String address)
Set the address property: Destination address. Can either be an IP address or a FQDN.- Parameters:
address
- the address value to set.- Returns:
- the ConnectivityCheckRequestDestination object itself.
-
port
public long port()
Get the port property: Destination port.- Returns:
- the port value.
-
withPort
public ConnectivityCheckRequestDestination withPort(long port)
Set the port property: Destination port.- Parameters:
port
- the port value to set.- Returns:
- the ConnectivityCheckRequestDestination object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-