public class VpnTrafficRule extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
VpnTrafficRule.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
appId |
protected VpnTrafficRuleAppType |
appType |
protected String |
claims |
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected List<IPv4Range> |
localAddressRanges |
protected String |
localAddressRangesNextLink |
protected List<NumberRange> |
localPortRanges |
protected String |
localPortRangesNextLink |
protected String |
name |
protected String |
odataType |
protected Integer |
protocols |
protected List<IPv4Range> |
remoteAddressRanges |
protected String |
remoteAddressRangesNextLink |
protected List<NumberRange> |
remotePortRanges |
protected String |
remotePortRangesNextLink |
protected VpnTrafficRuleRoutingPolicyType |
routingPolicyType |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
| Modifier | Constructor and Description |
|---|---|
protected |
VpnTrafficRule() |
| Modifier and Type | Method and Description |
|---|---|
static VpnTrafficRule.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<String> |
getAppId()
“App identifier, if this traffic rule is triggered by an app.”
|
Optional<VpnTrafficRuleAppType> |
getAppType()
“App type, if this traffic rule is triggered by an app.”
|
Optional<String> |
getClaims()
“Claims associated with this traffic rule.”
|
com.github.davidmoten.odata.client.CollectionPage<IPv4Range> |
getLocalAddressRanges()
“Local address range.
|
com.github.davidmoten.odata.client.CollectionPage<IPv4Range> |
getLocalAddressRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Local address range.
|
com.github.davidmoten.odata.client.CollectionPage<NumberRange> |
getLocalPortRanges()
“Local port range can be set only when protocol is either TCP or UDP (6 or 17).
|
com.github.davidmoten.odata.client.CollectionPage<NumberRange> |
getLocalPortRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Local port range can be set only when protocol is either TCP or UDP (6 or 17).
|
Optional<String> |
getName()
“Name.”
|
Optional<Integer> |
getProtocols()
“Protocols (0-255).
|
com.github.davidmoten.odata.client.CollectionPage<IPv4Range> |
getRemoteAddressRanges()
“Remote address range.
|
com.github.davidmoten.odata.client.CollectionPage<IPv4Range> |
getRemoteAddressRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Remote address range.
|
com.github.davidmoten.odata.client.CollectionPage<NumberRange> |
getRemotePortRanges()
“Remote port range can be set only when protocol is either TCP or UDP (6 or 17).
|
com.github.davidmoten.odata.client.CollectionPage<NumberRange> |
getRemotePortRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Remote port range can be set only when protocol is either TCP or UDP (6 or 17).
|
Optional<VpnTrafficRuleRoutingPolicyType> |
getRoutingPolicyType()
“When app triggered, indicates whether to enable split tunneling along this route
.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
VpnTrafficRule |
withAppId(String appId)
Returns an immutable copy of
this with just the appId field
changed. |
VpnTrafficRule |
withAppType(VpnTrafficRuleAppType appType)
Returns an immutable copy of
this with just the appType field
changed. |
VpnTrafficRule |
withClaims(String claims)
Returns an immutable copy of
this with just the claims field
changed. |
VpnTrafficRule |
withName(String name)
Returns an immutable copy of
this with just the name field
changed. |
VpnTrafficRule |
withProtocols(Integer protocols)
Returns an immutable copy of
this with just the protocols field
changed. |
VpnTrafficRule |
withRoutingPolicyType(VpnTrafficRuleRoutingPolicyType routingPolicyType)
Returns an immutable copy of
this with just the routingPolicyType
field changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected String name
protected Integer protocols
protected List<NumberRange> localPortRanges
protected String localPortRangesNextLink
protected List<NumberRange> remotePortRanges
protected String remotePortRangesNextLink
protected String localAddressRangesNextLink
protected String remoteAddressRangesNextLink
protected String appId
protected VpnTrafficRuleAppType appType
protected VpnTrafficRuleRoutingPolicyType routingPolicyType
protected String claims
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic VpnTrafficRule withName(String name)
this with just the name field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Name.”
name - new value of name field (as defined in service metadata)this with just the name field changedpublic Optional<Integer> getProtocols()
public VpnTrafficRule withProtocols(Integer protocols)
this with just the protocols field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Protocols (0-255). Valid values 0 to 255”
protocols - new value of protocols field (as defined in service metadata)this with just the protocols field changedpublic com.github.davidmoten.odata.client.CollectionPage<NumberRange> getLocalPortRanges()
public com.github.davidmoten.odata.client.CollectionPage<NumberRange> getLocalPortRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
public com.github.davidmoten.odata.client.CollectionPage<NumberRange> getRemotePortRanges()
public com.github.davidmoten.odata.client.CollectionPage<NumberRange> getRemotePortRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getLocalAddressRanges()
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getLocalAddressRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getRemoteAddressRanges()
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getRemoteAddressRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
public Optional<String> getAppId()
public VpnTrafficRule withAppId(String appId)
this with just the appId field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“App identifier, if this traffic rule is triggered by an app.”
appId - new value of appId field (as defined in service metadata)this with just the appId field changedpublic Optional<VpnTrafficRuleAppType> getAppType()
public VpnTrafficRule withAppType(VpnTrafficRuleAppType appType)
this with just the appType field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“App type, if this traffic rule is triggered by an app.”
appType - new value of appType field (as defined in service metadata)this with just the appType field changedpublic Optional<VpnTrafficRuleRoutingPolicyType> getRoutingPolicyType()
public VpnTrafficRule withRoutingPolicyType(VpnTrafficRuleRoutingPolicyType routingPolicyType)
this with just the routingPolicyType
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“When app triggered, indicates whether to enable split tunneling along this route .”
routingPolicyType - new value of routingPolicyType field (as defined in service metadata)this with just the routingPolicyType field changedpublic Optional<String> getClaims()
public VpnTrafficRule withClaims(String claims)
this with just the claims field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Claims associated with this traffic rule.”
claims - new value of claims field (as defined in service metadata)this with just the claims field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static VpnTrafficRule.Builder builder()
Copyright © 2018–2020. All rights reserved.