Class VpnTrafficRule.Builder
- java.lang.Object
-
- odata.msgraph.client.beta.complex.VpnTrafficRule.Builder
-
- Enclosing class:
- VpnTrafficRule
public static final class VpnTrafficRule.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpnTrafficRule.BuilderappId(String appId)“App identifier, if this traffic rule is triggered by an app.”VpnTrafficRule.BuilderappType(VpnTrafficRuleAppType appType)“App type, if this traffic rule is triggered by an app.”VpnTrafficRulebuild()VpnTrafficRule.Builderclaims(String claims)“Claims associated with this traffic rule.”VpnTrafficRule.BuilderlocalAddressRanges(List<IPv4Range> localAddressRanges)“Local address range.VpnTrafficRule.BuilderlocalAddressRanges(IPv4Range... localAddressRanges)“Local address range.VpnTrafficRule.BuilderlocalAddressRangesNextLink(String localAddressRangesNextLink)“Local address range.VpnTrafficRule.BuilderlocalPortRanges(List<NumberRange> localPortRanges)“Local port range can be set only when protocol is either TCP or UDP (6 or 17).VpnTrafficRule.BuilderlocalPortRanges(NumberRange... localPortRanges)“Local port range can be set only when protocol is either TCP or UDP (6 or 17).VpnTrafficRule.BuilderlocalPortRangesNextLink(String localPortRangesNextLink)“Local port range can be set only when protocol is either TCP or UDP (6 or 17).VpnTrafficRule.Buildername(String name)“Name.”VpnTrafficRule.Builderprotocols(Integer protocols)“Protocols (0-255).VpnTrafficRule.BuilderremoteAddressRanges(List<IPv4Range> remoteAddressRanges)“Remote address range.VpnTrafficRule.BuilderremoteAddressRanges(IPv4Range... remoteAddressRanges)“Remote address range.VpnTrafficRule.BuilderremoteAddressRangesNextLink(String remoteAddressRangesNextLink)“Remote address range.VpnTrafficRule.BuilderremotePortRanges(List<NumberRange> remotePortRanges)“Remote port range can be set only when protocol is either TCP or UDP (6 or 17).VpnTrafficRule.BuilderremotePortRanges(NumberRange... remotePortRanges)“Remote port range can be set only when protocol is either TCP or UDP (6 or 17).VpnTrafficRule.BuilderremotePortRangesNextLink(String remotePortRangesNextLink)“Remote port range can be set only when protocol is either TCP or UDP (6 or 17).VpnTrafficRule.BuilderroutingPolicyType(VpnTrafficRuleRoutingPolicyType routingPolicyType)“When app triggered, indicates whether to enable split tunneling along this route .”
-
-
-
Method Detail
-
appId
public VpnTrafficRule.Builder appId(String appId)
“App identifier, if this traffic rule is triggered by an app.”- Parameters:
appId- value ofappIdproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
appType
public VpnTrafficRule.Builder appType(VpnTrafficRuleAppType appType)
“App type, if this traffic rule is triggered by an app.”- Parameters:
appType- value ofappTypeproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
claims
public VpnTrafficRule.Builder claims(String claims)
“Claims associated with this traffic rule.”- Parameters:
claims- value ofclaimsproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localAddressRanges
public VpnTrafficRule.Builder localAddressRanges(List<IPv4Range> localAddressRanges)
“Local address range. This collection can contain a maximum of 500 elements.”- Parameters:
localAddressRanges- value oflocalAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localAddressRanges
public VpnTrafficRule.Builder localAddressRanges(IPv4Range... localAddressRanges)
“Local address range. This collection can contain a maximum of 500 elements.”- Parameters:
localAddressRanges- value oflocalAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localAddressRangesNextLink
public VpnTrafficRule.Builder localAddressRangesNextLink(String localAddressRangesNextLink)
“Local address range. This collection can contain a maximum of 500 elements.”- Parameters:
localAddressRangesNextLink- value oflocalAddressRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localPortRanges
public VpnTrafficRule.Builder localPortRanges(List<NumberRange> localPortRanges)
“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:
localPortRanges- value oflocalPortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localPortRanges
public VpnTrafficRule.Builder localPortRanges(NumberRange... localPortRanges)
“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:
localPortRanges- value oflocalPortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localPortRangesNextLink
public VpnTrafficRule.Builder localPortRangesNextLink(String localPortRangesNextLink)
“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:
localPortRangesNextLink- value oflocalPortRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
name
public VpnTrafficRule.Builder name(String name)
“Name.”- Parameters:
name- value ofnameproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
protocols
public VpnTrafficRule.Builder protocols(Integer protocols)
“Protocols (0-255). Valid values 0 to 255”- Parameters:
protocols- value ofprotocolsproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remoteAddressRanges
public VpnTrafficRule.Builder remoteAddressRanges(List<IPv4Range> remoteAddressRanges)
“Remote address range. This collection can contain a maximum of 500 elements.”- Parameters:
remoteAddressRanges- value ofremoteAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remoteAddressRanges
public VpnTrafficRule.Builder remoteAddressRanges(IPv4Range... remoteAddressRanges)
“Remote address range. This collection can contain a maximum of 500 elements.”- Parameters:
remoteAddressRanges- value ofremoteAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remoteAddressRangesNextLink
public VpnTrafficRule.Builder remoteAddressRangesNextLink(String remoteAddressRangesNextLink)
“Remote address range. This collection can contain a maximum of 500 elements.”- Parameters:
remoteAddressRangesNextLink- value ofremoteAddressRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remotePortRanges
public VpnTrafficRule.Builder remotePortRanges(List<NumberRange> remotePortRanges)
“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:
remotePortRanges- value ofremotePortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remotePortRanges
public VpnTrafficRule.Builder remotePortRanges(NumberRange... remotePortRanges)
“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:
remotePortRanges- value ofremotePortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remotePortRangesNextLink
public VpnTrafficRule.Builder remotePortRangesNextLink(String remotePortRangesNextLink)
“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:
remotePortRangesNextLink- value ofremotePortRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
routingPolicyType
public VpnTrafficRule.Builder routingPolicyType(VpnTrafficRuleRoutingPolicyType routingPolicyType)
“When app triggered, indicates whether to enable split tunneling along this route .”- Parameters:
routingPolicyType- value ofroutingPolicyTypeproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
build
public VpnTrafficRule build()
-
-