Class WindowsFirewallNetworkProfile.Builder

    • Method Detail

      • authorizedApplicationRulesFromGroupPolicyMerged

        public WindowsFirewallNetworkProfile.Builder authorizedApplicationRulesFromGroupPolicyMerged​(Boolean authorizedApplicationRulesFromGroupPolicyMerged)
        “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 - value of authorizedApplicationRulesFromGroupPolicyMerged property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • connectionSecurityRulesFromGroupPolicyMerged

        public WindowsFirewallNetworkProfile.Builder connectionSecurityRulesFromGroupPolicyMerged​(Boolean connectionSecurityRulesFromGroupPolicyMerged)
        “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 - value of connectionSecurityRulesFromGroupPolicyMerged property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • firewallEnabled

        public WindowsFirewallNetworkProfile.Builder firewallEnabled​(StateManagementSetting firewallEnabled)
        “Configures the host device to allow or block the firewall and advanced security enforcement for the network profile.”
        Parameters:
        firewallEnabled - value of firewallEnabled property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • globalPortRulesFromGroupPolicyMerged

        public WindowsFirewallNetworkProfile.Builder globalPortRulesFromGroupPolicyMerged​(Boolean globalPortRulesFromGroupPolicyMerged)
        “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 - value of globalPortRulesFromGroupPolicyMerged property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • inboundConnectionsBlocked

        public WindowsFirewallNetworkProfile.Builder inboundConnectionsBlocked​(Boolean inboundConnectionsBlocked)
        “Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.”
        Parameters:
        inboundConnectionsBlocked - value of inboundConnectionsBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • inboundNotificationsBlocked

        public WindowsFirewallNetworkProfile.Builder inboundNotificationsBlocked​(Boolean inboundNotificationsBlocked)
        “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 - value of inboundNotificationsBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • incomingTrafficBlocked

        public WindowsFirewallNetworkProfile.Builder incomingTrafficBlocked​(Boolean incomingTrafficBlocked)
        “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 - value of incomingTrafficBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • outboundConnectionsBlocked

        public WindowsFirewallNetworkProfile.Builder outboundConnectionsBlocked​(Boolean outboundConnectionsBlocked)
        “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 - value of outboundConnectionsBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • policyRulesFromGroupPolicyMerged

        public WindowsFirewallNetworkProfile.Builder policyRulesFromGroupPolicyMerged​(Boolean policyRulesFromGroupPolicyMerged)
        “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 - value of policyRulesFromGroupPolicyMerged property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • securedPacketExemptionAllowed

        public WindowsFirewallNetworkProfile.Builder securedPacketExemptionAllowed​(Boolean securedPacketExemptionAllowed)
        “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 - value of securedPacketExemptionAllowed property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • stealthModeBlocked

        public WindowsFirewallNetworkProfile.Builder stealthModeBlocked​(Boolean stealthModeBlocked)
        “Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.”
        Parameters:
        stealthModeBlocked - value of stealthModeBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • unicastResponsesToMulticastBroadcastsBlocked

        public WindowsFirewallNetworkProfile.Builder unicastResponsesToMulticastBroadcastsBlocked​(Boolean unicastResponsesToMulticastBroadcastsBlocked)
        “Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.”
        Parameters:
        unicastResponsesToMulticastBroadcastsBlocked - value of unicastResponsesToMulticastBroadcastsBlocked property (as defined in service metadata)
        Returns:
        this (for method chaining)