com.amazonaws.services.transcribe.model.ListMedicalVocabulariesRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-transcribe Show documentation
/*
* 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.transcribe.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 ListMedicalVocabulariesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* If your ListMedicalVocabularies
request returns more results than can be displayed,
* NextToken
is displayed in the response with an associated string. To get the next page of results,
* copy this string and repeat your request, including NextToken
with the value of the copied string.
* Repeat as needed to view all your results.
*
*/
private String nextToken;
/**
*
* The maximum number of custom medical vocabularies to return in each page of results. If there are fewer results
* than the value that you specify, only the actual results are returned. If you do not specify a value, a default
* of 5 is used.
*
*/
private Integer maxResults;
/**
*
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by creation
* date, with the newest vocabulary first. If you do not include StateEquals
, all custom medical
* vocabularies are returned.
*
*/
private String stateEquals;
/**
*
* Returns only the custom medical vocabularies that contain the specified string. The search is not case sensitive.
*
*/
private String nameContains;
/**
*
* If your ListMedicalVocabularies
request returns more results than can be displayed,
* NextToken
is displayed in the response with an associated string. To get the next page of results,
* copy this string and repeat your request, including NextToken
with the value of the copied string.
* Repeat as needed to view all your results.
*
*
* @param nextToken
* If your ListMedicalVocabularies
request returns more results than can be displayed,
* NextToken
is displayed in the response with an associated string. To get the next page of
* results, copy this string and repeat your request, including NextToken
with the value of the
* copied string. Repeat as needed to view all your results.
*/
public void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
/**
*
* If your ListMedicalVocabularies
request returns more results than can be displayed,
* NextToken
is displayed in the response with an associated string. To get the next page of results,
* copy this string and repeat your request, including NextToken
with the value of the copied string.
* Repeat as needed to view all your results.
*
*
* @return If your ListMedicalVocabularies
request returns more results than can be displayed,
* NextToken
is displayed in the response with an associated string. To get the next page of
* results, copy this string and repeat your request, including NextToken
with the value of the
* copied string. Repeat as needed to view all your results.
*/
public String getNextToken() {
return this.nextToken;
}
/**
*
* If your ListMedicalVocabularies
request returns more results than can be displayed,
* NextToken
is displayed in the response with an associated string. To get the next page of results,
* copy this string and repeat your request, including NextToken
with the value of the copied string.
* Repeat as needed to view all your results.
*
*
* @param nextToken
* If your ListMedicalVocabularies
request returns more results than can be displayed,
* NextToken
is displayed in the response with an associated string. To get the next page of
* results, copy this string and repeat your request, including NextToken
with the value of the
* copied string. Repeat as needed to view all your results.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMedicalVocabulariesRequest withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* The maximum number of custom medical vocabularies to return in each page of results. If there are fewer results
* than the value that you specify, only the actual results are returned. If you do not specify a value, a default
* of 5 is used.
*
*
* @param maxResults
* The maximum number of custom medical vocabularies to return in each page of results. If there are fewer
* results than the value that you specify, only the actual results are returned. If you do not specify a
* value, a default of 5 is used.
*/
public void setMaxResults(Integer maxResults) {
this.maxResults = maxResults;
}
/**
*
* The maximum number of custom medical vocabularies to return in each page of results. If there are fewer results
* than the value that you specify, only the actual results are returned. If you do not specify a value, a default
* of 5 is used.
*
*
* @return The maximum number of custom medical vocabularies to return in each page of results. If there are fewer
* results than the value that you specify, only the actual results are returned. If you do not specify a
* value, a default of 5 is used.
*/
public Integer getMaxResults() {
return this.maxResults;
}
/**
*
* The maximum number of custom medical vocabularies to return in each page of results. If there are fewer results
* than the value that you specify, only the actual results are returned. If you do not specify a value, a default
* of 5 is used.
*
*
* @param maxResults
* The maximum number of custom medical vocabularies to return in each page of results. If there are fewer
* results than the value that you specify, only the actual results are returned. If you do not specify a
* value, a default of 5 is used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMedicalVocabulariesRequest withMaxResults(Integer maxResults) {
setMaxResults(maxResults);
return this;
}
/**
*
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by creation
* date, with the newest vocabulary first. If you do not include StateEquals
, all custom medical
* vocabularies are returned.
*
*
* @param stateEquals
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by
* creation date, with the newest vocabulary first. If you do not include StateEquals
, all
* custom medical vocabularies are returned.
* @see VocabularyState
*/
public void setStateEquals(String stateEquals) {
this.stateEquals = stateEquals;
}
/**
*
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by creation
* date, with the newest vocabulary first. If you do not include StateEquals
, all custom medical
* vocabularies are returned.
*
*
* @return Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by
* creation date, with the newest vocabulary first. If you do not include StateEquals
, all
* custom medical vocabularies are returned.
* @see VocabularyState
*/
public String getStateEquals() {
return this.stateEquals;
}
/**
*
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by creation
* date, with the newest vocabulary first. If you do not include StateEquals
, all custom medical
* vocabularies are returned.
*
*
* @param stateEquals
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by
* creation date, with the newest vocabulary first. If you do not include StateEquals
, all
* custom medical vocabularies are returned.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VocabularyState
*/
public ListMedicalVocabulariesRequest withStateEquals(String stateEquals) {
setStateEquals(stateEquals);
return this;
}
/**
*
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by creation
* date, with the newest vocabulary first. If you do not include StateEquals
, all custom medical
* vocabularies are returned.
*
*
* @param stateEquals
* Returns only custom medical vocabularies with the specified state. Custom vocabularies are ordered by
* creation date, with the newest vocabulary first. If you do not include StateEquals
, all
* custom medical vocabularies are returned.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VocabularyState
*/
public ListMedicalVocabulariesRequest withStateEquals(VocabularyState stateEquals) {
this.stateEquals = stateEquals.toString();
return this;
}
/**
*
* Returns only the custom medical vocabularies that contain the specified string. The search is not case sensitive.
*
*
* @param nameContains
* Returns only the custom medical vocabularies that contain the specified string. The search is not case
* sensitive.
*/
public void setNameContains(String nameContains) {
this.nameContains = nameContains;
}
/**
*
* Returns only the custom medical vocabularies that contain the specified string. The search is not case sensitive.
*
*
* @return Returns only the custom medical vocabularies that contain the specified string. The search is not case
* sensitive.
*/
public String getNameContains() {
return this.nameContains;
}
/**
*
* Returns only the custom medical vocabularies that contain the specified string. The search is not case sensitive.
*
*
* @param nameContains
* Returns only the custom medical vocabularies that contain the specified string. The search is not case
* sensitive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMedicalVocabulariesRequest withNameContains(String nameContains) {
setNameContains(nameContains);
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 (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults()).append(",");
if (getStateEquals() != null)
sb.append("StateEquals: ").append(getStateEquals()).append(",");
if (getNameContains() != null)
sb.append("NameContains: ").append(getNameContains());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListMedicalVocabulariesRequest == false)
return false;
ListMedicalVocabulariesRequest other = (ListMedicalVocabulariesRequest) obj;
if (other.getNextToken() == null ^ this.getNextToken() == null)
return false;
if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == 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.getStateEquals() == null ^ this.getStateEquals() == null)
return false;
if (other.getStateEquals() != null && other.getStateEquals().equals(this.getStateEquals()) == false)
return false;
if (other.getNameContains() == null ^ this.getNameContains() == null)
return false;
if (other.getNameContains() != null && other.getNameContains().equals(this.getNameContains()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
hashCode = prime * hashCode + ((getStateEquals() == null) ? 0 : getStateEquals().hashCode());
hashCode = prime * hashCode + ((getNameContains() == null) ? 0 : getNameContains().hashCode());
return hashCode;
}
@Override
public ListMedicalVocabulariesRequest clone() {
return (ListMedicalVocabulariesRequest) super.clone();
}
}