/* * 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.lexmodelsv2.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 SearchAssociatedTranscriptsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The unique identifier of the bot associated with the transcripts that you are searching. *

*/ private String botId; /** *

* The version of the bot containing the transcripts that you are searching. *

*/ private String botVersion; /** *

* The identifier of the language and locale of the transcripts to search. The string must match one of the * supported locales. For more information, see Supported languages *

*/ private String localeId; /** *

* The unique identifier of the bot recommendation associated with the transcripts to search. *

*/ private String botRecommendationId; /** *

* How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. *

*/ private String searchOrder; /** *

* A list of filter objects. *

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

* The maximum number of bot recommendations to return in each page of results. If there are fewer results than the * max page size, only the actual number of results are returned. *

*/ private Integer maxResults; /** *

* If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified in the * maxResults parameter, an index is returned in the response. Use that index in the nextIndex parameter to return * the next page of results. *

*/ private Integer nextIndex; /** *

* The unique identifier of the bot associated with the transcripts that you are searching. *

* * @param botId * The unique identifier of the bot associated with the transcripts that you are searching. */ public void setBotId(String botId) { this.botId = botId; } /** *

* The unique identifier of the bot associated with the transcripts that you are searching. *

* * @return The unique identifier of the bot associated with the transcripts that you are searching. */ public String getBotId() { return this.botId; } /** *

* The unique identifier of the bot associated with the transcripts that you are searching. *

* * @param botId * The unique identifier of the bot associated with the transcripts that you are searching. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withBotId(String botId) { setBotId(botId); return this; } /** *

* The version of the bot containing the transcripts that you are searching. *

* * @param botVersion * The version of the bot containing the transcripts that you are searching. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** *

* The version of the bot containing the transcripts that you are searching. *

* * @return The version of the bot containing the transcripts that you are searching. */ public String getBotVersion() { return this.botVersion; } /** *

* The version of the bot containing the transcripts that you are searching. *

* * @param botVersion * The version of the bot containing the transcripts that you are searching. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** *

* The identifier of the language and locale of the transcripts to search. The string must match one of the * supported locales. For more information, see Supported languages *

* * @param localeId * The identifier of the language and locale of the transcripts to search. The string must match one of the * supported locales. For more information, see Supported languages */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** *

* The identifier of the language and locale of the transcripts to search. The string must match one of the * supported locales. For more information, see Supported languages *

* * @return The identifier of the language and locale of the transcripts to search. The string must match one of the * supported locales. For more information, see Supported languages */ public String getLocaleId() { return this.localeId; } /** *

* The identifier of the language and locale of the transcripts to search. The string must match one of the * supported locales. For more information, see Supported languages *

* * @param localeId * The identifier of the language and locale of the transcripts to search. The string must match one of the * supported locales. For more information, see Supported languages * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** *

* The unique identifier of the bot recommendation associated with the transcripts to search. *

* * @param botRecommendationId * The unique identifier of the bot recommendation associated with the transcripts to search. */ public void setBotRecommendationId(String botRecommendationId) { this.botRecommendationId = botRecommendationId; } /** *

* The unique identifier of the bot recommendation associated with the transcripts to search. *

* * @return The unique identifier of the bot recommendation associated with the transcripts to search. */ public String getBotRecommendationId() { return this.botRecommendationId; } /** *

* The unique identifier of the bot recommendation associated with the transcripts to search. *

* * @param botRecommendationId * The unique identifier of the bot recommendation associated with the transcripts to search. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withBotRecommendationId(String botRecommendationId) { setBotRecommendationId(botRecommendationId); return this; } /** *

* How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. *

* * @param searchOrder * How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. * @see SearchOrder */ public void setSearchOrder(String searchOrder) { this.searchOrder = searchOrder; } /** *

* How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. *

* * @return How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. * @see SearchOrder */ public String getSearchOrder() { return this.searchOrder; } /** *

* How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. *

* * @param searchOrder * How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. * @return Returns a reference to this object so that method calls can be chained together. * @see SearchOrder */ public SearchAssociatedTranscriptsRequest withSearchOrder(String searchOrder) { setSearchOrder(searchOrder); return this; } /** *

* How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. *

* * @param searchOrder * How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending. * @return Returns a reference to this object so that method calls can be chained together. * @see SearchOrder */ public SearchAssociatedTranscriptsRequest withSearchOrder(SearchOrder searchOrder) { this.searchOrder = searchOrder.toString(); return this; } /** *

* A list of filter objects. *

* * @return A list of filter objects. */ public java.util.List getFilters() { return filters; } /** *

* A list of filter objects. *

* * @param filters * A list of filter objects. */ public void setFilters(java.util.Collection filters) { if (filters == null) { this.filters = null; return; } this.filters = new java.util.ArrayList(filters); } /** *

* A list of filter objects. *

*

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

* * @param filters * A list of filter objects. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withFilters(AssociatedTranscriptFilter... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList(filters.length)); } for (AssociatedTranscriptFilter ele : filters) { this.filters.add(ele); } return this; } /** *

* A list of filter objects. *

* * @param filters * A list of filter objects. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withFilters(java.util.Collection filters) { setFilters(filters); return this; } /** *

* The maximum number of bot recommendations to return in each page of results. If there are fewer results than the * max page size, only the actual number of results are returned. *

* * @param maxResults * The maximum number of bot recommendations to return in each page of results. If there are fewer results * than the max page size, only the actual number of results are returned. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* The maximum number of bot recommendations to return in each page of results. If there are fewer results than the * max page size, only the actual number of results are returned. *

* * @return The maximum number of bot recommendations to return in each page of results. If there are fewer results * than the max page size, only the actual number of results are returned. */ public Integer getMaxResults() { return this.maxResults; } /** *

* The maximum number of bot recommendations to return in each page of results. If there are fewer results than the * max page size, only the actual number of results are returned. *

* * @param maxResults * The maximum number of bot recommendations to return in each page of results. If there are fewer results * than the max page size, only the actual number of results are returned. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified in the * maxResults parameter, an index is returned in the response. Use that index in the nextIndex parameter to return * the next page of results. *

* * @param nextIndex * If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified * in the maxResults parameter, an index is returned in the response. Use that index in the nextIndex * parameter to return the next page of results. */ public void setNextIndex(Integer nextIndex) { this.nextIndex = nextIndex; } /** *

* If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified in the * maxResults parameter, an index is returned in the response. Use that index in the nextIndex parameter to return * the next page of results. *

* * @return If the response from the SearchAssociatedTranscriptsRequest operation contains more results than * specified in the maxResults parameter, an index is returned in the response. Use that index in the * nextIndex parameter to return the next page of results. */ public Integer getNextIndex() { return this.nextIndex; } /** *

* If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified in the * maxResults parameter, an index is returned in the response. Use that index in the nextIndex parameter to return * the next page of results. *

* * @param nextIndex * If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified * in the maxResults parameter, an index is returned in the response. Use that index in the nextIndex * parameter to return the next page of results. * @return Returns a reference to this object so that method calls can be chained together. */ public SearchAssociatedTranscriptsRequest withNextIndex(Integer nextIndex) { setNextIndex(nextIndex); 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 (getBotId() != null) sb.append("BotId: ").append(getBotId()).append(","); if (getBotVersion() != null) sb.append("BotVersion: ").append(getBotVersion()).append(","); if (getLocaleId() != null) sb.append("LocaleId: ").append(getLocaleId()).append(","); if (getBotRecommendationId() != null) sb.append("BotRecommendationId: ").append(getBotRecommendationId()).append(","); if (getSearchOrder() != null) sb.append("SearchOrder: ").append(getSearchOrder()).append(","); if (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextIndex() != null) sb.append("NextIndex: ").append(getNextIndex()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SearchAssociatedTranscriptsRequest == false) return false; SearchAssociatedTranscriptsRequest other = (SearchAssociatedTranscriptsRequest) obj; if (other.getBotId() == null ^ this.getBotId() == null) return false; if (other.getBotId() != null && other.getBotId().equals(this.getBotId()) == false) return false; if (other.getBotVersion() == null ^ this.getBotVersion() == null) return false; if (other.getBotVersion() != null && other.getBotVersion().equals(this.getBotVersion()) == false) return false; if (other.getLocaleId() == null ^ this.getLocaleId() == null) return false; if (other.getLocaleId() != null && other.getLocaleId().equals(this.getLocaleId()) == false) return false; if (other.getBotRecommendationId() == null ^ this.getBotRecommendationId() == null) return false; if (other.getBotRecommendationId() != null && other.getBotRecommendationId().equals(this.getBotRecommendationId()) == false) return false; if (other.getSearchOrder() == null ^ this.getSearchOrder() == null) return false; if (other.getSearchOrder() != null && other.getSearchOrder().equals(this.getSearchOrder()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextIndex() == null ^ this.getNextIndex() == null) return false; if (other.getNextIndex() != null && other.getNextIndex().equals(this.getNextIndex()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBotId() == null) ? 0 : getBotId().hashCode()); hashCode = prime * hashCode + ((getBotVersion() == null) ? 0 : getBotVersion().hashCode()); hashCode = prime * hashCode + ((getLocaleId() == null) ? 0 : getLocaleId().hashCode()); hashCode = prime * hashCode + ((getBotRecommendationId() == null) ? 0 : getBotRecommendationId().hashCode()); hashCode = prime * hashCode + ((getSearchOrder() == null) ? 0 : getSearchOrder().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextIndex() == null) ? 0 : getNextIndex().hashCode()); return hashCode; } @Override public SearchAssociatedTranscriptsRequest clone() { return (SearchAssociatedTranscriptsRequest) super.clone(); } }