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

com.amazonaws.services.transcribe.model.ListMedicalVocabulariesResult Maven / Gradle / Ivy

Go to download

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

The 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.transcribe.model;

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

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

    /**
     * 

* Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies are * ordered by creation date, with the newest vocabulary first. *

*/ private String status; /** *

* If NextToken is present in your response, it indicates that not all results are displayed. To view * the next set of results, copy the string associated with the NextToken parameter in your results * output, then run your request again including NextToken with the value of the copied string. Repeat * as needed to view all your results. *

*/ private String nextToken; /** *

* Provides information about the custom medical vocabularies that match the criteria specified in your request. *

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

* Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies are * ordered by creation date, with the newest vocabulary first. *

* * @param status * Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies * are ordered by creation date, with the newest vocabulary first. * @see VocabularyState */ public void setStatus(String status) { this.status = status; } /** *

* Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies are * ordered by creation date, with the newest vocabulary first. *

* * @return Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies * are ordered by creation date, with the newest vocabulary first. * @see VocabularyState */ public String getStatus() { return this.status; } /** *

* Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies are * ordered by creation date, with the newest vocabulary first. *

* * @param status * Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies * are ordered by creation date, with the newest vocabulary first. * @return Returns a reference to this object so that method calls can be chained together. * @see VocabularyState */ public ListMedicalVocabulariesResult withStatus(String status) { setStatus(status); return this; } /** *

* Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies are * ordered by creation date, with the newest vocabulary first. *

* * @param status * Lists all custom medical vocabularies that have the status specified in your request. Custom vocabularies * are ordered by creation date, with the newest vocabulary first. * @return Returns a reference to this object so that method calls can be chained together. * @see VocabularyState */ public ListMedicalVocabulariesResult withStatus(VocabularyState status) { this.status = status.toString(); return this; } /** *

* If NextToken is present in your response, it indicates that not all results are displayed. To view * the next set of results, copy the string associated with the NextToken parameter in your results * output, then run your request again including NextToken with the value of the copied string. Repeat * as needed to view all your results. *

* * @param nextToken * If NextToken is present in your response, it indicates that not all results are displayed. To * view the next set of results, copy the string associated with the NextToken parameter in your * results output, then run your request again 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 NextToken is present in your response, it indicates that not all results are displayed. To view * the next set of results, copy the string associated with the NextToken parameter in your results * output, then run your request again including NextToken with the value of the copied string. Repeat * as needed to view all your results. *

* * @return If NextToken is present in your response, it indicates that not all results are displayed. * To view the next set of results, copy the string associated with the NextToken parameter in * your results output, then run your request again including NextToken with the value of the * copied string. Repeat as needed to view all your results. */ public String getNextToken() { return this.nextToken; } /** *

* If NextToken is present in your response, it indicates that not all results are displayed. To view * the next set of results, copy the string associated with the NextToken parameter in your results * output, then run your request again including NextToken with the value of the copied string. Repeat * as needed to view all your results. *

* * @param nextToken * If NextToken is present in your response, it indicates that not all results are displayed. To * view the next set of results, copy the string associated with the NextToken parameter in your * results output, then run your request again 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 ListMedicalVocabulariesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Provides information about the custom medical vocabularies that match the criteria specified in your request. *

* * @return Provides information about the custom medical vocabularies that match the criteria specified in your * request. */ public java.util.List getVocabularies() { return vocabularies; } /** *

* Provides information about the custom medical vocabularies that match the criteria specified in your request. *

* * @param vocabularies * Provides information about the custom medical vocabularies that match the criteria specified in your * request. */ public void setVocabularies(java.util.Collection vocabularies) { if (vocabularies == null) { this.vocabularies = null; return; } this.vocabularies = new java.util.ArrayList(vocabularies); } /** *

* Provides information about the custom medical vocabularies that match the criteria specified in your request. *

*

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

* * @param vocabularies * Provides information about the custom medical vocabularies that match the criteria specified in your * request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListMedicalVocabulariesResult withVocabularies(VocabularyInfo... vocabularies) { if (this.vocabularies == null) { setVocabularies(new java.util.ArrayList(vocabularies.length)); } for (VocabularyInfo ele : vocabularies) { this.vocabularies.add(ele); } return this; } /** *

* Provides information about the custom medical vocabularies that match the criteria specified in your request. *

* * @param vocabularies * Provides information about the custom medical vocabularies that match the criteria specified in your * request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListMedicalVocabulariesResult withVocabularies(java.util.Collection vocabularies) { setVocabularies(vocabularies); 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 (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getVocabularies() != null) sb.append("Vocabularies: ").append(getVocabularies()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListMedicalVocabulariesResult == false) return false; ListMedicalVocabulariesResult other = (ListMedicalVocabulariesResult) obj; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getVocabularies() == null ^ this.getVocabularies() == null) return false; if (other.getVocabularies() != null && other.getVocabularies().equals(this.getVocabularies()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getVocabularies() == null) ? 0 : getVocabularies().hashCode()); return hashCode; } @Override public ListMedicalVocabulariesResult clone() { try { return (ListMedicalVocabulariesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy