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

software.amazon.awssdk.services.transcribe.model.MedicalTranscriptionJobSummary Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.29.39
Show newest version
/*
 * Copyright 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 software.amazon.awssdk.services.transcribe.model;

import java.beans.Transient;
import java.io.Serializable;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Provides summary information about a transcription job. *

*/ @Generated("software.amazon.awssdk:codegen") public final class MedicalTranscriptionJobSummary implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField MEDICAL_TRANSCRIPTION_JOB_NAME_FIELD = SdkField . builder(MarshallingType.STRING) .memberName("MedicalTranscriptionJobName") .getter(getter(MedicalTranscriptionJobSummary::medicalTranscriptionJobName)) .setter(setter(Builder::medicalTranscriptionJobName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MedicalTranscriptionJobName") .build()).build(); private static final SdkField CREATION_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("CreationTime").getter(getter(MedicalTranscriptionJobSummary::creationTime)) .setter(setter(Builder::creationTime)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationTime").build()).build(); private static final SdkField START_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("StartTime").getter(getter(MedicalTranscriptionJobSummary::startTime)).setter(setter(Builder::startTime)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StartTime").build()).build(); private static final SdkField COMPLETION_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("CompletionTime").getter(getter(MedicalTranscriptionJobSummary::completionTime)) .setter(setter(Builder::completionTime)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CompletionTime").build()).build(); private static final SdkField LANGUAGE_CODE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("LanguageCode").getter(getter(MedicalTranscriptionJobSummary::languageCodeAsString)) .setter(setter(Builder::languageCode)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LanguageCode").build()).build(); private static final SdkField TRANSCRIPTION_JOB_STATUS_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("TranscriptionJobStatus").getter(getter(MedicalTranscriptionJobSummary::transcriptionJobStatusAsString)) .setter(setter(Builder::transcriptionJobStatus)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("TranscriptionJobStatus").build()) .build(); private static final SdkField FAILURE_REASON_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("FailureReason").getter(getter(MedicalTranscriptionJobSummary::failureReason)) .setter(setter(Builder::failureReason)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("FailureReason").build()).build(); private static final SdkField OUTPUT_LOCATION_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("OutputLocationType").getter(getter(MedicalTranscriptionJobSummary::outputLocationTypeAsString)) .setter(setter(Builder::outputLocationType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OutputLocationType").build()) .build(); private static final SdkField SPECIALTY_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Specialty").getter(getter(MedicalTranscriptionJobSummary::specialtyAsString)) .setter(setter(Builder::specialty)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Specialty").build()).build(); private static final SdkField CONTENT_IDENTIFICATION_TYPE_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ContentIdentificationType") .getter(getter(MedicalTranscriptionJobSummary::contentIdentificationTypeAsString)) .setter(setter(Builder::contentIdentificationType)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ContentIdentificationType").build()) .build(); private static final SdkField TYPE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Type") .getter(getter(MedicalTranscriptionJobSummary::typeAsString)).setter(setter(Builder::type)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Type").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList( MEDICAL_TRANSCRIPTION_JOB_NAME_FIELD, CREATION_TIME_FIELD, START_TIME_FIELD, COMPLETION_TIME_FIELD, LANGUAGE_CODE_FIELD, TRANSCRIPTION_JOB_STATUS_FIELD, FAILURE_REASON_FIELD, OUTPUT_LOCATION_TYPE_FIELD, SPECIALTY_FIELD, CONTENT_IDENTIFICATION_TYPE_FIELD, TYPE_FIELD)); private static final long serialVersionUID = 1L; private final String medicalTranscriptionJobName; private final Instant creationTime; private final Instant startTime; private final Instant completionTime; private final String languageCode; private final String transcriptionJobStatus; private final String failureReason; private final String outputLocationType; private final String specialty; private final String contentIdentificationType; private final String type; private MedicalTranscriptionJobSummary(BuilderImpl builder) { this.medicalTranscriptionJobName = builder.medicalTranscriptionJobName; this.creationTime = builder.creationTime; this.startTime = builder.startTime; this.completionTime = builder.completionTime; this.languageCode = builder.languageCode; this.transcriptionJobStatus = builder.transcriptionJobStatus; this.failureReason = builder.failureReason; this.outputLocationType = builder.outputLocationType; this.specialty = builder.specialty; this.contentIdentificationType = builder.contentIdentificationType; this.type = builder.type; } /** *

* The name of a medical transcription job. *

* * @return The name of a medical transcription job. */ public final String medicalTranscriptionJobName() { return medicalTranscriptionJobName; } /** *

* A timestamp that shows when the medical transcription job was created. *

* * @return A timestamp that shows when the medical transcription job was created. */ public final Instant creationTime() { return creationTime; } /** *

* A timestamp that shows when the job began processing. *

* * @return A timestamp that shows when the job began processing. */ public final Instant startTime() { return startTime; } /** *

* A timestamp that shows when the job was completed. *

* * @return A timestamp that shows when the job was completed. */ public final Instant completionTime() { return completionTime; } /** *

* The language of the transcript in the source audio file. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #languageCode} will * return {@link LanguageCode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #languageCodeAsString}. *

* * @return The language of the transcript in the source audio file. * @see LanguageCode */ public final LanguageCode languageCode() { return LanguageCode.fromValue(languageCode); } /** *

* The language of the transcript in the source audio file. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #languageCode} will * return {@link LanguageCode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #languageCodeAsString}. *

* * @return The language of the transcript in the source audio file. * @see LanguageCode */ public final String languageCodeAsString() { return languageCode; } /** *

* The status of the medical transcription job. *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #transcriptionJobStatus} will return {@link TranscriptionJobStatus#UNKNOWN_TO_SDK_VERSION}. The raw value * returned by the service is available from {@link #transcriptionJobStatusAsString}. *

* * @return The status of the medical transcription job. * @see TranscriptionJobStatus */ public final TranscriptionJobStatus transcriptionJobStatus() { return TranscriptionJobStatus.fromValue(transcriptionJobStatus); } /** *

* The status of the medical transcription job. *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #transcriptionJobStatus} will return {@link TranscriptionJobStatus#UNKNOWN_TO_SDK_VERSION}. The raw value * returned by the service is available from {@link #transcriptionJobStatusAsString}. *

* * @return The status of the medical transcription job. * @see TranscriptionJobStatus */ public final String transcriptionJobStatusAsString() { return transcriptionJobStatus; } /** *

* If the TranscriptionJobStatus field is FAILED, a description of the error. *

* * @return If the TranscriptionJobStatus field is FAILED, a description of the error. */ public final String failureReason() { return failureReason; } /** *

* Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; if you * don't already have an S3 bucket, one is created based on the path you add. *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #outputLocationType} will return {@link OutputLocationType#UNKNOWN_TO_SDK_VERSION}. The raw value returned * by the service is available from {@link #outputLocationTypeAsString}. *

* * @return Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; if * you don't already have an S3 bucket, one is created based on the path you add. * @see OutputLocationType */ public final OutputLocationType outputLocationType() { return OutputLocationType.fromValue(outputLocationType); } /** *

* Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; if you * don't already have an S3 bucket, one is created based on the path you add. *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #outputLocationType} will return {@link OutputLocationType#UNKNOWN_TO_SDK_VERSION}. The raw value returned * by the service is available from {@link #outputLocationTypeAsString}. *

* * @return Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; if * you don't already have an S3 bucket, one is created based on the path you add. * @see OutputLocationType */ public final String outputLocationTypeAsString() { return outputLocationType; } /** *

* The medical specialty of the transcription job. Refer to Transcribing a * medical conversationfor a list of supported specialties. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #specialty} will * return {@link Specialty#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #specialtyAsString}. *

* * @return The medical specialty of the transcription job. Refer to Transcribing * a medical conversationfor a list of supported specialties. * @see Specialty */ public final Specialty specialty() { return Specialty.fromValue(specialty); } /** *

* The medical specialty of the transcription job. Refer to Transcribing a * medical conversationfor a list of supported specialties. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #specialty} will * return {@link Specialty#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #specialtyAsString}. *

* * @return The medical specialty of the transcription job. Refer to Transcribing * a medical conversationfor a list of supported specialties. * @see Specialty */ public final String specialtyAsString() { return specialty; } /** *

* Shows the type of information you've configured Amazon Transcribe Medical to identify in a transcription job. If * the value is PHI, you've configured the transcription job to identify personal health information * (PHI). *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #contentIdentificationType} will return {@link MedicalContentIdentificationType#UNKNOWN_TO_SDK_VERSION}. * The raw value returned by the service is available from {@link #contentIdentificationTypeAsString}. *

* * @return Shows the type of information you've configured Amazon Transcribe Medical to identify in a transcription * job. If the value is PHI, you've configured the transcription job to identify personal * health information (PHI). * @see MedicalContentIdentificationType */ public final MedicalContentIdentificationType contentIdentificationType() { return MedicalContentIdentificationType.fromValue(contentIdentificationType); } /** *

* Shows the type of information you've configured Amazon Transcribe Medical to identify in a transcription job. If * the value is PHI, you've configured the transcription job to identify personal health information * (PHI). *

*

* If the service returns an enum value that is not available in the current SDK version, * {@link #contentIdentificationType} will return {@link MedicalContentIdentificationType#UNKNOWN_TO_SDK_VERSION}. * The raw value returned by the service is available from {@link #contentIdentificationTypeAsString}. *

* * @return Shows the type of information you've configured Amazon Transcribe Medical to identify in a transcription * job. If the value is PHI, you've configured the transcription job to identify personal * health information (PHI). * @see MedicalContentIdentificationType */ public final String contentIdentificationTypeAsString() { return contentIdentificationType; } /** *

* The speech of the clinician in the input audio. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return * {@link Type#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #typeAsString}. *

* * @return The speech of the clinician in the input audio. * @see Type */ public final Type type() { return Type.fromValue(type); } /** *

* The speech of the clinician in the input audio. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return * {@link Type#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #typeAsString}. *

* * @return The speech of the clinician in the input audio. * @see Type */ public final String typeAsString() { return type; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(medicalTranscriptionJobName()); hashCode = 31 * hashCode + Objects.hashCode(creationTime()); hashCode = 31 * hashCode + Objects.hashCode(startTime()); hashCode = 31 * hashCode + Objects.hashCode(completionTime()); hashCode = 31 * hashCode + Objects.hashCode(languageCodeAsString()); hashCode = 31 * hashCode + Objects.hashCode(transcriptionJobStatusAsString()); hashCode = 31 * hashCode + Objects.hashCode(failureReason()); hashCode = 31 * hashCode + Objects.hashCode(outputLocationTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(specialtyAsString()); hashCode = 31 * hashCode + Objects.hashCode(contentIdentificationTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(typeAsString()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof MedicalTranscriptionJobSummary)) { return false; } MedicalTranscriptionJobSummary other = (MedicalTranscriptionJobSummary) obj; return Objects.equals(medicalTranscriptionJobName(), other.medicalTranscriptionJobName()) && Objects.equals(creationTime(), other.creationTime()) && Objects.equals(startTime(), other.startTime()) && Objects.equals(completionTime(), other.completionTime()) && Objects.equals(languageCodeAsString(), other.languageCodeAsString()) && Objects.equals(transcriptionJobStatusAsString(), other.transcriptionJobStatusAsString()) && Objects.equals(failureReason(), other.failureReason()) && Objects.equals(outputLocationTypeAsString(), other.outputLocationTypeAsString()) && Objects.equals(specialtyAsString(), other.specialtyAsString()) && Objects.equals(contentIdentificationTypeAsString(), other.contentIdentificationTypeAsString()) && Objects.equals(typeAsString(), other.typeAsString()); } /** * 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. */ @Override public final String toString() { return ToString.builder("MedicalTranscriptionJobSummary") .add("MedicalTranscriptionJobName", medicalTranscriptionJobName()).add("CreationTime", creationTime()) .add("StartTime", startTime()).add("CompletionTime", completionTime()) .add("LanguageCode", languageCodeAsString()).add("TranscriptionJobStatus", transcriptionJobStatusAsString()) .add("FailureReason", failureReason()).add("OutputLocationType", outputLocationTypeAsString()) .add("Specialty", specialtyAsString()).add("ContentIdentificationType", contentIdentificationTypeAsString()) .add("Type", typeAsString()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "MedicalTranscriptionJobName": return Optional.ofNullable(clazz.cast(medicalTranscriptionJobName())); case "CreationTime": return Optional.ofNullable(clazz.cast(creationTime())); case "StartTime": return Optional.ofNullable(clazz.cast(startTime())); case "CompletionTime": return Optional.ofNullable(clazz.cast(completionTime())); case "LanguageCode": return Optional.ofNullable(clazz.cast(languageCodeAsString())); case "TranscriptionJobStatus": return Optional.ofNullable(clazz.cast(transcriptionJobStatusAsString())); case "FailureReason": return Optional.ofNullable(clazz.cast(failureReason())); case "OutputLocationType": return Optional.ofNullable(clazz.cast(outputLocationTypeAsString())); case "Specialty": return Optional.ofNullable(clazz.cast(specialtyAsString())); case "ContentIdentificationType": return Optional.ofNullable(clazz.cast(contentIdentificationTypeAsString())); case "Type": return Optional.ofNullable(clazz.cast(typeAsString())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((MedicalTranscriptionJobSummary) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The name of a medical transcription job. *

* * @param medicalTranscriptionJobName * The name of a medical transcription job. * @return Returns a reference to this object so that method calls can be chained together. */ Builder medicalTranscriptionJobName(String medicalTranscriptionJobName); /** *

* A timestamp that shows when the medical transcription job was created. *

* * @param creationTime * A timestamp that shows when the medical transcription job was created. * @return Returns a reference to this object so that method calls can be chained together. */ Builder creationTime(Instant creationTime); /** *

* A timestamp that shows when the job began processing. *

* * @param startTime * A timestamp that shows when the job began processing. * @return Returns a reference to this object so that method calls can be chained together. */ Builder startTime(Instant startTime); /** *

* A timestamp that shows when the job was completed. *

* * @param completionTime * A timestamp that shows when the job was completed. * @return Returns a reference to this object so that method calls can be chained together. */ Builder completionTime(Instant completionTime); /** *

* The language of the transcript in the source audio file. *

* * @param languageCode * The language of the transcript in the source audio file. * @see LanguageCode * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ Builder languageCode(String languageCode); /** *

* The language of the transcript in the source audio file. *

* * @param languageCode * The language of the transcript in the source audio file. * @see LanguageCode * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ Builder languageCode(LanguageCode languageCode); /** *

* The status of the medical transcription job. *

* * @param transcriptionJobStatus * The status of the medical transcription job. * @see TranscriptionJobStatus * @return Returns a reference to this object so that method calls can be chained together. * @see TranscriptionJobStatus */ Builder transcriptionJobStatus(String transcriptionJobStatus); /** *

* The status of the medical transcription job. *

* * @param transcriptionJobStatus * The status of the medical transcription job. * @see TranscriptionJobStatus * @return Returns a reference to this object so that method calls can be chained together. * @see TranscriptionJobStatus */ Builder transcriptionJobStatus(TranscriptionJobStatus transcriptionJobStatus); /** *

* If the TranscriptionJobStatus field is FAILED, a description of the error. *

* * @param failureReason * If the TranscriptionJobStatus field is FAILED, a description of the error. * @return Returns a reference to this object so that method calls can be chained together. */ Builder failureReason(String failureReason); /** *

* Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; if you * don't already have an S3 bucket, one is created based on the path you add. *

* * @param outputLocationType * Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; * if you don't already have an S3 bucket, one is created based on the path you add. * @see OutputLocationType * @return Returns a reference to this object so that method calls can be chained together. * @see OutputLocationType */ Builder outputLocationType(String outputLocationType); /** *

* Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; if you * don't already have an S3 bucket, one is created based on the path you add. *

* * @param outputLocationType * Indicates the location of the transcription job's output. This field must be the path of an S3 bucket; * if you don't already have an S3 bucket, one is created based on the path you add. * @see OutputLocationType * @return Returns a reference to this object so that method calls can be chained together. * @see OutputLocationType */ Builder outputLocationType(OutputLocationType outputLocationType); /** *

* The medical specialty of the transcription job. Refer to Transcribing a * medical conversationfor a list of supported specialties. *

* * @param specialty * The medical specialty of the transcription job. Refer to Transcribing a medical conversationfor a list of supported specialties. * @see Specialty * @return Returns a reference to this object so that method calls can be chained together. * @see Specialty */ Builder specialty(String specialty); /** *

* The medical specialty of the transcription job. Refer to Transcribing a * medical conversationfor a list of supported specialties. *

* * @param specialty * The medical specialty of the transcription job. Refer to Transcribing a medical conversationfor a list of supported specialties. * @see Specialty * @return Returns a reference to this object so that method calls can be chained together. * @see Specialty */ Builder specialty(Specialty specialty); /** *

* Shows the type of information you've configured Amazon Transcribe Medical to identify in a transcription job. * If the value is PHI, you've configured the transcription job to identify personal health * information (PHI). *

* * @param contentIdentificationType * Shows the type of information you've configured Amazon Transcribe Medical to identify in a * transcription job. If the value is PHI, you've configured the transcription job to * identify personal health information (PHI). * @see MedicalContentIdentificationType * @return Returns a reference to this object so that method calls can be chained together. * @see MedicalContentIdentificationType */ Builder contentIdentificationType(String contentIdentificationType); /** *

* Shows the type of information you've configured Amazon Transcribe Medical to identify in a transcription job. * If the value is PHI, you've configured the transcription job to identify personal health * information (PHI). *

* * @param contentIdentificationType * Shows the type of information you've configured Amazon Transcribe Medical to identify in a * transcription job. If the value is PHI, you've configured the transcription job to * identify personal health information (PHI). * @see MedicalContentIdentificationType * @return Returns a reference to this object so that method calls can be chained together. * @see MedicalContentIdentificationType */ Builder contentIdentificationType(MedicalContentIdentificationType contentIdentificationType); /** *

* The speech of the clinician in the input audio. *

* * @param type * The speech of the clinician in the input audio. * @see Type * @return Returns a reference to this object so that method calls can be chained together. * @see Type */ Builder type(String type); /** *

* The speech of the clinician in the input audio. *

* * @param type * The speech of the clinician in the input audio. * @see Type * @return Returns a reference to this object so that method calls can be chained together. * @see Type */ Builder type(Type type); } static final class BuilderImpl implements Builder { private String medicalTranscriptionJobName; private Instant creationTime; private Instant startTime; private Instant completionTime; private String languageCode; private String transcriptionJobStatus; private String failureReason; private String outputLocationType; private String specialty; private String contentIdentificationType; private String type; private BuilderImpl() { } private BuilderImpl(MedicalTranscriptionJobSummary model) { medicalTranscriptionJobName(model.medicalTranscriptionJobName); creationTime(model.creationTime); startTime(model.startTime); completionTime(model.completionTime); languageCode(model.languageCode); transcriptionJobStatus(model.transcriptionJobStatus); failureReason(model.failureReason); outputLocationType(model.outputLocationType); specialty(model.specialty); contentIdentificationType(model.contentIdentificationType); type(model.type); } public final String getMedicalTranscriptionJobName() { return medicalTranscriptionJobName; } public final void setMedicalTranscriptionJobName(String medicalTranscriptionJobName) { this.medicalTranscriptionJobName = medicalTranscriptionJobName; } @Override @Transient public final Builder medicalTranscriptionJobName(String medicalTranscriptionJobName) { this.medicalTranscriptionJobName = medicalTranscriptionJobName; return this; } public final Instant getCreationTime() { return creationTime; } public final void setCreationTime(Instant creationTime) { this.creationTime = creationTime; } @Override @Transient public final Builder creationTime(Instant creationTime) { this.creationTime = creationTime; return this; } public final Instant getStartTime() { return startTime; } public final void setStartTime(Instant startTime) { this.startTime = startTime; } @Override @Transient public final Builder startTime(Instant startTime) { this.startTime = startTime; return this; } public final Instant getCompletionTime() { return completionTime; } public final void setCompletionTime(Instant completionTime) { this.completionTime = completionTime; } @Override @Transient public final Builder completionTime(Instant completionTime) { this.completionTime = completionTime; return this; } public final String getLanguageCode() { return languageCode; } public final void setLanguageCode(String languageCode) { this.languageCode = languageCode; } @Override @Transient public final Builder languageCode(String languageCode) { this.languageCode = languageCode; return this; } @Override @Transient public final Builder languageCode(LanguageCode languageCode) { this.languageCode(languageCode == null ? null : languageCode.toString()); return this; } public final String getTranscriptionJobStatus() { return transcriptionJobStatus; } public final void setTranscriptionJobStatus(String transcriptionJobStatus) { this.transcriptionJobStatus = transcriptionJobStatus; } @Override @Transient public final Builder transcriptionJobStatus(String transcriptionJobStatus) { this.transcriptionJobStatus = transcriptionJobStatus; return this; } @Override @Transient public final Builder transcriptionJobStatus(TranscriptionJobStatus transcriptionJobStatus) { this.transcriptionJobStatus(transcriptionJobStatus == null ? null : transcriptionJobStatus.toString()); return this; } public final String getFailureReason() { return failureReason; } public final void setFailureReason(String failureReason) { this.failureReason = failureReason; } @Override @Transient public final Builder failureReason(String failureReason) { this.failureReason = failureReason; return this; } public final String getOutputLocationType() { return outputLocationType; } public final void setOutputLocationType(String outputLocationType) { this.outputLocationType = outputLocationType; } @Override @Transient public final Builder outputLocationType(String outputLocationType) { this.outputLocationType = outputLocationType; return this; } @Override @Transient public final Builder outputLocationType(OutputLocationType outputLocationType) { this.outputLocationType(outputLocationType == null ? null : outputLocationType.toString()); return this; } public final String getSpecialty() { return specialty; } public final void setSpecialty(String specialty) { this.specialty = specialty; } @Override @Transient public final Builder specialty(String specialty) { this.specialty = specialty; return this; } @Override @Transient public final Builder specialty(Specialty specialty) { this.specialty(specialty == null ? null : specialty.toString()); return this; } public final String getContentIdentificationType() { return contentIdentificationType; } public final void setContentIdentificationType(String contentIdentificationType) { this.contentIdentificationType = contentIdentificationType; } @Override @Transient public final Builder contentIdentificationType(String contentIdentificationType) { this.contentIdentificationType = contentIdentificationType; return this; } @Override @Transient public final Builder contentIdentificationType(MedicalContentIdentificationType contentIdentificationType) { this.contentIdentificationType(contentIdentificationType == null ? null : contentIdentificationType.toString()); return this; } public final String getType() { return type; } public final void setType(String type) { this.type = type; } @Override @Transient public final Builder type(String type) { this.type = type; return this; } @Override @Transient public final Builder type(Type type) { this.type(type == null ? null : type.toString()); return this; } @Override public MedicalTranscriptionJobSummary build() { return new MedicalTranscriptionJobSummary(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy