/* * 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.wafv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
 * The patterns to look for in the JSON body. WAF inspects the results of these pattern matches against the rule
 * inspection criteria. This is used with the FieldToMatch option JsonBody.
 * 
     * Match all of the elements. See also MatchScope in JsonBody.
     * 
     * You must specify either this setting or the IncludedPaths setting, but not both.
     * 
     * Match only the specified include paths. See also MatchScope in JsonBody.
     * 
     * Provide the include paths using JSON Pointer syntax. For example,
     * "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     * Internet Engineering Task Force (IETF) documentation JavaScript
     * Object Notation (JSON) Pointer.
     * 
     * You must specify either this setting or the All setting, but not both.
     * 
     * Don't use this option to include all paths. Instead, use the All setting.
     * 
     * Match all of the elements. See also MatchScope in JsonBody.
     * 
     * You must specify either this setting or the IncludedPaths setting, but not both.
     * 
MatchScope in JsonBody. 
     *        
     *        You must specify either this setting or the IncludedPaths setting, but not both.
     */
    public void setAll(All all) {
        this.all = all;
    }
    /**
     * 
     * Match all of the elements. See also MatchScope in JsonBody.
     * 
     * You must specify either this setting or the IncludedPaths setting, but not both.
     * 
MatchScope in JsonBody. 
     *         
     *         You must specify either this setting or the IncludedPaths setting, but not both.
     */
    public All getAll() {
        return this.all;
    }
    /**
     * 
     * Match all of the elements. See also MatchScope in JsonBody.
     * 
     * You must specify either this setting or the IncludedPaths setting, but not both.
     * 
MatchScope in JsonBody. 
     *        
     *        You must specify either this setting or the IncludedPaths setting, but not both.
     * @return Returns a reference to this object so that method calls can be chained together.
     */
    public JsonMatchPattern withAll(All all) {
        setAll(all);
        return this;
    }
    /**
     * 
     * Match only the specified include paths. See also MatchScope in JsonBody.
     * 
     * Provide the include paths using JSON Pointer syntax. For example,
     * "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     * Internet Engineering Task Force (IETF) documentation JavaScript
     * Object Notation (JSON) Pointer.
     * 
     * You must specify either this setting or the All setting, but not both.
     * 
     * Don't use this option to include all paths. Instead, use the All setting.
     * 
MatchScope in JsonBody. 
     *         
     *         Provide the include paths using JSON Pointer syntax. For example,
     *         "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see
     *         the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
     *         
     *         You must specify either this setting or the All setting, but not both.
     *         
     *         Don't use this option to include all paths. Instead, use the All setting.
     *         
     * Match only the specified include paths. See also MatchScope in JsonBody.
     * 
     * Provide the include paths using JSON Pointer syntax. For example,
     * "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     * Internet Engineering Task Force (IETF) documentation JavaScript
     * Object Notation (JSON) Pointer.
     * 
     * You must specify either this setting or the All setting, but not both.
     * 
     * Don't use this option to include all paths. Instead, use the All setting.
     * 
MatchScope in JsonBody. 
     *        
     *        Provide the include paths using JSON Pointer syntax. For example,
     *        "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     *        Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
     *        
     *        You must specify either this setting or the All setting, but not both.
     *        
     *        Don't use this option to include all paths. Instead, use the All setting.
     *        
     * Match only the specified include paths. See also MatchScope in JsonBody.
     * 
     * Provide the include paths using JSON Pointer syntax. For example,
     * "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     * Internet Engineering Task Force (IETF) documentation JavaScript
     * Object Notation (JSON) Pointer.
     * 
     * You must specify either this setting or the All setting, but not both.
     * 
     * Don't use this option to include all paths. Instead, use the All setting.
     * 
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setIncludedPaths(java.util.Collection)} or {@link #withIncludedPaths(java.util.Collection)} if you want * to override the existing values. *
* * @param includedPaths * Match only the specified include paths. See alsoMatchScope in JsonBody. 
     *        
     *        Provide the include paths using JSON Pointer syntax. For example,
     *        "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     *        Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
     *        
     *        You must specify either this setting or the All setting, but not both.
     *        
     *        Don't use this option to include all paths. Instead, use the All setting.
     *        
     * Match only the specified include paths. See also MatchScope in JsonBody.
     * 
     * Provide the include paths using JSON Pointer syntax. For example,
     * "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     * Internet Engineering Task Force (IETF) documentation JavaScript
     * Object Notation (JSON) Pointer.
     * 
     * You must specify either this setting or the All setting, but not both.
     * 
     * Don't use this option to include all paths. Instead, use the All setting.
     * 
MatchScope in JsonBody. 
     *        
     *        Provide the include paths using JSON Pointer syntax. For example,
     *        "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the
     *        Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.
     *        
     *        You must specify either this setting or the All setting, but not both.
     *        
     *        Don't use this option to include all paths. Instead, use the All setting.
     *