Class TrafficSelectorPolicy
- java.lang.Object
-
- com.azure.resourcemanager.network.models.TrafficSelectorPolicy
-
public final class TrafficSelectorPolicy extends Object
An traffic selector policy for a virtual network gateway connection.
-
-
Constructor Summary
Constructors Constructor Description TrafficSelectorPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>localAddressRanges()Get the localAddressRanges property: A collection of local address spaces in CIDR format.List<String>remoteAddressRanges()Get the remoteAddressRanges property: A collection of remote address spaces in CIDR format.voidvalidate()Validates the instance.TrafficSelectorPolicywithLocalAddressRanges(List<String> localAddressRanges)Set the localAddressRanges property: A collection of local address spaces in CIDR format.TrafficSelectorPolicywithRemoteAddressRanges(List<String> remoteAddressRanges)Set the remoteAddressRanges property: A collection of remote address spaces in CIDR format.
-
-
-
Method Detail
-
localAddressRanges
public List<String> localAddressRanges()
Get the localAddressRanges property: A collection of local address spaces in CIDR format.- Returns:
- the localAddressRanges value.
-
withLocalAddressRanges
public TrafficSelectorPolicy withLocalAddressRanges(List<String> localAddressRanges)
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
public List<String> remoteAddressRanges()
Get the remoteAddressRanges property: A collection of remote address spaces in CIDR format.- Returns:
- the remoteAddressRanges value.
-
withRemoteAddressRanges
public TrafficSelectorPolicy withRemoteAddressRanges(List<String> remoteAddressRanges)
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.
-
-