public static final class Dataset.Builder extends DatasetInfo.Builder
Dataset
objects.Modifier and Type | Method and Description |
---|---|
Dataset |
build()
Creates a
DatasetInfo object. |
Dataset.Builder |
setAcl(List<Acl> acl)
Sets the dataset's access control configuration.
|
Dataset.Builder |
setDatasetId(DatasetId datasetId)
Sets the dataset identity.
|
Dataset.Builder |
setDefaultEncryptionConfiguration(EncryptionConfiguration defaultEncryptionConfiguration)
The default encryption key for all tables in the dataset.
|
Dataset.Builder |
setDefaultPartitionExpirationMs(Long defaultPartitionExpirationMs)
[Optional] The default partition expiration time for all partitioned tables in the dataset,
in milliseconds.
|
Dataset.Builder |
setDefaultTableLifetime(Long defaultTableLifetime)
Sets the default lifetime of all tables in the dataset, in milliseconds.
|
Dataset.Builder |
setDescription(String description)
Sets a user-friendly description for the dataset.
|
Dataset.Builder |
setFriendlyName(String friendlyName)
Sets a user-friendly name for the dataset.
|
Dataset.Builder |
setLabels(Map<String,String> labels) |
Dataset.Builder |
setLocation(String location)
Sets the geographic location where the dataset should reside.
|
public Dataset.Builder setDatasetId(DatasetId datasetId)
DatasetInfo.Builder
setDatasetId
in class DatasetInfo.Builder
public Dataset.Builder setAcl(List<Acl> acl)
DatasetInfo.Builder
setAcl
in class DatasetInfo.Builder
public Dataset.Builder setDefaultTableLifetime(Long defaultTableLifetime)
DatasetInfo.Builder
setDefaultTableLifetime
in class DatasetInfo.Builder
public Dataset.Builder setDescription(String description)
DatasetInfo.Builder
setDescription
in class DatasetInfo.Builder
public Dataset.Builder setFriendlyName(String friendlyName)
DatasetInfo.Builder
setFriendlyName
in class DatasetInfo.Builder
public Dataset.Builder setLocation(String location)
DatasetInfo.Builder
setLocation
in class DatasetInfo.Builder
public Dataset.Builder setLabels(Map<String,String> labels)
setLabels
in class DatasetInfo.Builder
public Dataset.Builder setDefaultEncryptionConfiguration(EncryptionConfiguration defaultEncryptionConfiguration)
DatasetInfo.Builder
setDefaultEncryptionConfiguration
in class DatasetInfo.Builder
public Dataset.Builder setDefaultPartitionExpirationMs(Long defaultPartitionExpirationMs)
DatasetInfo.Builder
null
.setDefaultPartitionExpirationMs
in class DatasetInfo.Builder
public Dataset build()
DatasetInfo.Builder
DatasetInfo
object.build
in class DatasetInfo.Builder
Copyright © 2019 Google LLC. All rights reserved.