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

com.pulumi.googlenative.dataplex.v1.PartitionArgs 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;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class PartitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final PartitionArgs Empty = new PartitionArgs();

    @Import(name="entityId", required=true)
    private Output entityId;

    public Output entityId() {
        return this.entityId;
    }

    /**
     * Optional. The etag for this partition.
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return Optional. The etag for this partition.
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    @Import(name="lakeId", required=true)
    private Output lakeId;

    public Output lakeId() {
        return this.lakeId;
    }

    /**
     * Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    @Import(name="project")
    private @Nullable Output project;

    public Optional> project() {
        return Optional.ofNullable(this.project);
    }

    /**
     * Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
     * 
     */
    @Import(name="values", required=true)
    private Output> values;

    /**
     * @return Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
     * 
     */
    public Output> values() {
        return this.values;
    }

    @Import(name="zone")
    private @Nullable Output zone;

    public Optional> zone() {
        return Optional.ofNullable(this.zone);
    }

    private PartitionArgs() {}

    private PartitionArgs(PartitionArgs $) {
        this.entityId = $.entityId;
        this.etag = $.etag;
        this.lakeId = $.lakeId;
        this.location = $.location;
        this.project = $.project;
        this.values = $.values;
        this.zone = $.zone;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PartitionArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PartitionArgs $;

        public Builder() {
            $ = new PartitionArgs();
        }

        public Builder(PartitionArgs defaults) {
            $ = new PartitionArgs(Objects.requireNonNull(defaults));
        }

        public Builder entityId(Output entityId) {
            $.entityId = entityId;
            return this;
        }

        public Builder entityId(String entityId) {
            return entityId(Output.of(entityId));
        }

        /**
         * @param etag Optional. The etag for this partition.
         * 
         * @return builder
         * 
         */
        public Builder etag(@Nullable Output etag) {
            $.etag = etag;
            return this;
        }

        /**
         * @param etag Optional. The etag for this partition.
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        public Builder lakeId(Output lakeId) {
            $.lakeId = lakeId;
            return this;
        }

        public Builder lakeId(String lakeId) {
            return lakeId(Output.of(lakeId));
        }

        /**
         * @param location Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Immutable. The location of the entity data within the partition, for example, gs://bucket/path/to/entity/key1=value1/key2=value2. Or projects//datasets//tables/
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        public Builder project(@Nullable Output project) {
            $.project = project;
            return this;
        }

        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param values Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
         * 
         * @return builder
         * 
         */
        public Builder values(Output> values) {
            $.values = values;
            return this;
        }

        /**
         * @param values Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
         * 
         * @return builder
         * 
         */
        public Builder values(List values) {
            return values(Output.of(values));
        }

        /**
         * @param values Immutable. The set of values representing the partition, which correspond to the partition schema defined in the parent entity.
         * 
         * @return builder
         * 
         */
        public Builder values(String... values) {
            return values(List.of(values));
        }

        public Builder zone(@Nullable Output zone) {
            $.zone = zone;
            return this;
        }

        public Builder zone(String zone) {
            return zone(Output.of(zone));
        }

        public PartitionArgs build() {
            $.entityId = Objects.requireNonNull($.entityId, "expected parameter 'entityId' to be non-null");
            $.lakeId = Objects.requireNonNull($.lakeId, "expected parameter 'lakeId' to be non-null");
            $.values = Objects.requireNonNull($.values, "expected parameter 'values' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy