Class WindowsFirewallRule.Builder
- java.lang.Object
-
- odata.msgraph.client.beta.complex.WindowsFirewallRule.Builder
-
- Enclosing class:
- WindowsFirewallRule
public static final class WindowsFirewallRule.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WindowsFirewallRule.Builderaction(StateManagementSetting action)“The action the rule enforces.WindowsFirewallRulebuild()WindowsFirewallRule.Builderdescription(String description)“The description of the rule.”WindowsFirewallRule.BuilderdisplayName(String displayName)“The display name of the rule.WindowsFirewallRule.BuilderedgeTraversal(StateManagementSetting edgeTraversal)“Indicates whether edge traversal is enabled or disabled for this rule.WindowsFirewallRule.BuilderfilePath(String filePath)“The full file path of an app that's affected by the firewall rule.”WindowsFirewallRule.BuilderinterfaceTypes(WindowsFirewallRuleInterfaceTypes interfaceTypes)“The interface types of the rule.”WindowsFirewallRule.BuilderlocalAddressRanges(String... localAddressRanges)“List of local addresses covered by the rule.WindowsFirewallRule.BuilderlocalAddressRanges(List<String> localAddressRanges)“List of local addresses covered by the rule.WindowsFirewallRule.BuilderlocalAddressRangesNextLink(String localAddressRangesNextLink)“List of local addresses covered by the rule.WindowsFirewallRule.BuilderlocalPortRanges(String... localPortRanges)“List of local port ranges.WindowsFirewallRule.BuilderlocalPortRanges(List<String> localPortRanges)“List of local port ranges.WindowsFirewallRule.BuilderlocalPortRangesNextLink(String localPortRangesNextLink)“List of local port ranges.WindowsFirewallRule.BuilderlocalUserAuthorizations(String localUserAuthorizations)“Specifies the list of authorized local users for the app container.WindowsFirewallRule.BuilderpackageFamilyName(String packageFamilyName)“The package family name of a Microsoft Store application that's affected by the firewall rule.”WindowsFirewallRule.BuilderprofileTypes(WindowsFirewallRuleNetworkProfileTypes profileTypes)“Specifies the profiles to which the rule belongs.WindowsFirewallRule.Builderprotocol(Integer protocol)“0-255 number representing the IP protocol (TCP = 6, UDP = 17).WindowsFirewallRule.BuilderremoteAddressRanges(String... remoteAddressRanges)“List of tokens specifying the remote addresses covered by the rule.WindowsFirewallRule.BuilderremoteAddressRanges(List<String> remoteAddressRanges)“List of tokens specifying the remote addresses covered by the rule.WindowsFirewallRule.BuilderremoteAddressRangesNextLink(String remoteAddressRangesNextLink)“List of tokens specifying the remote addresses covered by the rule.WindowsFirewallRule.BuilderremotePortRanges(String... remotePortRanges)“List of remote port ranges.WindowsFirewallRule.BuilderremotePortRanges(List<String> remotePortRanges)“List of remote port ranges.WindowsFirewallRule.BuilderremotePortRangesNextLink(String remotePortRangesNextLink)“List of remote port ranges.WindowsFirewallRule.BuilderserviceName(String serviceName)“The name used in cases when a service, not an application, is sending or receiving traffic.”WindowsFirewallRule.BuildertrafficDirection(WindowsFirewallRuleTrafficDirectionType trafficDirection)“The traffic direction that the rule is enabled for.
-
-
-
Method Detail
-
action
public WindowsFirewallRule.Builder action(StateManagementSetting action)
“The action the rule enforces. If not specified, the default is Allowed.”- Parameters:
action- value ofactionproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
description
public WindowsFirewallRule.Builder description(String description)
“The description of the rule.”- Parameters:
description- value ofdescriptionproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
displayName
public WindowsFirewallRule.Builder displayName(String displayName)
“The display name of the rule. Does not need to be unique.”- Parameters:
displayName- value ofdisplayNameproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
edgeTraversal
public WindowsFirewallRule.Builder edgeTraversal(StateManagementSetting edgeTraversal)
“Indicates whether edge traversal is enabled or disabled for this rule. The EdgeTraversal setting indicates that specific inbound traffic is allowed to tunnel through NATs and other edge devices using the Teredo tunneling technology . In order for this setting to work correctly, the application or service with the inbound firewall rule needs to support IPv6. The primary application of this setting allows listeners on the host to be globally addressable through a Teredo IPv6 address. New rules have the EdgeTraversal property disabled by default.”- Parameters:
edgeTraversal- value ofedgeTraversalproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
filePath
public WindowsFirewallRule.Builder filePath(String filePath)
“The full file path of an app that's affected by the firewall rule.”- Parameters:
filePath- value offilePathproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
interfaceTypes
public WindowsFirewallRule.Builder interfaceTypes(WindowsFirewallRuleInterfaceTypes interfaceTypes)
“The interface types of the rule.”- Parameters:
interfaceTypes- value ofinterfaceTypesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localAddressRanges
public WindowsFirewallRule.Builder localAddressRanges(List<String> localAddressRanges)
“List of local addresses covered by the rule. Default is any address. Valid tokens include:<ul><li>"*" indicates any local address. If present, this must be the only token included.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>”- Parameters:
localAddressRanges- value oflocalAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localAddressRanges
public WindowsFirewallRule.Builder localAddressRanges(String... localAddressRanges)
“List of local addresses covered by the rule. Default is any address. Valid tokens include:<ul><li>"*" indicates any local address. If present, this must be the only token included.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>”- Parameters:
localAddressRanges- value oflocalAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localAddressRangesNextLink
public WindowsFirewallRule.Builder localAddressRangesNextLink(String localAddressRangesNextLink)
“List of local addresses covered by the rule. Default is any address. Valid tokens include:<ul><li>"*" indicates any local address. If present, this must be the only token included.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>”- Parameters:
localAddressRangesNextLink- value oflocalAddressRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localPortRanges
public WindowsFirewallRule.Builder localPortRanges(List<String> localPortRanges)
“List of local port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.”- Parameters:
localPortRanges- value oflocalPortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localPortRanges
public WindowsFirewallRule.Builder localPortRanges(String... localPortRanges)
“List of local port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.”- Parameters:
localPortRanges- value oflocalPortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localPortRangesNextLink
public WindowsFirewallRule.Builder localPortRangesNextLink(String localPortRangesNextLink)
“List of local port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.”- Parameters:
localPortRangesNextLink- value oflocalPortRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
localUserAuthorizations
public WindowsFirewallRule.Builder localUserAuthorizations(String localUserAuthorizations)
“Specifies the list of authorized local users for the app container. This is a string in Security Descriptor Definition Language (SDDL) format.”- Parameters:
localUserAuthorizations- value oflocalUserAuthorizationsproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
packageFamilyName
public WindowsFirewallRule.Builder packageFamilyName(String packageFamilyName)
“The package family name of a Microsoft Store application that's affected by the firewall rule.”- Parameters:
packageFamilyName- value ofpackageFamilyNameproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
profileTypes
public WindowsFirewallRule.Builder profileTypes(WindowsFirewallRuleNetworkProfileTypes profileTypes)
“Specifies the profiles to which the rule belongs. If not specified, the default is All.”- Parameters:
profileTypes- value ofprofileTypesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
protocol
public WindowsFirewallRule.Builder protocol(Integer protocol)
“0-255 number representing the IP protocol (TCP = 6, UDP = 17). If not specified, the default is All. Valid values 0 to 255”- Parameters:
protocol- value ofprotocolproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remoteAddressRanges
public WindowsFirewallRule.Builder remoteAddressRanges(List<String> remoteAddressRanges)
“List of tokens specifying the remote addresses covered by the rule. Tokens are case insensitive. Default is any address. Valid tokens include:<ul><li>"*" indicates any remote address. If present, this must be the only token included.< /li><li>"Defaultgateway"</li><li>"DHCP"</li><li>"DNS"</li><li>"WINS"</li><li>" Intranet" (supported on Windows versions 1809+)</li><li>"RmtIntranet" (supported on Windows versions 1809+)</li><li>"Internet" (supported on Windows versions 1809+)</li><li>"Ply2Renders" (supported on Windows versions 1809+)</li><li>" LocalSubnet" indicates any local address on the local subnet.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>”- Parameters:
remoteAddressRanges- value ofremoteAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remoteAddressRanges
public WindowsFirewallRule.Builder remoteAddressRanges(String... remoteAddressRanges)
“List of tokens specifying the remote addresses covered by the rule. Tokens are case insensitive. Default is any address. Valid tokens include:<ul><li>"*" indicates any remote address. If present, this must be the only token included.< /li><li>"Defaultgateway"</li><li>"DHCP"</li><li>"DNS"</li><li>"WINS"</li><li>" Intranet" (supported on Windows versions 1809+)</li><li>"RmtIntranet" (supported on Windows versions 1809+)</li><li>"Internet" (supported on Windows versions 1809+)</li><li>"Ply2Renders" (supported on Windows versions 1809+)</li><li>" LocalSubnet" indicates any local address on the local subnet.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>”- Parameters:
remoteAddressRanges- value ofremoteAddressRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remoteAddressRangesNextLink
public WindowsFirewallRule.Builder remoteAddressRangesNextLink(String remoteAddressRangesNextLink)
“List of tokens specifying the remote addresses covered by the rule. Tokens are case insensitive. Default is any address. Valid tokens include:<ul><li>"*" indicates any remote address. If present, this must be the only token included.< /li><li>"Defaultgateway"</li><li>"DHCP"</li><li>"DNS"</li><li>"WINS"</li><li>" Intranet" (supported on Windows versions 1809+)</li><li>"RmtIntranet" (supported on Windows versions 1809+)</li><li>"Internet" (supported on Windows versions 1809+)</li><li>"Ply2Renders" (supported on Windows versions 1809+)</li><li>" LocalSubnet" indicates any local address on the local subnet.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>”- Parameters:
remoteAddressRangesNextLink- value ofremoteAddressRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remotePortRanges
public WindowsFirewallRule.Builder remotePortRanges(List<String> remotePortRanges)
“List of remote port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.”- Parameters:
remotePortRanges- value ofremotePortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remotePortRanges
public WindowsFirewallRule.Builder remotePortRanges(String... remotePortRanges)
“List of remote port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.”- Parameters:
remotePortRanges- value ofremotePortRangesproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
remotePortRangesNextLink
public WindowsFirewallRule.Builder remotePortRangesNextLink(String remotePortRangesNextLink)
“List of remote port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.”- Parameters:
remotePortRangesNextLink- value ofremotePortRanges@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
serviceName
public WindowsFirewallRule.Builder serviceName(String serviceName)
“The name used in cases when a service, not an application, is sending or receiving traffic.”- Parameters:
serviceName- value ofserviceNameproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
trafficDirection
public WindowsFirewallRule.Builder trafficDirection(WindowsFirewallRuleTrafficDirectionType trafficDirection)
“The traffic direction that the rule is enabled for. If not specified, the default is Out.”- Parameters:
trafficDirection- value oftrafficDirectionproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
build
public WindowsFirewallRule build()
-
-