/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Defines the behavior of the firewall. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class FirewallPolicyDetails implements Serializable, Cloneable, StructuredPojo { /** ** The stateful rule groups that are used in the firewall policy. *
*/ private java.util.List
* The custom action definitions that are available to use in the firewall policy's
* StatelessDefaultActions
setting.
*
* The actions to take on a packet if it doesn't match any of the stateless rules in the policy. *
*
* You must specify a standard action (aws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy. *
*
* You must specify a standard action (aws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* The stateless rule groups that are used in the firewall policy. *
*/ private java.util.List* The stateful rule groups that are used in the firewall policy. *
* * @return The stateful rule groups that are used in the firewall policy. */ public java.util.List* The stateful rule groups that are used in the firewall policy. *
* * @param statefulRuleGroupReferences * The stateful rule groups that are used in the firewall policy. */ public void setStatefulRuleGroupReferences(java.util.Collection* The stateful rule groups that are used in the firewall policy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStatefulRuleGroupReferences(java.util.Collection)} or * {@link #withStatefulRuleGroupReferences(java.util.Collection)} if you want to override the existing values. *
* * @param statefulRuleGroupReferences * The stateful rule groups that are used in the firewall policy. * @return Returns a reference to this object so that method calls can be chained together. */ public FirewallPolicyDetails withStatefulRuleGroupReferences(FirewallPolicyStatefulRuleGroupReferencesDetails... statefulRuleGroupReferences) { if (this.statefulRuleGroupReferences == null) { setStatefulRuleGroupReferences(new java.util.ArrayList* The stateful rule groups that are used in the firewall policy. *
* * @param statefulRuleGroupReferences * The stateful rule groups that are used in the firewall policy. * @return Returns a reference to this object so that method calls can be chained together. */ public FirewallPolicyDetails withStatefulRuleGroupReferences( java.util.Collection
* The custom action definitions that are available to use in the firewall policy's
* StatelessDefaultActions
setting.
*
StatelessDefaultActions
setting.
*/
public java.util.List
* The custom action definitions that are available to use in the firewall policy's
* StatelessDefaultActions
setting.
*
StatelessDefaultActions
setting.
*/
public void setStatelessCustomActions(java.util.Collection
* The custom action definitions that are available to use in the firewall policy's
* StatelessDefaultActions
setting.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setStatelessCustomActions(java.util.Collection)} or * {@link #withStatelessCustomActions(java.util.Collection)} if you want to override the existing values. *
* * @param statelessCustomActions * The custom action definitions that are available to use in the firewall policy's *StatelessDefaultActions
setting.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallPolicyDetails withStatelessCustomActions(FirewallPolicyStatelessCustomActionsDetails... statelessCustomActions) {
if (this.statelessCustomActions == null) {
setStatelessCustomActions(new java.util.ArrayList
* The custom action definitions that are available to use in the firewall policy's
* StatelessDefaultActions
setting.
*
StatelessDefaultActions
setting.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallPolicyDetails withStatelessCustomActions(java.util.Collection* The actions to take on a packet if it doesn't match any of the stateless rules in the policy. *
*
* You must specify a standard action (aws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The actions to take on a packet if it doesn't match any of the stateless rules in the policy.
*
* You must specify a standard action (aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
*/
public java.util.Listaws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The actions to take on a packet if it doesn't match any of the stateless rules in the policy.
*
* You must specify a standard action (
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setStatelessDefaultActions(java.util.Collection)} or
* {@link #withStatelessDefaultActions(java.util.Collection)} if you want to override the existing values.
* aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
*/
public void setStatelessDefaultActions(java.util.Collectionaws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The actions to take on a packet if it doesn't match any of the stateless rules in the policy.
*
* You must specify a standard action (aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallPolicyDetails withStatelessDefaultActions(String... statelessDefaultActions) {
if (this.statelessDefaultActions == null) {
setStatelessDefaultActions(new java.util.ArrayListaws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
*
* You must specify a standard action (aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallPolicyDetails withStatelessDefaultActions(java.util.Collectionaws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
*
* You must specify a standard action (aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
*/
public java.util.Listaws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
*
* You must specify a standard action (
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setStatelessFragmentDefaultActions(java.util.Collection)} or
* {@link #withStatelessFragmentDefaultActions(java.util.Collection)} if you want to override the existing values.
* aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
*/
public void setStatelessFragmentDefaultActions(java.util.Collectionaws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The actions to take on a fragmented UDP packet if it doesn't match any of the stateless rules in the policy.
*
* You must specify a standard action (aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallPolicyDetails withStatelessFragmentDefaultActions(String... statelessFragmentDefaultActions) {
if (this.statelessFragmentDefaultActions == null) {
setStatelessFragmentDefaultActions(new java.util.ArrayListaws:pass
, aws:drop
, aws:forward_to_sfe
* ), and can optionally include a custom action from StatelessCustomActions
.
*
* You must specify a standard action (
* The stateless rule groups that are used in the firewall policy.
*
* The stateless rule groups that are used in the firewall policy.
*
* The stateless rule groups that are used in the firewall policy.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setStatelessRuleGroupReferences(java.util.Collection)} or
* {@link #withStatelessRuleGroupReferences(java.util.Collection)} if you want to override the existing values.
*
* The stateless rule groups that are used in the firewall policy.
* aws:pass
, aws:drop
,
* aws:forward_to_sfe
), and can optionally include a custom action from
* StatelessCustomActions
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FirewallPolicyDetails withStatelessFragmentDefaultActions(java.util.Collection