All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kendra.model.UpdateFeaturedResultsSetRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWSKendraFrontend module holds the client classes that are used for communicating with AWSKendraFrontend Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.kendra.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateFeaturedResultsSetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The identifier of the index used for featuring results. *

*/ private String indexId; /** *

* The identifier of the set of featured results that you want to update. *

*/ private String featuredResultsSetId; /** *

* A new name for the set of featured results. *

*/ private String featuredResultsSetName; /** *

* A new description for the set of featured results. *

*/ private String description; /** *

* You can set the status to ACTIVE or INACTIVE. When the value is ACTIVE, * featured results are ready for use. You can still configure your settings before setting the status to * ACTIVE. The queries you specify for featured results must be unique per featured results set for * each index, whether the status is ACTIVE or INACTIVE. *

*/ private String status; /** *

* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *

*/ private java.util.List queryTexts; /** *

* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of featured documents, see FeaturedResultsSet. *

*/ private java.util.List featuredDocuments; /** *

* The identifier of the index used for featuring results. *

* * @param indexId * The identifier of the index used for featuring results. */ public void setIndexId(String indexId) { this.indexId = indexId; } /** *

* The identifier of the index used for featuring results. *

* * @return The identifier of the index used for featuring results. */ public String getIndexId() { return this.indexId; } /** *

* The identifier of the index used for featuring results. *

* * @param indexId * The identifier of the index used for featuring results. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withIndexId(String indexId) { setIndexId(indexId); return this; } /** *

* The identifier of the set of featured results that you want to update. *

* * @param featuredResultsSetId * The identifier of the set of featured results that you want to update. */ public void setFeaturedResultsSetId(String featuredResultsSetId) { this.featuredResultsSetId = featuredResultsSetId; } /** *

* The identifier of the set of featured results that you want to update. *

* * @return The identifier of the set of featured results that you want to update. */ public String getFeaturedResultsSetId() { return this.featuredResultsSetId; } /** *

* The identifier of the set of featured results that you want to update. *

* * @param featuredResultsSetId * The identifier of the set of featured results that you want to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withFeaturedResultsSetId(String featuredResultsSetId) { setFeaturedResultsSetId(featuredResultsSetId); return this; } /** *

* A new name for the set of featured results. *

* * @param featuredResultsSetName * A new name for the set of featured results. */ public void setFeaturedResultsSetName(String featuredResultsSetName) { this.featuredResultsSetName = featuredResultsSetName; } /** *

* A new name for the set of featured results. *

* * @return A new name for the set of featured results. */ public String getFeaturedResultsSetName() { return this.featuredResultsSetName; } /** *

* A new name for the set of featured results. *

* * @param featuredResultsSetName * A new name for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withFeaturedResultsSetName(String featuredResultsSetName) { setFeaturedResultsSetName(featuredResultsSetName); return this; } /** *

* A new description for the set of featured results. *

* * @param description * A new description for the set of featured results. */ public void setDescription(String description) { this.description = description; } /** *

* A new description for the set of featured results. *

* * @return A new description for the set of featured results. */ public String getDescription() { return this.description; } /** *

* A new description for the set of featured results. *

* * @param description * A new description for the set of featured results. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withDescription(String description) { setDescription(description); return this; } /** *

* You can set the status to ACTIVE or INACTIVE. When the value is ACTIVE, * featured results are ready for use. You can still configure your settings before setting the status to * ACTIVE. The queries you specify for featured results must be unique per featured results set for * each index, whether the status is ACTIVE or INACTIVE. *

* * @param status * You can set the status to ACTIVE or INACTIVE. When the value is * ACTIVE, featured results are ready for use. You can still configure your settings before * setting the status to ACTIVE. The queries you specify for featured results must be unique per * featured results set for each index, whether the status is ACTIVE or INACTIVE. * @see FeaturedResultsSetStatus */ public void setStatus(String status) { this.status = status; } /** *

* You can set the status to ACTIVE or INACTIVE. When the value is ACTIVE, * featured results are ready for use. You can still configure your settings before setting the status to * ACTIVE. The queries you specify for featured results must be unique per featured results set for * each index, whether the status is ACTIVE or INACTIVE. *

* * @return You can set the status to ACTIVE or INACTIVE. When the value is * ACTIVE, featured results are ready for use. You can still configure your settings before * setting the status to ACTIVE. The queries you specify for featured results must be unique * per featured results set for each index, whether the status is ACTIVE or * INACTIVE. * @see FeaturedResultsSetStatus */ public String getStatus() { return this.status; } /** *

* You can set the status to ACTIVE or INACTIVE. When the value is ACTIVE, * featured results are ready for use. You can still configure your settings before setting the status to * ACTIVE. The queries you specify for featured results must be unique per featured results set for * each index, whether the status is ACTIVE or INACTIVE. *

* * @param status * You can set the status to ACTIVE or INACTIVE. When the value is * ACTIVE, featured results are ready for use. You can still configure your settings before * setting the status to ACTIVE. The queries you specify for featured results must be unique per * featured results set for each index, whether the status is ACTIVE or INACTIVE. * @return Returns a reference to this object so that method calls can be chained together. * @see FeaturedResultsSetStatus */ public UpdateFeaturedResultsSetRequest withStatus(String status) { setStatus(status); return this; } /** *

* You can set the status to ACTIVE or INACTIVE. When the value is ACTIVE, * featured results are ready for use. You can still configure your settings before setting the status to * ACTIVE. The queries you specify for featured results must be unique per featured results set for * each index, whether the status is ACTIVE or INACTIVE. *

* * @param status * You can set the status to ACTIVE or INACTIVE. When the value is * ACTIVE, featured results are ready for use. You can still configure your settings before * setting the status to ACTIVE. The queries you specify for featured results must be unique per * featured results set for each index, whether the status is ACTIVE or INACTIVE. * @return Returns a reference to this object so that method calls can be chained together. * @see FeaturedResultsSetStatus */ public UpdateFeaturedResultsSetRequest withStatus(FeaturedResultsSetStatus status) { this.status = status.toString(); return this; } /** *

* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *

* * @return A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. */ public java.util.List getQueryTexts() { return queryTexts; } /** *

* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *

* * @param queryTexts * A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. */ public void setQueryTexts(java.util.Collection queryTexts) { if (queryTexts == null) { this.queryTexts = null; return; } this.queryTexts = new java.util.ArrayList(queryTexts); } /** *

* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setQueryTexts(java.util.Collection)} or {@link #withQueryTexts(java.util.Collection)} if you want to * override the existing values. *

* * @param queryTexts * A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withQueryTexts(String... queryTexts) { if (this.queryTexts == null) { setQueryTexts(new java.util.ArrayList(queryTexts.length)); } for (String ele : queryTexts) { this.queryTexts.add(ele); } return this; } /** *

* A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. *

* * @param queryTexts * A list of queries for featuring results. For more information on the list of queries, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withQueryTexts(java.util.Collection queryTexts) { setQueryTexts(queryTexts); return this; } /** *

* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of featured documents, see FeaturedResultsSet. *

* * @return A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of featured documents, see FeaturedResultsSet. */ public java.util.List getFeaturedDocuments() { return featuredDocuments; } /** *

* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of featured documents, see FeaturedResultsSet. *

* * @param featuredDocuments * A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of featured documents, see FeaturedResultsSet. */ public void setFeaturedDocuments(java.util.Collection featuredDocuments) { if (featuredDocuments == null) { this.featuredDocuments = null; return; } this.featuredDocuments = new java.util.ArrayList(featuredDocuments); } /** *

* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of featured documents, see FeaturedResultsSet. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFeaturedDocuments(java.util.Collection)} or {@link #withFeaturedDocuments(java.util.Collection)} if * you want to override the existing values. *

* * @param featuredDocuments * A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of featured documents, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withFeaturedDocuments(FeaturedDocument... featuredDocuments) { if (this.featuredDocuments == null) { setFeaturedDocuments(new java.util.ArrayList(featuredDocuments.length)); } for (FeaturedDocument ele : featuredDocuments) { this.featuredDocuments.add(ele); } return this; } /** *

* A list of document IDs for the documents you want to feature at the top of the search results page. For more * information on the list of featured documents, see FeaturedResultsSet. *

* * @param featuredDocuments * A list of document IDs for the documents you want to feature at the top of the search results page. For * more information on the list of featured documents, see FeaturedResultsSet. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeaturedResultsSetRequest withFeaturedDocuments(java.util.Collection featuredDocuments) { setFeaturedDocuments(featuredDocuments); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getIndexId() != null) sb.append("IndexId: ").append(getIndexId()).append(","); if (getFeaturedResultsSetId() != null) sb.append("FeaturedResultsSetId: ").append(getFeaturedResultsSetId()).append(","); if (getFeaturedResultsSetName() != null) sb.append("FeaturedResultsSetName: ").append(getFeaturedResultsSetName()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getQueryTexts() != null) sb.append("QueryTexts: ").append(getQueryTexts()).append(","); if (getFeaturedDocuments() != null) sb.append("FeaturedDocuments: ").append(getFeaturedDocuments()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateFeaturedResultsSetRequest == false) return false; UpdateFeaturedResultsSetRequest other = (UpdateFeaturedResultsSetRequest) obj; if (other.getIndexId() == null ^ this.getIndexId() == null) return false; if (other.getIndexId() != null && other.getIndexId().equals(this.getIndexId()) == false) return false; if (other.getFeaturedResultsSetId() == null ^ this.getFeaturedResultsSetId() == null) return false; if (other.getFeaturedResultsSetId() != null && other.getFeaturedResultsSetId().equals(this.getFeaturedResultsSetId()) == false) return false; if (other.getFeaturedResultsSetName() == null ^ this.getFeaturedResultsSetName() == null) return false; if (other.getFeaturedResultsSetName() != null && other.getFeaturedResultsSetName().equals(this.getFeaturedResultsSetName()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getQueryTexts() == null ^ this.getQueryTexts() == null) return false; if (other.getQueryTexts() != null && other.getQueryTexts().equals(this.getQueryTexts()) == false) return false; if (other.getFeaturedDocuments() == null ^ this.getFeaturedDocuments() == null) return false; if (other.getFeaturedDocuments() != null && other.getFeaturedDocuments().equals(this.getFeaturedDocuments()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getIndexId() == null) ? 0 : getIndexId().hashCode()); hashCode = prime * hashCode + ((getFeaturedResultsSetId() == null) ? 0 : getFeaturedResultsSetId().hashCode()); hashCode = prime * hashCode + ((getFeaturedResultsSetName() == null) ? 0 : getFeaturedResultsSetName().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getQueryTexts() == null) ? 0 : getQueryTexts().hashCode()); hashCode = prime * hashCode + ((getFeaturedDocuments() == null) ? 0 : getFeaturedDocuments().hashCode()); return hashCode; } @Override public UpdateFeaturedResultsSetRequest clone() { return (UpdateFeaturedResultsSetRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy