/* * 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.backup.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about which resources to include or exclude from a backup plan using their tags. Conditions are * case sensitive. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Conditions implements Serializable, Cloneable, StructuredPojo { /** ** Filters the values of your tagged resources for only those resources that you tagged with the same value. Also * called "exact matching." *
*/ private java.util.List* Filters the values of your tagged resources for only those resources that you tagged that do not have the same * value. Also called "negated matching." *
*/ private java.util.List* Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) * anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". *
*/ private java.util.List* Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) * anywhere in the string. *
*/ private java.util.List* Filters the values of your tagged resources for only those resources that you tagged with the same value. Also * called "exact matching." *
* * @return Filters the values of your tagged resources for only those resources that you tagged with the same value. * Also called "exact matching." */ public java.util.List* Filters the values of your tagged resources for only those resources that you tagged with the same value. Also * called "exact matching." *
* * @param stringEquals * Filters the values of your tagged resources for only those resources that you tagged with the same value. * Also called "exact matching." */ public void setStringEquals(java.util.Collection* Filters the values of your tagged resources for only those resources that you tagged with the same value. Also * called "exact matching." *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStringEquals(java.util.Collection)} or {@link #withStringEquals(java.util.Collection)} if you want to * override the existing values. *
* * @param stringEquals * Filters the values of your tagged resources for only those resources that you tagged with the same value. * Also called "exact matching." * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringEquals(ConditionParameter... stringEquals) { if (this.stringEquals == null) { setStringEquals(new java.util.ArrayList* Filters the values of your tagged resources for only those resources that you tagged with the same value. Also * called "exact matching." *
* * @param stringEquals * Filters the values of your tagged resources for only those resources that you tagged with the same value. * Also called "exact matching." * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringEquals(java.util.Collection* Filters the values of your tagged resources for only those resources that you tagged that do not have the same * value. Also called "negated matching." *
* * @return Filters the values of your tagged resources for only those resources that you tagged that do not have the * same value. Also called "negated matching." */ public java.util.List* Filters the values of your tagged resources for only those resources that you tagged that do not have the same * value. Also called "negated matching." *
* * @param stringNotEquals * Filters the values of your tagged resources for only those resources that you tagged that do not have the * same value. Also called "negated matching." */ public void setStringNotEquals(java.util.Collection* Filters the values of your tagged resources for only those resources that you tagged that do not have the same * value. Also called "negated matching." *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStringNotEquals(java.util.Collection)} or {@link #withStringNotEquals(java.util.Collection)} if you * want to override the existing values. *
* * @param stringNotEquals * Filters the values of your tagged resources for only those resources that you tagged that do not have the * same value. Also called "negated matching." * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringNotEquals(ConditionParameter... stringNotEquals) { if (this.stringNotEquals == null) { setStringNotEquals(new java.util.ArrayList* Filters the values of your tagged resources for only those resources that you tagged that do not have the same * value. Also called "negated matching." *
* * @param stringNotEquals * Filters the values of your tagged resources for only those resources that you tagged that do not have the * same value. Also called "negated matching." * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringNotEquals(java.util.Collection* Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) * anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". *
* * @return Filters the values of your tagged resources for matching tag values with the use of a wildcard character * (*) anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". */ public java.util.List* Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) * anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". *
* * @param stringLike * Filters the values of your tagged resources for matching tag values with the use of a wildcard character * (*) anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". */ public void setStringLike(java.util.Collection* Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) * anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStringLike(java.util.Collection)} or {@link #withStringLike(java.util.Collection)} if you want to * override the existing values. *
* * @param stringLike * Filters the values of your tagged resources for matching tag values with the use of a wildcard character * (*) anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringLike(ConditionParameter... stringLike) { if (this.stringLike == null) { setStringLike(new java.util.ArrayList* Filters the values of your tagged resources for matching tag values with the use of a wildcard character (*) * anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". *
* * @param stringLike * Filters the values of your tagged resources for matching tag values with the use of a wildcard character * (*) anywhere in the string. For example, "prod*" or "*rod*" matches the tag value "production". * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringLike(java.util.Collection* Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) * anywhere in the string. *
* * @return Filters the values of your tagged resources for non-matching tag values with the use of a wildcard * character (*) anywhere in the string. */ public java.util.List* Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) * anywhere in the string. *
* * @param stringNotLike * Filters the values of your tagged resources for non-matching tag values with the use of a wildcard * character (*) anywhere in the string. */ public void setStringNotLike(java.util.Collection* Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) * anywhere in the string. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setStringNotLike(java.util.Collection)} or {@link #withStringNotLike(java.util.Collection)} if you want * to override the existing values. *
* * @param stringNotLike * Filters the values of your tagged resources for non-matching tag values with the use of a wildcard * character (*) anywhere in the string. * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringNotLike(ConditionParameter... stringNotLike) { if (this.stringNotLike == null) { setStringNotLike(new java.util.ArrayList* Filters the values of your tagged resources for non-matching tag values with the use of a wildcard character (*) * anywhere in the string. *
* * @param stringNotLike * Filters the values of your tagged resources for non-matching tag values with the use of a wildcard * character (*) anywhere in the string. * @return Returns a reference to this object so that method calls can be chained together. */ public Conditions withStringNotLike(java.util.Collection