Class ConnectivitySource
- java.lang.Object
-
- com.azure.resourcemanager.network.models.ConnectivitySource
-
public final class ConnectivitySource extends Object
Parameters that define the source of the connection.
-
-
Constructor Summary
Constructors Constructor Description ConnectivitySource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integerport()Get the port property: The source port from which a connectivity check will be performed.StringresourceId()Get the resourceId property: The ID of the resource from which a connectivity check will be initiated.voidvalidate()Validates the instance.ConnectivitySourcewithPort(Integer port)Set the port property: The source port from which a connectivity check will be performed.ConnectivitySourcewithResourceId(String resourceId)Set the resourceId property: The ID of the resource from which a connectivity check will be initiated.
-
-
-
Method Detail
-
resourceId
public String resourceId()
Get the resourceId property: The ID of the resource from which a connectivity check will be initiated.- Returns:
- the resourceId value.
-
withResourceId
public ConnectivitySource withResourceId(String resourceId)
Set the resourceId property: The ID of the resource from which a connectivity check will be initiated.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the ConnectivitySource object itself.
-
port
public Integer port()
Get the port property: The source port from which a connectivity check will be performed.- Returns:
- the port value.
-
withPort
public ConnectivitySource withPort(Integer port)
Set the port property: The source port from which a connectivity check will be performed.- Parameters:
port- the port value to set.- Returns:
- the ConnectivitySource object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-