Class ConnectivitySource
java.lang.Object
com.azure.resourcemanager.network.models.ConnectivitySource
Parameters that define the source of the connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionport()Get the port property: The source port from which a connectivity check will be performed.Get the resourceId property: The ID of the resource from which a connectivity check will be initiated.voidvalidate()Validates the instance.Set the port property: The source port from which a connectivity check will be performed.withResourceId(String resourceId) Set the resourceId property: The ID of the resource from which a connectivity check will be initiated.
-
Constructor Details
-
ConnectivitySource
public ConnectivitySource()Creates an instance of ConnectivitySource class.
-
-
Method Details
-
resourceId
Get the resourceId property: The ID of the resource from which a connectivity check will be initiated.- Returns:
- the resourceId value.
-
withResourceId
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
Get the port property: The source port from which a connectivity check will be performed.- Returns:
- the port value.
-
withPort
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.
-