/* * 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; /** *
* Contains one or more regular expressions. *
*
* WAF assigns an ARN to each RegexPatternSet
that you create. To use a set in a rule, you provide the ARN
* to the Rule statement RegexPatternSetReferenceStatement.
*
* The name of the set. You cannot change the name after you create the set. *
*/ private String name; /** ** A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it * to operations like update and delete. *
*/ private String id; /** ** The Amazon Resource Name (ARN) of the entity. *
*/ private String aRN; /** ** A description of the set that helps with identification. *
*/ private String description; /** ** The regular expression patterns in the set. *
*/ private java.util.List* The name of the set. You cannot change the name after you create the set. *
* * @param name * The name of the set. You cannot change the name after you create the set. */ public void setName(String name) { this.name = name; } /** ** The name of the set. You cannot change the name after you create the set. *
* * @return The name of the set. You cannot change the name after you create the set. */ public String getName() { return this.name; } /** ** The name of the set. You cannot change the name after you create the set. *
* * @param name * The name of the set. You cannot change the name after you create the set. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withName(String name) { setName(name); return this; } /** ** A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it * to operations like update and delete. *
* * @param id * A unique identifier for the set. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. */ public void setId(String id) { this.id = id; } /** ** A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it * to operations like update and delete. *
* * @return A unique identifier for the set. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. */ public String getId() { return this.id; } /** ** A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it * to operations like update and delete. *
* * @param id * A unique identifier for the set. This ID is returned in the responses to create and list commands. You * provide it to operations like update and delete. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withId(String id) { setId(id); return this; } /** ** The Amazon Resource Name (ARN) of the entity. *
* * @param aRN * The Amazon Resource Name (ARN) of the entity. */ public void setARN(String aRN) { this.aRN = aRN; } /** ** The Amazon Resource Name (ARN) of the entity. *
* * @return The Amazon Resource Name (ARN) of the entity. */ public String getARN() { return this.aRN; } /** ** The Amazon Resource Name (ARN) of the entity. *
* * @param aRN * The Amazon Resource Name (ARN) of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withARN(String aRN) { setARN(aRN); return this; } /** ** A description of the set that helps with identification. *
* * @param description * A description of the set that helps with identification. */ public void setDescription(String description) { this.description = description; } /** ** A description of the set that helps with identification. *
* * @return A description of the set that helps with identification. */ public String getDescription() { return this.description; } /** ** A description of the set that helps with identification. *
* * @param description * A description of the set that helps with identification. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withDescription(String description) { setDescription(description); return this; } /** ** The regular expression patterns in the set. *
* * @return The regular expression patterns in the set. */ public java.util.List* The regular expression patterns in the set. *
* * @param regularExpressionList * The regular expression patterns in the set. */ public void setRegularExpressionList(java.util.Collection* The regular expression patterns in the set. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setRegularExpressionList(java.util.Collection)} or * {@link #withRegularExpressionList(java.util.Collection)} if you want to override the existing values. *
* * @param regularExpressionList * The regular expression patterns in the set. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withRegularExpressionList(Regex... regularExpressionList) { if (this.regularExpressionList == null) { setRegularExpressionList(new java.util.ArrayList* The regular expression patterns in the set. *
* * @param regularExpressionList * The regular expression patterns in the set. * @return Returns a reference to this object so that method calls can be chained together. */ public RegexPatternSet withRegularExpressionList(java.util.Collection