/* * 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.rekognition.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains filters for the object labels returned by DetectLabels. Filters can be inclusive, exclusive, or a * combination of both and can be applied to individual labels or entire label categories. To see a list of label * categories, see Detecting Labels. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GeneralLabelsSettings implements Serializable, Cloneable, StructuredPojo { /** ** The labels that should be included in the return from DetectLabels. *
*/ private java.util.List* The labels that should be excluded from the return from DetectLabels. *
*/ private java.util.List* The label categories that should be included in the return from DetectLabels. *
*/ private java.util.List* The label categories that should be excluded from the return from DetectLabels. *
*/ private java.util.List* The labels that should be included in the return from DetectLabels. *
* * @return The labels that should be included in the return from DetectLabels. */ public java.util.List* The labels that should be included in the return from DetectLabels. *
* * @param labelInclusionFilters * The labels that should be included in the return from DetectLabels. */ public void setLabelInclusionFilters(java.util.Collection* The labels that should be included in the return from DetectLabels. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLabelInclusionFilters(java.util.Collection)} or * {@link #withLabelInclusionFilters(java.util.Collection)} if you want to override the existing values. *
* * @param labelInclusionFilters * The labels that should be included in the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelInclusionFilters(String... labelInclusionFilters) { if (this.labelInclusionFilters == null) { setLabelInclusionFilters(new java.util.ArrayList* The labels that should be included in the return from DetectLabels. *
* * @param labelInclusionFilters * The labels that should be included in the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelInclusionFilters(java.util.Collection* The labels that should be excluded from the return from DetectLabels. *
* * @return The labels that should be excluded from the return from DetectLabels. */ public java.util.List* The labels that should be excluded from the return from DetectLabels. *
* * @param labelExclusionFilters * The labels that should be excluded from the return from DetectLabels. */ public void setLabelExclusionFilters(java.util.Collection* The labels that should be excluded from the return from DetectLabels. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLabelExclusionFilters(java.util.Collection)} or * {@link #withLabelExclusionFilters(java.util.Collection)} if you want to override the existing values. *
* * @param labelExclusionFilters * The labels that should be excluded from the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelExclusionFilters(String... labelExclusionFilters) { if (this.labelExclusionFilters == null) { setLabelExclusionFilters(new java.util.ArrayList* The labels that should be excluded from the return from DetectLabels. *
* * @param labelExclusionFilters * The labels that should be excluded from the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelExclusionFilters(java.util.Collection* The label categories that should be included in the return from DetectLabels. *
* * @return The label categories that should be included in the return from DetectLabels. */ public java.util.List* The label categories that should be included in the return from DetectLabels. *
* * @param labelCategoryInclusionFilters * The label categories that should be included in the return from DetectLabels. */ public void setLabelCategoryInclusionFilters(java.util.Collection* The label categories that should be included in the return from DetectLabels. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLabelCategoryInclusionFilters(java.util.Collection)} or * {@link #withLabelCategoryInclusionFilters(java.util.Collection)} if you want to override the existing values. *
* * @param labelCategoryInclusionFilters * The label categories that should be included in the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelCategoryInclusionFilters(String... labelCategoryInclusionFilters) { if (this.labelCategoryInclusionFilters == null) { setLabelCategoryInclusionFilters(new java.util.ArrayList* The label categories that should be included in the return from DetectLabels. *
* * @param labelCategoryInclusionFilters * The label categories that should be included in the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelCategoryInclusionFilters(java.util.Collection* The label categories that should be excluded from the return from DetectLabels. *
* * @return The label categories that should be excluded from the return from DetectLabels. */ public java.util.List* The label categories that should be excluded from the return from DetectLabels. *
* * @param labelCategoryExclusionFilters * The label categories that should be excluded from the return from DetectLabels. */ public void setLabelCategoryExclusionFilters(java.util.Collection* The label categories that should be excluded from the return from DetectLabels. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLabelCategoryExclusionFilters(java.util.Collection)} or * {@link #withLabelCategoryExclusionFilters(java.util.Collection)} if you want to override the existing values. *
* * @param labelCategoryExclusionFilters * The label categories that should be excluded from the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelCategoryExclusionFilters(String... labelCategoryExclusionFilters) { if (this.labelCategoryExclusionFilters == null) { setLabelCategoryExclusionFilters(new java.util.ArrayList* The label categories that should be excluded from the return from DetectLabels. *
* * @param labelCategoryExclusionFilters * The label categories that should be excluded from the return from DetectLabels. * @return Returns a reference to this object so that method calls can be chained together. */ public GeneralLabelsSettings withLabelCategoryExclusionFilters(java.util.Collection