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

com.amazonaws.services.healthlake.model.CreateFHIRDatastoreRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show 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.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 CreateFHIRDatastoreRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The user generated name for the data store. *

*/ private String datastoreName; /** *

* The FHIR version of the data store. The only supported version is R4. *

*/ private String datastoreTypeVersion; /** *

* The server-side encryption key configuration for a customer provided encryption key specified for creating a data * store. *

*/ private SseConfiguration sseConfiguration; /** *

* Optional parameter to preload data upon creation of the data store. Currently, the only supported preloaded data * is synthetic data generated from Synthea. *

*/ private PreloadDataConfig preloadDataConfig; /** *

* Optional user provided token used for ensuring idempotency. *

*/ private String clientToken; /** *

* Resource tags that are applied to a data store when it is created. *

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

* The configuration of the identity provider that you want to use for your data store. *

*/ private IdentityProviderConfiguration identityProviderConfiguration; /** *

* The user generated name for the data store. *

* * @param datastoreName * The user generated name for the data store. */ public void setDatastoreName(String datastoreName) { this.datastoreName = datastoreName; } /** *

* The user generated name for the data store. *

* * @return The user generated name for the data store. */ public String getDatastoreName() { return this.datastoreName; } /** *

* The user generated name for the data store. *

* * @param datastoreName * The user generated name for the data store. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFHIRDatastoreRequest withDatastoreName(String datastoreName) { setDatastoreName(datastoreName); return this; } /** *

* The FHIR version of the data store. The only supported version is R4. *

* * @param datastoreTypeVersion * The FHIR version of the data store. The only supported version is R4. * @see FHIRVersion */ public void setDatastoreTypeVersion(String datastoreTypeVersion) { this.datastoreTypeVersion = datastoreTypeVersion; } /** *

* The FHIR version of the data store. The only supported version is R4. *

* * @return The FHIR version of the data store. The only supported version is R4. * @see FHIRVersion */ public String getDatastoreTypeVersion() { return this.datastoreTypeVersion; } /** *

* The FHIR version of the data store. The only supported version is R4. *

* * @param datastoreTypeVersion * The FHIR version of the data store. The only supported version is R4. * @return Returns a reference to this object so that method calls can be chained together. * @see FHIRVersion */ public CreateFHIRDatastoreRequest withDatastoreTypeVersion(String datastoreTypeVersion) { setDatastoreTypeVersion(datastoreTypeVersion); return this; } /** *

* The FHIR version of the data store. The only supported version is R4. *

* * @param datastoreTypeVersion * The FHIR version of the data store. The only supported version is R4. * @return Returns a reference to this object so that method calls can be chained together. * @see FHIRVersion */ public CreateFHIRDatastoreRequest withDatastoreTypeVersion(FHIRVersion datastoreTypeVersion) { this.datastoreTypeVersion = datastoreTypeVersion.toString(); return this; } /** *

* The server-side encryption key configuration for a customer provided encryption key specified for creating a data * store. *

* * @param sseConfiguration * The server-side encryption key configuration for a customer provided encryption key specified for creating * a data store. */ public void setSseConfiguration(SseConfiguration sseConfiguration) { this.sseConfiguration = sseConfiguration; } /** *

* The server-side encryption key configuration for a customer provided encryption key specified for creating a data * store. *

* * @return The server-side encryption key configuration for a customer provided encryption key specified for * creating a data store. */ public SseConfiguration getSseConfiguration() { return this.sseConfiguration; } /** *

* The server-side encryption key configuration for a customer provided encryption key specified for creating a data * store. *

* * @param sseConfiguration * The server-side encryption key configuration for a customer provided encryption key specified for creating * a data store. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFHIRDatastoreRequest withSseConfiguration(SseConfiguration sseConfiguration) { setSseConfiguration(sseConfiguration); return this; } /** *

* Optional parameter to preload data upon creation of the data store. Currently, the only supported preloaded data * is synthetic data generated from Synthea. *

* * @param preloadDataConfig * Optional parameter to preload data upon creation of the data store. Currently, the only supported * preloaded data is synthetic data generated from Synthea. */ public void setPreloadDataConfig(PreloadDataConfig preloadDataConfig) { this.preloadDataConfig = preloadDataConfig; } /** *

* Optional parameter to preload data upon creation of the data store. Currently, the only supported preloaded data * is synthetic data generated from Synthea. *

* * @return Optional parameter to preload data upon creation of the data store. Currently, the only supported * preloaded data is synthetic data generated from Synthea. */ public PreloadDataConfig getPreloadDataConfig() { return this.preloadDataConfig; } /** *

* Optional parameter to preload data upon creation of the data store. Currently, the only supported preloaded data * is synthetic data generated from Synthea. *

* * @param preloadDataConfig * Optional parameter to preload data upon creation of the data store. Currently, the only supported * preloaded data is synthetic data generated from Synthea. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFHIRDatastoreRequest withPreloadDataConfig(PreloadDataConfig preloadDataConfig) { setPreloadDataConfig(preloadDataConfig); 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 CreateFHIRDatastoreRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* Resource tags that are applied to a data store when it is created. *

* * @return Resource tags that are applied to a data store when it is created. */ public java.util.List getTags() { return tags; } /** *

* Resource tags that are applied to a data store when it is created. *

* * @param tags * Resource tags that are applied to a data store when it is created. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Resource tags that are applied to a data store when it is created. *

*

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

* * @param tags * Resource tags that are applied to a data store when it is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFHIRDatastoreRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* Resource tags that are applied to a data store when it is created. *

* * @param tags * Resource tags that are applied to a data store when it is created. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFHIRDatastoreRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* The configuration of the identity provider that you want to use for your data store. *

* * @param identityProviderConfiguration * The configuration of the identity provider that you want to use for your data store. */ public void setIdentityProviderConfiguration(IdentityProviderConfiguration identityProviderConfiguration) { this.identityProviderConfiguration = identityProviderConfiguration; } /** *

* The configuration of the identity provider that you want to use for your data store. *

* * @return The configuration of the identity provider that you want to use for your data store. */ public IdentityProviderConfiguration getIdentityProviderConfiguration() { return this.identityProviderConfiguration; } /** *

* The configuration of the identity provider that you want to use for your data store. *

* * @param identityProviderConfiguration * The configuration of the identity provider that you want to use for your data store. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFHIRDatastoreRequest withIdentityProviderConfiguration(IdentityProviderConfiguration identityProviderConfiguration) { setIdentityProviderConfiguration(identityProviderConfiguration); 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 (getDatastoreName() != null) sb.append("DatastoreName: ").append(getDatastoreName()).append(","); if (getDatastoreTypeVersion() != null) sb.append("DatastoreTypeVersion: ").append(getDatastoreTypeVersion()).append(","); if (getSseConfiguration() != null) sb.append("SseConfiguration: ").append(getSseConfiguration()).append(","); if (getPreloadDataConfig() != null) sb.append("PreloadDataConfig: ").append(getPreloadDataConfig()).append(","); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getIdentityProviderConfiguration() != null) sb.append("IdentityProviderConfiguration: ").append(getIdentityProviderConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateFHIRDatastoreRequest == false) return false; CreateFHIRDatastoreRequest other = (CreateFHIRDatastoreRequest) obj; if (other.getDatastoreName() == null ^ this.getDatastoreName() == null) return false; if (other.getDatastoreName() != null && other.getDatastoreName().equals(this.getDatastoreName()) == false) return false; if (other.getDatastoreTypeVersion() == null ^ this.getDatastoreTypeVersion() == null) return false; if (other.getDatastoreTypeVersion() != null && other.getDatastoreTypeVersion().equals(this.getDatastoreTypeVersion()) == false) return false; if (other.getSseConfiguration() == null ^ this.getSseConfiguration() == null) return false; if (other.getSseConfiguration() != null && other.getSseConfiguration().equals(this.getSseConfiguration()) == false) return false; if (other.getPreloadDataConfig() == null ^ this.getPreloadDataConfig() == null) return false; if (other.getPreloadDataConfig() != null && other.getPreloadDataConfig().equals(this.getPreloadDataConfig()) == false) return false; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getIdentityProviderConfiguration() == null ^ this.getIdentityProviderConfiguration() == null) return false; if (other.getIdentityProviderConfiguration() != null && other.getIdentityProviderConfiguration().equals(this.getIdentityProviderConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDatastoreName() == null) ? 0 : getDatastoreName().hashCode()); hashCode = prime * hashCode + ((getDatastoreTypeVersion() == null) ? 0 : getDatastoreTypeVersion().hashCode()); hashCode = prime * hashCode + ((getSseConfiguration() == null) ? 0 : getSseConfiguration().hashCode()); hashCode = prime * hashCode + ((getPreloadDataConfig() == null) ? 0 : getPreloadDataConfig().hashCode()); hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getIdentityProviderConfiguration() == null) ? 0 : getIdentityProviderConfiguration().hashCode()); return hashCode; } @Override public CreateFHIRDatastoreRequest clone() { return (CreateFHIRDatastoreRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy