com.google.api.services.healthcare.v1.model.DeidentifyDatasetRequest Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* 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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/
package com.google.api.services.healthcare.v1.model;
/**
* Redacts identifying information from the specified dataset.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Cloud Healthcare API. For a detailed explanation see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class DeidentifyDatasetRequest extends com.google.api.client.json.GenericJson {
/**
* Deidentify configuration. Only one of `config` and `gcs_config_uri` can be specified.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private DeidentifyConfig config;
/**
* Required. The name of the dataset resource to create and write the redacted data to. * The
* destination dataset must not exist. * The destination dataset must be in the same location as
* the source dataset. De-identifying data across multiple locations is not supported.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String destinationDataset;
/**
* Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from,
* overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud
* Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's
* Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can
* be specified.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String gcsConfigUri;
/**
* Deidentify configuration. Only one of `config` and `gcs_config_uri` can be specified.
* @return value or {@code null} for none
*/
public DeidentifyConfig getConfig() {
return config;
}
/**
* Deidentify configuration. Only one of `config` and `gcs_config_uri` can be specified.
* @param config config or {@code null} for none
*/
public DeidentifyDatasetRequest setConfig(DeidentifyConfig config) {
this.config = config;
return this;
}
/**
* Required. The name of the dataset resource to create and write the redacted data to. * The
* destination dataset must not exist. * The destination dataset must be in the same location as
* the source dataset. De-identifying data across multiple locations is not supported.
* @return value or {@code null} for none
*/
public java.lang.String getDestinationDataset() {
return destinationDataset;
}
/**
* Required. The name of the dataset resource to create and write the redacted data to. * The
* destination dataset must not exist. * The destination dataset must be in the same location as
* the source dataset. De-identifying data across multiple locations is not supported.
* @param destinationDataset destinationDataset or {@code null} for none
*/
public DeidentifyDatasetRequest setDestinationDataset(java.lang.String destinationDataset) {
this.destinationDataset = destinationDataset;
return this;
}
/**
* Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from,
* overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud
* Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's
* Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can
* be specified.
* @return value or {@code null} for none
*/
public java.lang.String getGcsConfigUri() {
return gcsConfigUri;
}
/**
* Cloud Storage location to read the JSON cloud.healthcare.deidentify.DeidentifyConfig from,
* overriding the default config. Must be of the form `gs://{bucket_id}/path/to/object`. The Cloud
* Storage location must grant the Cloud IAM role `roles/storage.objectViewer` to the project's
* Cloud Healthcare Service Agent service account. Only one of `config` and `gcs_config_uri` can
* be specified.
* @param gcsConfigUri gcsConfigUri or {@code null} for none
*/
public DeidentifyDatasetRequest setGcsConfigUri(java.lang.String gcsConfigUri) {
this.gcsConfigUri = gcsConfigUri;
return this;
}
@Override
public DeidentifyDatasetRequest set(String fieldName, Object value) {
return (DeidentifyDatasetRequest) super.set(fieldName, value);
}
@Override
public DeidentifyDatasetRequest clone() {
return (DeidentifyDatasetRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy