Class VpnTrafficRule
- java.lang.Object
-
- odata.msgraph.client.beta.complex.VpnTrafficRule
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class VpnTrafficRule extends Object implements com.github.davidmoten.odata.client.ODataType
“VPN Traffic Rule definition.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVpnTrafficRule.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringappIdprotected VpnTrafficRuleAppTypeappTypeprotected Stringclaimsprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected List<IPv4Range>localAddressRangesprotected StringlocalAddressRangesNextLinkprotected List<NumberRange>localPortRangesprotected StringlocalPortRangesNextLinkprotected Stringnameprotected StringodataTypeprotected Integerprotocolsprotected List<IPv4Range>remoteAddressRangesprotected StringremoteAddressRangesNextLinkprotected List<NumberRange>remotePortRangesprotected StringremotePortRangesNextLinkprotected VpnTrafficRuleRoutingPolicyTyperoutingPolicyTypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedVpnTrafficRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VpnTrafficRule.Builderbuilder()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.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()VpnTrafficRulewithAppId(String appId)Returns an immutable copy ofthiswith just theappIdfield changed.VpnTrafficRulewithAppType(VpnTrafficRuleAppType appType)Returns an immutable copy ofthiswith just theappTypefield changed.VpnTrafficRulewithClaims(String claims)Returns an immutable copy ofthiswith just theclaimsfield changed.VpnTrafficRulewithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.VpnTrafficRulewithProtocols(Integer protocols)Returns an immutable copy ofthiswith just theprotocolsfield changed.VpnTrafficRulewithRoutingPolicyType(VpnTrafficRuleRoutingPolicyType routingPolicyType)Returns an immutable copy ofthiswith just theroutingPolicyTypefield changed.VpnTrafficRulewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
appId
protected String appId
-
appType
protected VpnTrafficRuleAppType appType
-
claims
protected String claims
-
localAddressRangesNextLink
protected String localAddressRangesNextLink
-
localPortRanges
protected List<NumberRange> localPortRanges
-
localPortRangesNextLink
protected String localPortRangesNextLink
-
name
protected String name
-
protocols
protected Integer protocols
-
remoteAddressRangesNextLink
protected String remoteAddressRangesNextLink
-
remotePortRanges
protected List<NumberRange> remotePortRanges
-
remotePortRangesNextLink
protected String remotePortRangesNextLink
-
routingPolicyType
protected VpnTrafficRuleRoutingPolicyType routingPolicyType
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAppId
public Optional<String> getAppId()
“App identifier, if this traffic rule is triggered by an app.”- Returns:
- property appId
-
withAppId
public VpnTrafficRule withAppId(String appId)
Returns an immutable copy ofthiswith just theappIdfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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.”
- Parameters:
appId- new value ofappIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappIdfield changed
-
getAppType
public Optional<VpnTrafficRuleAppType> getAppType()
“App type, if this traffic rule is triggered by an app.”- Returns:
- property appType
-
withAppType
public VpnTrafficRule withAppType(VpnTrafficRuleAppType appType)
Returns an immutable copy ofthiswith just theappTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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.”
- Parameters:
appType- new value ofappTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappTypefield changed
-
getClaims
public Optional<String> getClaims()
“Claims associated with this traffic rule.”- Returns:
- property claims
-
withClaims
public VpnTrafficRule withClaims(String claims)
Returns an immutable copy ofthiswith just theclaimsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Claims associated with this traffic rule.”
- Parameters:
claims- new value ofclaimsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theclaimsfield changed
-
getLocalAddressRanges
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getLocalAddressRanges()
“Local address range. This collection can contain a maximum of 500 elements.”- Returns:
- property localAddressRanges
-
getLocalAddressRanges
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getLocalAddressRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Local address range. This collection can contain a maximum of 500 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property localAddressRanges
-
getLocalPortRanges
public 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). This collection can contain a maximum of 500 elements.”- Returns:
- property localPortRanges
-
getLocalPortRanges
public 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). This collection can contain a maximum of 500 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property localPortRanges
-
withName
public VpnTrafficRule withName(String name)
Returns an immutable copy ofthiswith just thenamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Name.”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getProtocols
public Optional<Integer> getProtocols()
“Protocols (0-255). Valid values 0 to 255”- Returns:
- property protocols
-
withProtocols
public VpnTrafficRule withProtocols(Integer protocols)
Returns an immutable copy ofthiswith just theprotocolsfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Protocols (0-255). Valid values 0 to 255”
- Parameters:
protocols- new value ofprotocolsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theprotocolsfield changed
-
getRemoteAddressRanges
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getRemoteAddressRanges()
“Remote address range. This collection can contain a maximum of 500 elements.”- Returns:
- property remoteAddressRanges
-
getRemoteAddressRanges
public com.github.davidmoten.odata.client.CollectionPage<IPv4Range> getRemoteAddressRanges(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Remote address range. This collection can contain a maximum of 500 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property remoteAddressRanges
-
getRemotePortRanges
public 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). This collection can contain a maximum of 500 elements.”- Returns:
- property remotePortRanges
-
getRemotePortRanges
public 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). This collection can contain a maximum of 500 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property remotePortRanges
-
getRoutingPolicyType
public Optional<VpnTrafficRuleRoutingPolicyType> getRoutingPolicyType()
“When app triggered, indicates whether to enable split tunneling along this route .”- Returns:
- property routingPolicyType
-
withRoutingPolicyType
public VpnTrafficRule withRoutingPolicyType(VpnTrafficRuleRoutingPolicyType routingPolicyType)
Returns an immutable copy ofthiswith just theroutingPolicyTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. 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 .”
- Parameters:
routingPolicyType- new value ofroutingPolicyTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theroutingPolicyTypefield changed
-
withUnmappedField
public VpnTrafficRule withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static VpnTrafficRule.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-