/* * 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.comprehendmedical.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 StartICD10CMInferenceJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Specifies the format and location of the input data for the job. *
*/ private InputDataConfig inputDataConfig; /** ** Specifies where to send the output files. *
*/ private OutputDataConfig outputDataConfig; /** ** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend * Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations. *
*/ private String dataAccessRoleArn; /** ** The identifier of the job. *
*/ private String jobName; /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical * generates one. *
*/ private String clientRequestToken; /** ** An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are * written in plain text. *
*/ private String kMSKey; /** ** The language of the input documents. All documents must be in the same language. *
*/ private String languageCode; /** ** Specifies the format and location of the input data for the job. *
* * @param inputDataConfig * Specifies the format and location of the input data for the job. */ public void setInputDataConfig(InputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; } /** ** Specifies the format and location of the input data for the job. *
* * @return Specifies the format and location of the input data for the job. */ public InputDataConfig getInputDataConfig() { return this.inputDataConfig; } /** ** Specifies the format and location of the input data for the job. *
* * @param inputDataConfig * Specifies the format and location of the input data for the job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartICD10CMInferenceJobRequest withInputDataConfig(InputDataConfig inputDataConfig) { setInputDataConfig(inputDataConfig); return this; } /** ** Specifies where to send the output files. *
* * @param outputDataConfig * Specifies where to send the output files. */ public void setOutputDataConfig(OutputDataConfig outputDataConfig) { this.outputDataConfig = outputDataConfig; } /** ** Specifies where to send the output files. *
* * @return Specifies where to send the output files. */ public OutputDataConfig getOutputDataConfig() { return this.outputDataConfig; } /** ** Specifies where to send the output files. *
* * @param outputDataConfig * Specifies where to send the output files. * @return Returns a reference to this object so that method calls can be chained together. */ public StartICD10CMInferenceJobRequest withOutputDataConfig(OutputDataConfig outputDataConfig) { setOutputDataConfig(outputDataConfig); return this; } /** ** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend * Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon * Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations. */ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend * Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations. *
* * @return The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon * Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations. */ public String getDataAccessRoleArn() { return this.dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon Comprehend * Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that grants Amazon * Comprehend Medical read access to your input data. For more information, see Role-Based Permissions Required for Asynchronous Operations. * @return Returns a reference to this object so that method calls can be chained together. */ public StartICD10CMInferenceJobRequest withDataAccessRoleArn(String dataAccessRoleArn) { setDataAccessRoleArn(dataAccessRoleArn); return this; } /** ** The identifier of the job. *
* * @param jobName * The identifier of the job. */ public void setJobName(String jobName) { this.jobName = jobName; } /** ** The identifier of the job. *
* * @return The identifier of the job. */ public String getJobName() { return this.jobName; } /** ** The identifier of the job. *
* * @param jobName * The identifier of the job. * @return Returns a reference to this object so that method calls can be chained together. */ public StartICD10CMInferenceJobRequest withJobName(String jobName) { setJobName(jobName); return this; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical * generates one. *
* * @param clientRequestToken * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical * generates one. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical * generates one. *
* * @return A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical * generates one. */ public String getClientRequestToken() { return this.clientRequestToken; } /** ** A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical * generates one. *
* * @param clientRequestToken * A unique identifier for the request. If you don't set the client request token, Amazon Comprehend Medical * generates one. * @return Returns a reference to this object so that method calls can be chained together. */ public StartICD10CMInferenceJobRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** ** An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are * written in plain text. *
* * @param kMSKey * An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are * written in plain text. */ public void setKMSKey(String kMSKey) { this.kMSKey = kMSKey; } /** ** An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are * written in plain text. *
* * @return An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files * are written in plain text. */ public String getKMSKey() { return this.kMSKey; } /** ** An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are * written in plain text. *
* * @param kMSKey * An AWS Key Management Service key to encrypt your output files. If you do not specify a key, the files are * written in plain text. * @return Returns a reference to this object so that method calls can be chained together. */ public StartICD10CMInferenceJobRequest withKMSKey(String kMSKey) { setKMSKey(kMSKey); return this; } /** ** The language of the input documents. All documents must be in the same language. *
* * @param languageCode * The language of the input documents. All documents must be in the same language. * @see LanguageCode */ public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } /** ** The language of the input documents. All documents must be in the same language. *
* * @return The language of the input documents. All documents must be in the same language. * @see LanguageCode */ public String getLanguageCode() { return this.languageCode; } /** ** The language of the input documents. All documents must be in the same language. *
* * @param languageCode * The language of the input documents. All documents must be in the same language. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public StartICD10CMInferenceJobRequest withLanguageCode(String languageCode) { setLanguageCode(languageCode); return this; } /** ** The language of the input documents. All documents must be in the same language. *
* * @param languageCode * The language of the input documents. All documents must be in the same language. * @return Returns a reference to this object so that method calls can be chained together. * @see LanguageCode */ public StartICD10CMInferenceJobRequest withLanguageCode(LanguageCode languageCode) { this.languageCode = languageCode.toString(); 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 (getInputDataConfig() != null) sb.append("InputDataConfig: ").append(getInputDataConfig()).append(","); if (getOutputDataConfig() != null) sb.append("OutputDataConfig: ").append(getOutputDataConfig()).append(","); if (getDataAccessRoleArn() != null) sb.append("DataAccessRoleArn: ").append(getDataAccessRoleArn()).append(","); if (getJobName() != null) sb.append("JobName: ").append(getJobName()).append(","); if (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getKMSKey() != null) sb.append("KMSKey: ").append(getKMSKey()).append(","); if (getLanguageCode() != null) sb.append("LanguageCode: ").append(getLanguageCode()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartICD10CMInferenceJobRequest == false) return false; StartICD10CMInferenceJobRequest other = (StartICD10CMInferenceJobRequest) obj; if (other.getInputDataConfig() == null ^ this.getInputDataConfig() == null) return false; if (other.getInputDataConfig() != null && other.getInputDataConfig().equals(this.getInputDataConfig()) == false) return false; if (other.getOutputDataConfig() == null ^ this.getOutputDataConfig() == null) return false; if (other.getOutputDataConfig() != null && other.getOutputDataConfig().equals(this.getOutputDataConfig()) == false) return false; if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null) return false; if (other.getDataAccessRoleArn() != null && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == false) return false; if (other.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == false) return false; if (other.getKMSKey() == null ^ this.getKMSKey() == null) return false; if (other.getKMSKey() != null && other.getKMSKey().equals(this.getKMSKey()) == false) return false; if (other.getLanguageCode() == null ^ this.getLanguageCode() == null) return false; if (other.getLanguageCode() != null && other.getLanguageCode().equals(this.getLanguageCode()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode()); hashCode = prime * hashCode + ((getOutputDataConfig() == null) ? 0 : getOutputDataConfig().hashCode()); hashCode = prime * hashCode + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getKMSKey() == null) ? 0 : getKMSKey().hashCode()); hashCode = prime * hashCode + ((getLanguageCode() == null) ? 0 : getLanguageCode().hashCode()); return hashCode; } @Override public StartICD10CMInferenceJobRequest clone() { return (StartICD10CMInferenceJobRequest) super.clone(); } }