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

com.pulumi.azurenative.streamanalytics.outputs.DocumentDbOutputDataSourceResponse 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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class DocumentDbOutputDataSourceResponse {
    /**
     * @return The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String accountId;
    /**
     * @return The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String accountKey;
    /**
     * @return The collection name pattern for the collections to be used. The collection name format can be constructed using the optional {partition} token, where partitions start from 0. See the DocumentDB section of https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more information. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String collectionNamePattern;
    /**
     * @return The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    private @Nullable String database;
    /**
     * @return The name of the field in output events used to specify the primary key which insert or update operations are based on.
     * 
     */
    private @Nullable String documentId;
    /**
     * @return The name of the field in output events used to specify the key for partitioning output across collections. If 'collectionNamePattern' contains the {partition} token, this property is required to be specified.
     * 
     */
    private @Nullable String partitionKey;
    /**
     * @return Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.Storage/DocumentDB'.
     * 
     */
    private String type;

    private DocumentDbOutputDataSourceResponse() {}
    /**
     * @return The DocumentDB account name or ID. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional accountId() {
        return Optional.ofNullable(this.accountId);
    }
    /**
     * @return The account key for the DocumentDB account. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional accountKey() {
        return Optional.ofNullable(this.accountKey);
    }
    /**
     * @return The collection name pattern for the collections to be used. The collection name format can be constructed using the optional {partition} token, where partitions start from 0. See the DocumentDB section of https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for more information. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional collectionNamePattern() {
        return Optional.ofNullable(this.collectionNamePattern);
    }
    /**
     * @return The name of the DocumentDB database. Required on PUT (CreateOrReplace) requests.
     * 
     */
    public Optional database() {
        return Optional.ofNullable(this.database);
    }
    /**
     * @return The name of the field in output events used to specify the primary key which insert or update operations are based on.
     * 
     */
    public Optional documentId() {
        return Optional.ofNullable(this.documentId);
    }
    /**
     * @return The name of the field in output events used to specify the key for partitioning output across collections. If 'collectionNamePattern' contains the {partition} token, this property is required to be specified.
     * 
     */
    public Optional partitionKey() {
        return Optional.ofNullable(this.partitionKey);
    }
    /**
     * @return Indicates the type of data source output will be written to. Required on PUT (CreateOrReplace) requests.
     * Expected value is 'Microsoft.Storage/DocumentDB'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(DocumentDbOutputDataSourceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String accountId;
        private @Nullable String accountKey;
        private @Nullable String collectionNamePattern;
        private @Nullable String database;
        private @Nullable String documentId;
        private @Nullable String partitionKey;
        private String type;
        public Builder() {}
        public Builder(DocumentDbOutputDataSourceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accountId = defaults.accountId;
    	      this.accountKey = defaults.accountKey;
    	      this.collectionNamePattern = defaults.collectionNamePattern;
    	      this.database = defaults.database;
    	      this.documentId = defaults.documentId;
    	      this.partitionKey = defaults.partitionKey;
    	      this.type = defaults.type;
        }

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

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

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

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

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

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

            this.partitionKey = partitionKey;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("DocumentDbOutputDataSourceResponse", "type");
            }
            this.type = type;
            return this;
        }
        public DocumentDbOutputDataSourceResponse build() {
            final var _resultValue = new DocumentDbOutputDataSourceResponse();
            _resultValue.accountId = accountId;
            _resultValue.accountKey = accountKey;
            _resultValue.collectionNamePattern = collectionNamePattern;
            _resultValue.database = database;
            _resultValue.documentId = documentId;
            _resultValue.partitionKey = partitionKey;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy