Class WindowsFirewallNetworkProfile
- java.lang.Object
-
- odata.msgraph.client.complex.WindowsFirewallNetworkProfile
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class WindowsFirewallNetworkProfile extends Object implements com.github.davidmoten.odata.client.ODataType
“Windows Firewall Profile Policies.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsFirewallNetworkProfile.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanauthorizedApplicationRulesFromGroupPolicyMergedprotected BooleanconnectionSecurityRulesFromGroupPolicyMergedprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StateManagementSettingfirewallEnabledprotected BooleanglobalPortRulesFromGroupPolicyMergedprotected BooleaninboundConnectionsBlockedprotected BooleaninboundNotificationsBlockedprotected BooleanincomingTrafficBlockedprotected StringodataTypeprotected BooleanoutboundConnectionsBlockedprotected BooleanpolicyRulesFromGroupPolicyMergedprotected BooleansecuredPacketExemptionAllowedprotected BooleanstealthModeBlockedprotected BooleanunicastResponsesToMulticastBroadcastsBlockedprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsFirewallNetworkProfile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsFirewallNetworkProfile.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getAuthorizedApplicationRulesFromGroupPolicyMerged()“Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules.Optional<Boolean>getConnectionSecurityRulesFromGroupPolicyMerged()“Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules.Optional<StateManagementSetting>getFirewallEnabled()“Configures the host device to allow or block the firewall and advanced security enforcement for the network profile.”Optional<Boolean>getGlobalPortRulesFromGroupPolicyMerged()“Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules.Optional<Boolean>getInboundConnectionsBlocked()“Configures the firewall to block all incoming connections by default.Optional<Boolean>getInboundNotificationsBlocked()“Prevents the firewall from displaying notifications when an application is blocked from listening on a port.Optional<Boolean>getIncomingTrafficBlocked()“Configures the firewall to block all incoming traffic regardless of other policy settings.Optional<Boolean>getOutboundConnectionsBlocked()“Configures the firewall to block all outgoing connections by default.Optional<Boolean>getPolicyRulesFromGroupPolicyMerged()“Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules.Optional<Boolean>getSecuredPacketExemptionAllowed()“Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true.Optional<Boolean>getStealthModeBlocked()“Prevent the server from operating in stealth mode.Optional<Boolean>getUnicastResponsesToMulticastBroadcastsBlocked()“Configures the firewall to block unicast responses to multicast broadcast traffic.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()WindowsFirewallNetworkProfilewithAuthorizedApplicationRulesFromGroupPolicyMerged(Boolean authorizedApplicationRulesFromGroupPolicyMerged)Returns an immutable copy ofthiswith just theauthorizedApplicationRulesFromGroupPolicyMergedfield changed.WindowsFirewallNetworkProfilewithConnectionSecurityRulesFromGroupPolicyMerged(Boolean connectionSecurityRulesFromGroupPolicyMerged)Returns an immutable copy ofthiswith just theconnectionSecurityRulesFromGroupPolicyMergedfield changed.WindowsFirewallNetworkProfilewithFirewallEnabled(StateManagementSetting firewallEnabled)Returns an immutable copy ofthiswith just thefirewallEnabledfield changed.WindowsFirewallNetworkProfilewithGlobalPortRulesFromGroupPolicyMerged(Boolean globalPortRulesFromGroupPolicyMerged)Returns an immutable copy ofthiswith just theglobalPortRulesFromGroupPolicyMergedfield changed.WindowsFirewallNetworkProfilewithInboundConnectionsBlocked(Boolean inboundConnectionsBlocked)Returns an immutable copy ofthiswith just theinboundConnectionsBlockedfield changed.WindowsFirewallNetworkProfilewithInboundNotificationsBlocked(Boolean inboundNotificationsBlocked)Returns an immutable copy ofthiswith just theinboundNotificationsBlockedfield changed.WindowsFirewallNetworkProfilewithIncomingTrafficBlocked(Boolean incomingTrafficBlocked)Returns an immutable copy ofthiswith just theincomingTrafficBlockedfield changed.WindowsFirewallNetworkProfilewithOutboundConnectionsBlocked(Boolean outboundConnectionsBlocked)Returns an immutable copy ofthiswith just theoutboundConnectionsBlockedfield changed.WindowsFirewallNetworkProfilewithPolicyRulesFromGroupPolicyMerged(Boolean policyRulesFromGroupPolicyMerged)Returns an immutable copy ofthiswith just thepolicyRulesFromGroupPolicyMergedfield changed.WindowsFirewallNetworkProfilewithSecuredPacketExemptionAllowed(Boolean securedPacketExemptionAllowed)Returns an immutable copy ofthiswith just thesecuredPacketExemptionAllowedfield changed.WindowsFirewallNetworkProfilewithStealthModeBlocked(Boolean stealthModeBlocked)Returns an immutable copy ofthiswith just thestealthModeBlockedfield changed.WindowsFirewallNetworkProfilewithUnicastResponsesToMulticastBroadcastsBlocked(Boolean unicastResponsesToMulticastBroadcastsBlocked)Returns an immutable copy ofthiswith just theunicastResponsesToMulticastBroadcastsBlockedfield changed.WindowsFirewallNetworkProfilewithUnmappedField(String name, Object 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
-
authorizedApplicationRulesFromGroupPolicyMerged
protected Boolean authorizedApplicationRulesFromGroupPolicyMerged
-
connectionSecurityRulesFromGroupPolicyMerged
protected Boolean connectionSecurityRulesFromGroupPolicyMerged
-
firewallEnabled
protected StateManagementSetting firewallEnabled
-
globalPortRulesFromGroupPolicyMerged
protected Boolean globalPortRulesFromGroupPolicyMerged
-
inboundConnectionsBlocked
protected Boolean inboundConnectionsBlocked
-
inboundNotificationsBlocked
protected Boolean inboundNotificationsBlocked
-
incomingTrafficBlocked
protected Boolean incomingTrafficBlocked
-
outboundConnectionsBlocked
protected Boolean outboundConnectionsBlocked
-
policyRulesFromGroupPolicyMerged
protected Boolean policyRulesFromGroupPolicyMerged
-
securedPacketExemptionAllowed
protected Boolean securedPacketExemptionAllowed
-
stealthModeBlocked
protected Boolean stealthModeBlocked
-
unicastResponsesToMulticastBroadcastsBlocked
protected Boolean unicastResponsesToMulticastBroadcastsBlocked
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAuthorizedApplicationRulesFromGroupPolicyMerged
public Optional<Boolean> getAuthorizedApplicationRulesFromGroupPolicyMerged()
“Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.”- Returns:
- property authorizedApplicationRulesFromGroupPolicyMerged
-
withAuthorizedApplicationRulesFromGroupPolicyMerged
public WindowsFirewallNetworkProfile withAuthorizedApplicationRulesFromGroupPolicyMerged(Boolean authorizedApplicationRulesFromGroupPolicyMerged)
Returns an immutable copy ofthiswith just theauthorizedApplicationRulesFromGroupPolicyMergedfield 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.“Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.”
- Parameters:
authorizedApplicationRulesFromGroupPolicyMerged- new value ofauthorizedApplicationRulesFromGroupPolicyMergedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theauthorizedApplicationRulesFromGroupPolicyMergedfield changed
-
getConnectionSecurityRulesFromGroupPolicyMerged
public Optional<Boolean> getConnectionSecurityRulesFromGroupPolicyMerged()
“Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.”- Returns:
- property connectionSecurityRulesFromGroupPolicyMerged
-
withConnectionSecurityRulesFromGroupPolicyMerged
public WindowsFirewallNetworkProfile withConnectionSecurityRulesFromGroupPolicyMerged(Boolean connectionSecurityRulesFromGroupPolicyMerged)
Returns an immutable copy ofthiswith just theconnectionSecurityRulesFromGroupPolicyMergedfield 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.“Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.”
- Parameters:
connectionSecurityRulesFromGroupPolicyMerged- new value ofconnectionSecurityRulesFromGroupPolicyMergedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theconnectionSecurityRulesFromGroupPolicyMergedfield changed
-
getFirewallEnabled
public Optional<StateManagementSetting> getFirewallEnabled()
“Configures the host device to allow or block the firewall and advanced security enforcement for the network profile.”- Returns:
- property firewallEnabled
-
withFirewallEnabled
public WindowsFirewallNetworkProfile withFirewallEnabled(StateManagementSetting firewallEnabled)
Returns an immutable copy ofthiswith just thefirewallEnabledfield 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.“Configures the host device to allow or block the firewall and advanced security enforcement for the network profile.”
- Parameters:
firewallEnabled- new value offirewallEnabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefirewallEnabledfield changed
-
getGlobalPortRulesFromGroupPolicyMerged
public Optional<Boolean> getGlobalPortRulesFromGroupPolicyMerged()
“Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.”- Returns:
- property globalPortRulesFromGroupPolicyMerged
-
withGlobalPortRulesFromGroupPolicyMerged
public WindowsFirewallNetworkProfile withGlobalPortRulesFromGroupPolicyMerged(Boolean globalPortRulesFromGroupPolicyMerged)
Returns an immutable copy ofthiswith just theglobalPortRulesFromGroupPolicyMergedfield 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.“Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.”
- Parameters:
globalPortRulesFromGroupPolicyMerged- new value ofglobalPortRulesFromGroupPolicyMergedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theglobalPortRulesFromGroupPolicyMergedfield changed
-
getInboundConnectionsBlocked
public Optional<Boolean> getInboundConnectionsBlocked()
“Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.”- Returns:
- property inboundConnectionsBlocked
-
withInboundConnectionsBlocked
public WindowsFirewallNetworkProfile withInboundConnectionsBlocked(Boolean inboundConnectionsBlocked)
Returns an immutable copy ofthiswith just theinboundConnectionsBlockedfield 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.“Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.”
- Parameters:
inboundConnectionsBlocked- new value ofinboundConnectionsBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinboundConnectionsBlockedfield changed
-
getInboundNotificationsBlocked
public Optional<Boolean> getInboundNotificationsBlocked()
“Prevents the firewall from displaying notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.”- Returns:
- property inboundNotificationsBlocked
-
withInboundNotificationsBlocked
public WindowsFirewallNetworkProfile withInboundNotificationsBlocked(Boolean inboundNotificationsBlocked)
Returns an immutable copy ofthiswith just theinboundNotificationsBlockedfield 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.“Prevents the firewall from displaying notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.”
- Parameters:
inboundNotificationsBlocked- new value ofinboundNotificationsBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinboundNotificationsBlockedfield changed
-
getIncomingTrafficBlocked
public Optional<Boolean> getIncomingTrafficBlocked()
“Configures the firewall to block all incoming traffic regardless of other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.”- Returns:
- property incomingTrafficBlocked
-
withIncomingTrafficBlocked
public WindowsFirewallNetworkProfile withIncomingTrafficBlocked(Boolean incomingTrafficBlocked)
Returns an immutable copy ofthiswith just theincomingTrafficBlockedfield 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.“Configures the firewall to block all incoming traffic regardless of other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.”
- Parameters:
incomingTrafficBlocked- new value ofincomingTrafficBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theincomingTrafficBlockedfield changed
-
getOutboundConnectionsBlocked
public Optional<Boolean> getOutboundConnectionsBlocked()
“Configures the firewall to block all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.”- Returns:
- property outboundConnectionsBlocked
-
withOutboundConnectionsBlocked
public WindowsFirewallNetworkProfile withOutboundConnectionsBlocked(Boolean outboundConnectionsBlocked)
Returns an immutable copy ofthiswith just theoutboundConnectionsBlockedfield 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.“Configures the firewall to block all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.”
- Parameters:
outboundConnectionsBlocked- new value ofoutboundConnectionsBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theoutboundConnectionsBlockedfield changed
-
getPolicyRulesFromGroupPolicyMerged
public Optional<Boolean> getPolicyRulesFromGroupPolicyMerged()
“Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.”- Returns:
- property policyRulesFromGroupPolicyMerged
-
withPolicyRulesFromGroupPolicyMerged
public WindowsFirewallNetworkProfile withPolicyRulesFromGroupPolicyMerged(Boolean policyRulesFromGroupPolicyMerged)
Returns an immutable copy ofthiswith just thepolicyRulesFromGroupPolicyMergedfield 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.“Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.”
- Parameters:
policyRulesFromGroupPolicyMerged- new value ofpolicyRulesFromGroupPolicyMergedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepolicyRulesFromGroupPolicyMergedfield changed
-
getSecuredPacketExemptionAllowed
public Optional<Boolean> getSecuredPacketExemptionAllowed()
“Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.”- Returns:
- property securedPacketExemptionAllowed
-
withSecuredPacketExemptionAllowed
public WindowsFirewallNetworkProfile withSecuredPacketExemptionAllowed(Boolean securedPacketExemptionAllowed)
Returns an immutable copy ofthiswith just thesecuredPacketExemptionAllowedfield 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.“Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.”
- Parameters:
securedPacketExemptionAllowed- new value ofsecuredPacketExemptionAllowedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesecuredPacketExemptionAllowedfield changed
-
getStealthModeBlocked
public Optional<Boolean> getStealthModeBlocked()
“Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.”- Returns:
- property stealthModeBlocked
-
withStealthModeBlocked
public WindowsFirewallNetworkProfile withStealthModeBlocked(Boolean stealthModeBlocked)
Returns an immutable copy ofthiswith just thestealthModeBlockedfield 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.“Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.”
- Parameters:
stealthModeBlocked- new value ofstealthModeBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestealthModeBlockedfield changed
-
getUnicastResponsesToMulticastBroadcastsBlocked
public Optional<Boolean> getUnicastResponsesToMulticastBroadcastsBlocked()
“Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.”- Returns:
- property unicastResponsesToMulticastBroadcastsBlocked
-
withUnicastResponsesToMulticastBroadcastsBlocked
public WindowsFirewallNetworkProfile withUnicastResponsesToMulticastBroadcastsBlocked(Boolean unicastResponsesToMulticastBroadcastsBlocked)
Returns an immutable copy ofthiswith just theunicastResponsesToMulticastBroadcastsBlockedfield 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.“Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.”
- Parameters:
unicastResponsesToMulticastBroadcastsBlocked- new value ofunicastResponsesToMulticastBroadcastsBlockedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theunicastResponsesToMulticastBroadcastsBlockedfield changed
-
withUnmappedField
public WindowsFirewallNetworkProfile withUnmappedField(String name, Object 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 WindowsFirewallNetworkProfile.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
-
-