public class WindowsFirewallRule extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
WindowsFirewallRule.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
WindowsFirewallRule() |
| Modifier and Type | Method and Description |
|---|---|
static WindowsFirewallRule.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<StateManagementSetting> |
getAction()
“The action the rule enforces.
|
Optional<String> |
getDescription()
“The description of the rule.”
|
Optional<String> |
getDisplayName()
“The display name of the rule.
|
Optional<StateManagementSetting> |
getEdgeTraversal()
“Indicates whether edge traversal is enabled or disabled for this rule.
|
Optional<String> |
getFilePath()
“The full file path of an app that's affected by the firewall rule.”
|
Optional<WindowsFirewallRuleInterfaceTypes> |
getInterfaceTypes()
“The interface types of the rule.”
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getLocalAddressRanges()
“List of local addresses covered by the rule.
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getLocalPortRanges()
“List of local port ranges.
|
Optional<String> |
getLocalUserAuthorizations()
“Specifies the list of authorized local users for the app container.
|
Optional<String> |
getPackageFamilyName()
“The package family name of a Microsoft Store application that's affected by the
firewall rule.”
|
Optional<WindowsFirewallRuleNetworkProfileTypes> |
getProfileTypes()
“Specifies the profiles to which the rule belongs.
|
Optional<Integer> |
getProtocol()
“0-255 number representing the IP protocol (TCP = 6, UDP = 17).
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getRemoteAddressRanges()
“List of tokens specifying the remote addresses covered by the rule.
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getRemotePortRanges()
“List of remote port ranges.
|
Optional<String> |
getServiceName()
“The name used in cases when a service, not an application, is sending or
receiving traffic.”
|
Optional<WindowsFirewallRuleTrafficDirectionType> |
getTrafficDirection()
“The traffic direction that the rule is enabled for.
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
WindowsFirewallRule |
withAction(StateManagementSetting action)
Returns an immutable copy of
this with just the action field
changed. |
WindowsFirewallRule |
withDescription(String description)
Returns an immutable copy of
this with just the description
field changed. |
WindowsFirewallRule |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
WindowsFirewallRule |
withEdgeTraversal(StateManagementSetting edgeTraversal)
Returns an immutable copy of
this with just the edgeTraversal
field changed. |
WindowsFirewallRule |
withFilePath(String filePath)
Returns an immutable copy of
this with just the filePath field
changed. |
WindowsFirewallRule |
withInterfaceTypes(WindowsFirewallRuleInterfaceTypes interfaceTypes)
Returns an immutable copy of
this with just the interfaceTypes
field changed. |
WindowsFirewallRule |
withLocalUserAuthorizations(String localUserAuthorizations)
Returns an immutable copy of
this with just the localUserAuthorizations field changed. |
WindowsFirewallRule |
withPackageFamilyName(String packageFamilyName)
Returns an immutable copy of
this with just the packageFamilyName
field changed. |
WindowsFirewallRule |
withProfileTypes(WindowsFirewallRuleNetworkProfileTypes profileTypes)
Returns an immutable copy of
this with just the profileTypes
field changed. |
WindowsFirewallRule |
withProtocol(Integer protocol)
Returns an immutable copy of
this with just the protocol field
changed. |
WindowsFirewallRule |
withServiceName(String serviceName)
Returns an immutable copy of
this with just the serviceName
field changed. |
WindowsFirewallRule |
withTrafficDirection(WindowsFirewallRuleTrafficDirectionType trafficDirection)
Returns an immutable copy of
this with just the trafficDirection
field changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected String displayName
protected String description
protected String packageFamilyName
protected String filePath
protected String serviceName
protected Integer protocol
protected String localPortRangesNextLink
protected String remotePortRangesNextLink
protected String localAddressRangesNextLink
protected String remoteAddressRangesNextLink
protected WindowsFirewallRuleNetworkProfileTypes profileTypes
protected StateManagementSetting action
protected WindowsFirewallRuleTrafficDirectionType trafficDirection
protected WindowsFirewallRuleInterfaceTypes interfaceTypes
protected StateManagementSetting edgeTraversal
protected String localUserAuthorizations
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic Optional<String> getDisplayName()
public WindowsFirewallRule withDisplayName(String displayName)
this with just the displayName
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.
“The display name of the rule. Does not need to be unique.”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getDescription()
public WindowsFirewallRule withDescription(String description)
this with just the description
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.
“The description of the rule.”
description - new value of description field (as defined in service metadata)this with just the description field changedpublic Optional<String> getPackageFamilyName()
public WindowsFirewallRule withPackageFamilyName(String packageFamilyName)
this with just the packageFamilyName
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.
“The package family name of a Microsoft Store application that's affected by the firewall rule.”
packageFamilyName - new value of packageFamilyName field (as defined in service metadata)this with just the packageFamilyName field changedpublic Optional<String> getFilePath()
public WindowsFirewallRule withFilePath(String filePath)
this with just the filePath 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.
“The full file path of an app that's affected by the firewall rule.”
filePath - new value of filePath field (as defined in service metadata)this with just the filePath field changedpublic Optional<String> getServiceName()
public WindowsFirewallRule withServiceName(String serviceName)
this with just the serviceName
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.
“The name used in cases when a service, not an application, is sending or receiving traffic.”
serviceName - new value of serviceName field (as defined in service metadata)this with just the serviceName field changedpublic Optional<Integer> getProtocol()
public WindowsFirewallRule withProtocol(Integer protocol)
this with just the protocol 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.
“0-255 number representing the IP protocol (TCP = 6, UDP = 17). If not specified, the default is All. Valid values 0 to 255”
protocol - new value of protocol field (as defined in service metadata)this with just the protocol field changedpublic com.github.davidmoten.odata.client.CollectionPage<String> getLocalPortRanges()
public com.github.davidmoten.odata.client.CollectionPage<String> getRemotePortRanges()
public com.github.davidmoten.odata.client.CollectionPage<String> getLocalAddressRanges()
public com.github.davidmoten.odata.client.CollectionPage<String> getRemoteAddressRanges()
public Optional<WindowsFirewallRuleNetworkProfileTypes> getProfileTypes()
public WindowsFirewallRule withProfileTypes(WindowsFirewallRuleNetworkProfileTypes profileTypes)
this with just the profileTypes
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.
“Specifies the profiles to which the rule belongs. If not specified, the default is All.”
profileTypes - new value of profileTypes field (as defined in service metadata)this with just the profileTypes field changedpublic Optional<StateManagementSetting> getAction()
public WindowsFirewallRule withAction(StateManagementSetting action)
this with just the action 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.
“The action the rule enforces. If not specified, the default is Allowed.”
action - new value of action field (as defined in service metadata)this with just the action field changedpublic Optional<WindowsFirewallRuleTrafficDirectionType> getTrafficDirection()
public WindowsFirewallRule withTrafficDirection(WindowsFirewallRuleTrafficDirectionType trafficDirection)
this with just the trafficDirection
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.
“The traffic direction that the rule is enabled for. If not specified, the default is Out.”
trafficDirection - new value of trafficDirection field (as defined in service metadata)this with just the trafficDirection field changedpublic Optional<WindowsFirewallRuleInterfaceTypes> getInterfaceTypes()
public WindowsFirewallRule withInterfaceTypes(WindowsFirewallRuleInterfaceTypes interfaceTypes)
this with just the interfaceTypes
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.
“The interface types of the rule.”
interfaceTypes - new value of interfaceTypes field (as defined in service metadata)this with just the interfaceTypes field changedpublic Optional<StateManagementSetting> getEdgeTraversal()
public WindowsFirewallRule withEdgeTraversal(StateManagementSetting edgeTraversal)
this with just the edgeTraversal
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.
“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.”
edgeTraversal - new value of edgeTraversal field (as defined in service metadata)this with just the edgeTraversal field changedpublic Optional<String> getLocalUserAuthorizations()
public WindowsFirewallRule withLocalUserAuthorizations(String localUserAuthorizations)
this with just the localUserAuthorizations 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.
“Specifies the list of authorized local users for the app container. This is a string in Security Descriptor Definition Language (SDDL) format.”
localUserAuthorizations - new value of localUserAuthorizations field (as defined in service metadata)this with just the localUserAuthorizations 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 WindowsFirewallRule.Builder builder()
Copyright © 2018–2020. All rights reserved.