/* * 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.healthlake.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 StartFHIRImportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the FHIR Import job in the StartFHIRImport job request. *
*/ private String jobName; /** ** The input properties of the FHIR Import job in the StartFHIRImport job request. *
*/ private InputDataConfig inputDataConfig; private OutputDataConfig jobOutputDataConfig; /** ** The AWS-generated data store ID. *
*/ private String datastoreId; /** ** The Amazon Resource Name (ARN) that gives AWS HealthLake access permission. *
*/ private String dataAccessRoleArn; /** ** Optional user provided token used for ensuring idempotency. *
*/ private String clientToken; /** ** The name of the FHIR Import job in the StartFHIRImport job request. *
* * @param jobName * The name of the FHIR Import job in the StartFHIRImport job request. */ public void setJobName(String jobName) { this.jobName = jobName; } /** ** The name of the FHIR Import job in the StartFHIRImport job request. *
* * @return The name of the FHIR Import job in the StartFHIRImport job request. */ public String getJobName() { return this.jobName; } /** ** The name of the FHIR Import job in the StartFHIRImport job request. *
* * @param jobName * The name of the FHIR Import job in the StartFHIRImport job request. * @return Returns a reference to this object so that method calls can be chained together. */ public StartFHIRImportJobRequest withJobName(String jobName) { setJobName(jobName); return this; } /** ** The input properties of the FHIR Import job in the StartFHIRImport job request. *
* * @param inputDataConfig * The input properties of the FHIR Import job in the StartFHIRImport job request. */ public void setInputDataConfig(InputDataConfig inputDataConfig) { this.inputDataConfig = inputDataConfig; } /** ** The input properties of the FHIR Import job in the StartFHIRImport job request. *
* * @return The input properties of the FHIR Import job in the StartFHIRImport job request. */ public InputDataConfig getInputDataConfig() { return this.inputDataConfig; } /** ** The input properties of the FHIR Import job in the StartFHIRImport job request. *
* * @param inputDataConfig * The input properties of the FHIR Import job in the StartFHIRImport job request. * @return Returns a reference to this object so that method calls can be chained together. */ public StartFHIRImportJobRequest withInputDataConfig(InputDataConfig inputDataConfig) { setInputDataConfig(inputDataConfig); return this; } /** * @param jobOutputDataConfig */ public void setJobOutputDataConfig(OutputDataConfig jobOutputDataConfig) { this.jobOutputDataConfig = jobOutputDataConfig; } /** * @return */ public OutputDataConfig getJobOutputDataConfig() { return this.jobOutputDataConfig; } /** * @param jobOutputDataConfig * @return Returns a reference to this object so that method calls can be chained together. */ public StartFHIRImportJobRequest withJobOutputDataConfig(OutputDataConfig jobOutputDataConfig) { setJobOutputDataConfig(jobOutputDataConfig); return this; } /** ** The AWS-generated data store ID. *
* * @param datastoreId * The AWS-generated data store ID. */ public void setDatastoreId(String datastoreId) { this.datastoreId = datastoreId; } /** ** The AWS-generated data store ID. *
* * @return The AWS-generated data store ID. */ public String getDatastoreId() { return this.datastoreId; } /** ** The AWS-generated data store ID. *
* * @param datastoreId * The AWS-generated data store ID. * @return Returns a reference to this object so that method calls can be chained together. */ public StartFHIRImportJobRequest withDatastoreId(String datastoreId) { setDatastoreId(datastoreId); return this; } /** ** The Amazon Resource Name (ARN) that gives AWS HealthLake access permission. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) that gives AWS HealthLake access permission. */ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) that gives AWS HealthLake access permission. *
* * @return The Amazon Resource Name (ARN) that gives AWS HealthLake access permission. */ public String getDataAccessRoleArn() { return this.dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) that gives AWS HealthLake access permission. *
* * @param dataAccessRoleArn * The Amazon Resource Name (ARN) that gives AWS HealthLake access permission. * @return Returns a reference to this object so that method calls can be chained together. */ public StartFHIRImportJobRequest withDataAccessRoleArn(String dataAccessRoleArn) { setDataAccessRoleArn(dataAccessRoleArn); return this; } /** ** Optional user provided token used for ensuring idempotency. *
* * @param clientToken * Optional user provided token used for ensuring idempotency. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** ** Optional user provided token used for ensuring idempotency. *
* * @return Optional user provided token used for ensuring idempotency. */ public String getClientToken() { return this.clientToken; } /** ** Optional user provided token used for ensuring idempotency. *
* * @param clientToken * Optional user provided token used for ensuring idempotency. * @return Returns a reference to this object so that method calls can be chained together. */ public StartFHIRImportJobRequest withClientToken(String clientToken) { setClientToken(clientToken); 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 (getJobName() != null) sb.append("JobName: ").append(getJobName()).append(","); if (getInputDataConfig() != null) sb.append("InputDataConfig: ").append(getInputDataConfig()).append(","); if (getJobOutputDataConfig() != null) sb.append("JobOutputDataConfig: ").append(getJobOutputDataConfig()).append(","); if (getDatastoreId() != null) sb.append("DatastoreId: ").append(getDatastoreId()).append(","); if (getDataAccessRoleArn() != null) sb.append("DataAccessRoleArn: ").append(getDataAccessRoleArn()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartFHIRImportJobRequest == false) return false; StartFHIRImportJobRequest other = (StartFHIRImportJobRequest) obj; if (other.getJobName() == null ^ this.getJobName() == null) return false; if (other.getJobName() != null && other.getJobName().equals(this.getJobName()) == false) return false; if (other.getInputDataConfig() == null ^ this.getInputDataConfig() == null) return false; if (other.getInputDataConfig() != null && other.getInputDataConfig().equals(this.getInputDataConfig()) == false) return false; if (other.getJobOutputDataConfig() == null ^ this.getJobOutputDataConfig() == null) return false; if (other.getJobOutputDataConfig() != null && other.getJobOutputDataConfig().equals(this.getJobOutputDataConfig()) == false) return false; if (other.getDatastoreId() == null ^ this.getDatastoreId() == null) return false; if (other.getDatastoreId() != null && other.getDatastoreId().equals(this.getDatastoreId()) == 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.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobName() == null) ? 0 : getJobName().hashCode()); hashCode = prime * hashCode + ((getInputDataConfig() == null) ? 0 : getInputDataConfig().hashCode()); hashCode = prime * hashCode + ((getJobOutputDataConfig() == null) ? 0 : getJobOutputDataConfig().hashCode()); hashCode = prime * hashCode + ((getDatastoreId() == null) ? 0 : getDatastoreId().hashCode()); hashCode = prime * hashCode + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); return hashCode; } @Override public StartFHIRImportJobRequest clone() { return (StartFHIRImportJobRequest) super.clone(); } }