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

com.pulumi.azurenative.streamanalytics.outputs.AzureTableOutputDataSourceResponse Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.azurenative.streamanalytics.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AzureTableOutputDataSourceResponse {
    /**
     * @return The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String accountKey;
    /**
     * @return The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String accountName;
    /**
     * @return The number of rows to write to the Azure Table at a time.
     * 
     */
    private @Nullable Integer batchSize;
    /**
     * @return If specified, each item in the array is the name of a column to remove (if present) from output event entities.
     * 
     */
    private @Nullable List columnsToRemove;
    /**
     * @return This element indicates the name of a column from the SELECT statement in the query that will be used as the partition key for the Azure Table. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String partitionKey;
    /**
     * @return This element indicates the name of a column from the SELECT statement in the query that will be used as the row key for the Azure Table. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String rowKey;
    /**
     * @return The name of the Azure Table. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String table;
    /**
     * @return Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.Storage/Table'.
     * 
     */
    private String type;

    private AzureTableOutputDataSourceResponse() {}
    /**
     * @return The account key for the Azure Storage account. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional accountKey() {
        return Optional.ofNullable(this.accountKey);
    }
    /**
     * @return The name of the Azure Storage account. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional accountName() {
        return Optional.ofNullable(this.accountName);
    }
    /**
     * @return The number of rows to write to the Azure Table at a time.
     * 
     */
    public Optional batchSize() {
        return Optional.ofNullable(this.batchSize);
    }
    /**
     * @return If specified, each item in the array is the name of a column to remove (if present) from output event entities.
     * 
     */
    public List columnsToRemove() {
        return this.columnsToRemove == null ? List.of() : this.columnsToRemove;
    }
    /**
     * @return This element indicates the name of a column from the SELECT statement in the query that will be used as the partition key for the Azure Table. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional partitionKey() {
        return Optional.ofNullable(this.partitionKey);
    }
    /**
     * @return This element indicates the name of a column from the SELECT statement in the query that will be used as the row key for the Azure Table. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional rowKey() {
        return Optional.ofNullable(this.rowKey);
    }
    /**
     * @return The name of the Azure Table. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional table() {
        return Optional.ofNullable(this.table);
    }
    /**
     * @return Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.Storage/Table'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(AzureTableOutputDataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String accountKey;
        private @Nullable String accountName;
        private @Nullable Integer batchSize;
        private @Nullable List columnsToRemove;
        private @Nullable String partitionKey;
        private @Nullable String rowKey;
        private @Nullable String table;
        private String type;
        public Builder() {}
        public Builder(AzureTableOutputDataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountKey = defaults.accountKey;
    	      this.accountName = defaults.accountName;
    	      this.batchSize = defaults.batchSize;
    	      this.columnsToRemove = defaults.columnsToRemove;
    	      this.partitionKey = defaults.partitionKey;
    	      this.rowKey = defaults.rowKey;
    	      this.table = defaults.table;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder accountKey(@Nullable String accountKey) {

            this.accountKey = accountKey;
            return this;
        }
        @CustomType.Setter
        public Builder accountName(@Nullable String accountName) {

            this.accountName = accountName;
            return this;
        }
        @CustomType.Setter
        public Builder batchSize(@Nullable Integer batchSize) {

            this.batchSize = batchSize;
            return this;
        }
        @CustomType.Setter
        public Builder columnsToRemove(@Nullable List columnsToRemove) {

            this.columnsToRemove = columnsToRemove;
            return this;
        }
        public Builder columnsToRemove(String... columnsToRemove) {
            return columnsToRemove(List.of(columnsToRemove));
        }
        @CustomType.Setter
        public Builder partitionKey(@Nullable String partitionKey) {

            this.partitionKey = partitionKey;
            return this;
        }
        @CustomType.Setter
        public Builder rowKey(@Nullable String rowKey) {

            this.rowKey = rowKey;
            return this;
        }
        @CustomType.Setter
        public Builder table(@Nullable String table) {

            this.table = table;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("AzureTableOutputDataSourceResponse", "type");
            }
            this.type = type;
            return this;
        }
        public AzureTableOutputDataSourceResponse build() {
            final var _resultValue = new AzureTableOutputDataSourceResponse();
            _resultValue.accountKey = accountKey;
            _resultValue.accountName = accountName;
            _resultValue.batchSize = batchSize;
            _resultValue.columnsToRemove = columnsToRemove;
            _resultValue.partitionKey = partitionKey;
            _resultValue.rowKey = rowKey;
            _resultValue.table = table;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy