/* * Copyright 2010-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; /** *
* 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. *
*/ public class GeneralLabelsSettings implements Serializable { /** ** 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelInclusionFilters
* The labels that should be included in the return from * DetectLabels. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GeneralLabelsSettings withLabelInclusionFilters(String... labelInclusionFilters) { if (getLabelInclusionFilters() == null) { this.labelInclusionFilters = new java.util.ArrayList* The labels that should be included in the return from DetectLabels. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelInclusionFilters
* The labels that should be included in the return from * DetectLabels. *
* @return A reference to this updated 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelExclusionFilters
* The labels that should be excluded from the return from * DetectLabels. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GeneralLabelsSettings withLabelExclusionFilters(String... labelExclusionFilters) { if (getLabelExclusionFilters() == null) { this.labelExclusionFilters = new java.util.ArrayList* The labels that should be excluded from the return from DetectLabels. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelExclusionFilters
* The labels that should be excluded from the return from * DetectLabels. *
* @return A reference to this updated 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelCategoryInclusionFilters
* The label categories that should be included in the return * from DetectLabels. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GeneralLabelsSettings withLabelCategoryInclusionFilters( String... labelCategoryInclusionFilters) { if (getLabelCategoryInclusionFilters() == null) { this.labelCategoryInclusionFilters = new java.util.ArrayList* The label categories that should be included in the return from * DetectLabels. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelCategoryInclusionFilters
* The label categories that should be included in the return * from DetectLabels. *
* @return A reference to this updated 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. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelCategoryExclusionFilters
* The label categories that should be excluded from the return * from DetectLabels. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GeneralLabelsSettings withLabelCategoryExclusionFilters( String... labelCategoryExclusionFilters) { if (getLabelCategoryExclusionFilters() == null) { this.labelCategoryExclusionFilters = new java.util.ArrayList* The label categories that should be excluded from the return from * DetectLabels. *
** Returns a reference to this object so that method calls can be chained * together. * * @param labelCategoryExclusionFilters
* The label categories that should be excluded from the return * from DetectLabels. *
* @return A reference to this updated object so that method calls can be * chained together. */ public GeneralLabelsSettings withLabelCategoryExclusionFilters( java.util.Collection