/* * 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; /** *
* A Suricata rule specification. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupSourceStatefulRulesDetails implements Serializable, Cloneable, StructuredPojo { /** ** Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful * rule criteria. *
*/ private String action; /** ** The stateful inspection criteria for the rule. *
*/ private RuleGroupSourceStatefulRulesHeaderDetails header; /** ** Additional options for the rule. *
*/ private java.util.List* Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful * rule criteria. *
* * @param action * Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the * stateful rule criteria. */ public void setAction(String action) { this.action = action; } /** ** Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful * rule criteria. *
* * @return Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the * stateful rule criteria. */ public String getAction() { return this.action; } /** ** Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the stateful * rule criteria. *
* * @param action * Defines what Network Firewall should do with the packets in a traffic flow when the flow matches the * stateful rule criteria. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleGroupSourceStatefulRulesDetails withAction(String action) { setAction(action); return this; } /** ** The stateful inspection criteria for the rule. *
* * @param header * The stateful inspection criteria for the rule. */ public void setHeader(RuleGroupSourceStatefulRulesHeaderDetails header) { this.header = header; } /** ** The stateful inspection criteria for the rule. *
* * @return The stateful inspection criteria for the rule. */ public RuleGroupSourceStatefulRulesHeaderDetails getHeader() { return this.header; } /** ** The stateful inspection criteria for the rule. *
* * @param header * The stateful inspection criteria for the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleGroupSourceStatefulRulesDetails withHeader(RuleGroupSourceStatefulRulesHeaderDetails header) { setHeader(header); return this; } /** ** Additional options for the rule. *
* * @return Additional options for the rule. */ public java.util.List* Additional options for the rule. *
* * @param ruleOptions * Additional options for the rule. */ public void setRuleOptions(java.util.Collection* Additional options for the rule. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRuleOptions(java.util.Collection)} or {@link #withRuleOptions(java.util.Collection)} if you want to * override the existing values. *
* * @param ruleOptions * Additional options for the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleGroupSourceStatefulRulesDetails withRuleOptions(RuleGroupSourceStatefulRulesOptionsDetails... ruleOptions) { if (this.ruleOptions == null) { setRuleOptions(new java.util.ArrayList* Additional options for the rule. *
* * @param ruleOptions * Additional options for the rule. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleGroupSourceStatefulRulesDetails withRuleOptions(java.util.Collection