Class TrafficSelectorPolicy
java.lang.Object
com.azure.resourcemanager.network.models.TrafficSelectorPolicy
An traffic selector policy for a virtual network gateway connection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the localAddressRanges property: A collection of local address spaces in CIDR format.Get the remoteAddressRanges property: A collection of remote address spaces in CIDR format.voidvalidate()Validates the instance.withLocalAddressRanges(List<String> localAddressRanges) Set the localAddressRanges property: A collection of local address spaces in CIDR format.withRemoteAddressRanges(List<String> remoteAddressRanges) Set the remoteAddressRanges property: A collection of remote address spaces in CIDR format.
-
Constructor Details
-
TrafficSelectorPolicy
public TrafficSelectorPolicy()Creates an instance of TrafficSelectorPolicy class.
-
-
Method Details
-
localAddressRanges
Get the localAddressRanges property: A collection of local address spaces in CIDR format.- Returns:
- the localAddressRanges value.
-
withLocalAddressRanges
Set the localAddressRanges property: A collection of local address spaces in CIDR format.- Parameters:
localAddressRanges- the localAddressRanges value to set.- Returns:
- the TrafficSelectorPolicy object itself.
-
remoteAddressRanges
Get the remoteAddressRanges property: A collection of remote address spaces in CIDR format.- Returns:
- the remoteAddressRanges value.
-
withRemoteAddressRanges
Set the remoteAddressRanges property: A collection of remote address spaces in CIDR format.- Parameters:
remoteAddressRanges- the remoteAddressRanges value to set.- Returns:
- the TrafficSelectorPolicy object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-