com.amazonaws.services.transcribe.model.ListMedicalScribeJobsResult 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;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ListMedicalScribeJobsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation date,
* with the newest job 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 a summary of information about each result.
*
*/
private java.util.List medicalScribeJobSummaries;
/**
*
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation date,
* with the newest job first.
*
*
* @param status
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation
* date, with the newest job first.
* @see MedicalScribeJobStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation date,
* with the newest job first.
*
*
* @return Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by
* creation date, with the newest job first.
* @see MedicalScribeJobStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation date,
* with the newest job first.
*
*
* @param status
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation
* date, with the newest job first.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MedicalScribeJobStatus
*/
public ListMedicalScribeJobsResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation date,
* with the newest job first.
*
*
* @param status
* Lists all Medical Scribe jobs that have the status specified in your request. Jobs are ordered by creation
* date, with the newest job first.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MedicalScribeJobStatus
*/
public ListMedicalScribeJobsResult withStatus(MedicalScribeJobStatus 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 ListMedicalScribeJobsResult withNextToken(String nextToken) {
setNextToken(nextToken);
return this;
}
/**
*
* Provides a summary of information about each result.
*
*
* @return Provides a summary of information about each result.
*/
public java.util.List getMedicalScribeJobSummaries() {
return medicalScribeJobSummaries;
}
/**
*
* Provides a summary of information about each result.
*
*
* @param medicalScribeJobSummaries
* Provides a summary of information about each result.
*/
public void setMedicalScribeJobSummaries(java.util.Collection medicalScribeJobSummaries) {
if (medicalScribeJobSummaries == null) {
this.medicalScribeJobSummaries = null;
return;
}
this.medicalScribeJobSummaries = new java.util.ArrayList(medicalScribeJobSummaries);
}
/**
*
* Provides a summary of information about each result.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setMedicalScribeJobSummaries(java.util.Collection)} or
* {@link #withMedicalScribeJobSummaries(java.util.Collection)} if you want to override the existing values.
*
*
* @param medicalScribeJobSummaries
* Provides a summary of information about each result.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMedicalScribeJobsResult withMedicalScribeJobSummaries(MedicalScribeJobSummary... medicalScribeJobSummaries) {
if (this.medicalScribeJobSummaries == null) {
setMedicalScribeJobSummaries(new java.util.ArrayList(medicalScribeJobSummaries.length));
}
for (MedicalScribeJobSummary ele : medicalScribeJobSummaries) {
this.medicalScribeJobSummaries.add(ele);
}
return this;
}
/**
*
* Provides a summary of information about each result.
*
*
* @param medicalScribeJobSummaries
* Provides a summary of information about each result.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ListMedicalScribeJobsResult withMedicalScribeJobSummaries(java.util.Collection medicalScribeJobSummaries) {
setMedicalScribeJobSummaries(medicalScribeJobSummaries);
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 (getMedicalScribeJobSummaries() != null)
sb.append("MedicalScribeJobSummaries: ").append(getMedicalScribeJobSummaries());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ListMedicalScribeJobsResult == false)
return false;
ListMedicalScribeJobsResult other = (ListMedicalScribeJobsResult) 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.getMedicalScribeJobSummaries() == null ^ this.getMedicalScribeJobSummaries() == null)
return false;
if (other.getMedicalScribeJobSummaries() != null && other.getMedicalScribeJobSummaries().equals(this.getMedicalScribeJobSummaries()) == 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 + ((getMedicalScribeJobSummaries() == null) ? 0 : getMedicalScribeJobSummaries().hashCode());
return hashCode;
}
@Override
public ListMedicalScribeJobsResult clone() {
try {
return (ListMedicalScribeJobsResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}