TrafficSelectorPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. TrafficSelectorPolicy
- com.
Implements
public final class TrafficSelectorPolicy
implements JsonSerializable<TrafficSelectorPolicy>
An traffic selector policy for a virtual network gateway connection.
Constructor Summary
Constructor | Description |
---|---|
TrafficSelectorPolicy() |
Creates an instance of Traffic |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Traffic |
fromJson(JsonReader jsonReader)
Reads an instance of Traffic |
List<String> |
localAddressRanges()
Get the local |
List<String> |
remoteAddressRanges()
Get the remote |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Traffic |
withLocalAddressRanges(List<String> localAddressRanges)
Set the local |
Traffic |
withRemoteAddressRanges(List<String> remoteAddressRanges)
Set the remote |
Methods inherited from java.lang.Object
Constructor Details
TrafficSelectorPolicy
public TrafficSelectorPolicy()
Creates an instance of TrafficSelectorPolicy class.
Method Details
fromJson
public static TrafficSelectorPolicy fromJson(JsonReader jsonReader)
Reads an instance of TrafficSelectorPolicy from the JsonReader.
Parameters:
Returns:
Throws:
localAddressRanges
public List
Get the localAddressRanges property: A collection of local address spaces in CIDR format.
Returns:
remoteAddressRanges
public List
Get the remoteAddressRanges property: A collection of remote address spaces in CIDR format.
Returns:
toJson
validate
public void validate()
Validates the instance.
withLocalAddressRanges
public TrafficSelectorPolicy withLocalAddressRanges(List
Set the localAddressRanges property: A collection of local address spaces in CIDR format.
Parameters:
Returns:
withRemoteAddressRanges
public TrafficSelectorPolicy withRemoteAddressRanges(List
Set the remoteAddressRanges property: A collection of remote address spaces in CIDR format.
Parameters:
Returns:
Applies to
Azure SDK for Java