/* * 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 set of TCP flags and masks to inspect for. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupSourceStatelessRuleMatchAttributesTcpFlags implements Serializable, Cloneable, StructuredPojo { /** *
     * Defines the flags from the Masks setting that must be set in order for the packet to match. Flags
     * that are listed must be set. Flags that are not listed must not be set.
     * 
* The set of flags to consider in the inspection. If not specified, then all flags are inspected. *
*/ private java.util.List
     * Defines the flags from the Masks setting that must be set in order for the packet to match. Flags
     * that are listed must be set. Flags that are not listed must not be set.
     * 
Masks setting that must be set in order for the packet to match.
     *         Flags that are listed must be set. Flags that are not listed must not be set.
     */
    public java.util.List
     * Defines the flags from the Masks setting that must be set in order for the packet to match. Flags
     * that are listed must be set. Flags that are not listed must not be set.
     * 
Masks setting that must be set in order for the packet to match.
     *        Flags that are listed must be set. Flags that are not listed must not be set.
     */
    public void setFlags(java.util.Collection
     * Defines the flags from the Masks setting that must be set in order for the packet to match. Flags
     * that are listed must be set. Flags that are not listed must not be set.
     * 
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFlags(java.util.Collection)} or {@link #withFlags(java.util.Collection)} if you want to override the * existing values. *
* * @param flags * Defines the flags from theMasks setting that must be set in order for the packet to match.
     *        Flags that are listed must be set. Flags that are not listed must not be set.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public RuleGroupSourceStatelessRuleMatchAttributesTcpFlags withFlags(String... flags) {
        if (this.flags == null) {
            setFlags(new java.util.ArrayList
     * Defines the flags from the Masks setting that must be set in order for the packet to match. Flags
     * that are listed must be set. Flags that are not listed must not be set.
     * 
Masks setting that must be set in order for the packet to match.
     *        Flags that are listed must be set. Flags that are not listed must not be set.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public RuleGroupSourceStatelessRuleMatchAttributesTcpFlags withFlags(java.util.Collection* The set of flags to consider in the inspection. If not specified, then all flags are inspected. *
* * @return The set of flags to consider in the inspection. If not specified, then all flags are inspected. */ public java.util.List* The set of flags to consider in the inspection. If not specified, then all flags are inspected. *
* * @param masks * The set of flags to consider in the inspection. If not specified, then all flags are inspected. */ public void setMasks(java.util.Collection* The set of flags to consider in the inspection. If not specified, then all flags are inspected. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMasks(java.util.Collection)} or {@link #withMasks(java.util.Collection)} if you want to override the * existing values. *
* * @param masks * The set of flags to consider in the inspection. If not specified, then all flags are inspected. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleGroupSourceStatelessRuleMatchAttributesTcpFlags withMasks(String... masks) { if (this.masks == null) { setMasks(new java.util.ArrayList* The set of flags to consider in the inspection. If not specified, then all flags are inspected. *
* * @param masks * The set of flags to consider in the inspection. If not specified, then all flags are inspected. * @return Returns a reference to this object so that method calls can be chained together. */ public RuleGroupSourceStatelessRuleMatchAttributesTcpFlags withMasks(java.util.Collection