com.pulumi.googlenative.dataplex.v1.outputs.GoogleCloudDataplexV1SchemaResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.dataplex.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.dataplex.v1.outputs.GoogleCloudDataplexV1SchemaPartitionFieldResponse;
import com.pulumi.googlenative.dataplex.v1.outputs.GoogleCloudDataplexV1SchemaSchemaFieldResponse;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GoogleCloudDataplexV1SchemaResponse {
/**
* @return Optional. The sequence of fields describing data in table entities. Note: BigQuery SchemaFields are immutable.
*
*/
private List fields;
/**
* @return Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
*
*/
private List partitionFields;
/**
* @return Optional. The structure of paths containing partition data within the entity.
*
*/
private String partitionStyle;
/**
* @return Set to true if user-managed or false if managed by Dataplex. The default is false (managed by Dataplex). Set to falseto enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. Set to true to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields.
*
*/
private Boolean userManaged;
private GoogleCloudDataplexV1SchemaResponse() {}
/**
* @return Optional. The sequence of fields describing data in table entities. Note: BigQuery SchemaFields are immutable.
*
*/
public List fields() {
return this.fields;
}
/**
* @return Optional. The sequence of fields describing the partition structure in entities. If this field is empty, there are no partitions within the data.
*
*/
public List partitionFields() {
return this.partitionFields;
}
/**
* @return Optional. The structure of paths containing partition data within the entity.
*
*/
public String partitionStyle() {
return this.partitionStyle;
}
/**
* @return Set to true if user-managed or false if managed by Dataplex. The default is false (managed by Dataplex). Set to falseto enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. Set to true to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields.
*
*/
public Boolean userManaged() {
return this.userManaged;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GoogleCloudDataplexV1SchemaResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List fields;
private List partitionFields;
private String partitionStyle;
private Boolean userManaged;
public Builder() {}
public Builder(GoogleCloudDataplexV1SchemaResponse defaults) {
Objects.requireNonNull(defaults);
this.fields = defaults.fields;
this.partitionFields = defaults.partitionFields;
this.partitionStyle = defaults.partitionStyle;
this.userManaged = defaults.userManaged;
}
@CustomType.Setter
public Builder fields(List fields) {
this.fields = Objects.requireNonNull(fields);
return this;
}
public Builder fields(GoogleCloudDataplexV1SchemaSchemaFieldResponse... fields) {
return fields(List.of(fields));
}
@CustomType.Setter
public Builder partitionFields(List partitionFields) {
this.partitionFields = Objects.requireNonNull(partitionFields);
return this;
}
public Builder partitionFields(GoogleCloudDataplexV1SchemaPartitionFieldResponse... partitionFields) {
return partitionFields(List.of(partitionFields));
}
@CustomType.Setter
public Builder partitionStyle(String partitionStyle) {
this.partitionStyle = Objects.requireNonNull(partitionStyle);
return this;
}
@CustomType.Setter
public Builder userManaged(Boolean userManaged) {
this.userManaged = Objects.requireNonNull(userManaged);
return this;
}
public GoogleCloudDataplexV1SchemaResponse build() {
final var o = new GoogleCloudDataplexV1SchemaResponse();
o.fields = fields;
o.partitionFields = partitionFields;
o.partitionStyle = partitionStyle;
o.userManaged = userManaged;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy