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

com.pulumi.azurenative.datafactory.outputs.CosmosDbMongoDbApiLinkedServiceResponse 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.datafactory.outputs;

import com.pulumi.azurenative.datafactory.outputs.IntegrationRuntimeReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class CosmosDbMongoDbApiLinkedServiceResponse {
    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return The integration runtime reference.
     * 
     */
    private @Nullable IntegrationRuntimeReferenceResponse connectVia;
    /**
     * @return The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference.
     * 
     */
    private Object connectionString;
    /**
     * @return The name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or Expression with resultType string).
     * 
     */
    private Object database;
    /**
     * @return Linked service description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Whether the CosmosDB (MongoDB API) server version is higher than 3.2. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object isServerVersionAbove32;
    /**
     * @return Parameters for linked service.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return Type of linked service.
     * Expected value is 'CosmosDbMongoDbApi'.
     * 
     */
    private String type;
    /**
     * @return Version of the linked service.
     * 
     */
    private @Nullable String version;

    private CosmosDbMongoDbApiLinkedServiceResponse() {}
    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return The integration runtime reference.
     * 
     */
    public Optional connectVia() {
        return Optional.ofNullable(this.connectVia);
    }
    /**
     * @return The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference.
     * 
     */
    public Object connectionString() {
        return this.connectionString;
    }
    /**
     * @return The name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or Expression with resultType string).
     * 
     */
    public Object database() {
        return this.database;
    }
    /**
     * @return Linked service description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Whether the CosmosDB (MongoDB API) server version is higher than 3.2. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional isServerVersionAbove32() {
        return Optional.ofNullable(this.isServerVersionAbove32);
    }
    /**
     * @return Parameters for linked service.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return Type of linked service.
     * Expected value is 'CosmosDbMongoDbApi'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Version of the linked service.
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }

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

    public static Builder builder(CosmosDbMongoDbApiLinkedServiceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable IntegrationRuntimeReferenceResponse connectVia;
        private Object connectionString;
        private Object database;
        private @Nullable String description;
        private @Nullable Object isServerVersionAbove32;
        private @Nullable Map parameters;
        private String type;
        private @Nullable String version;
        public Builder() {}
        public Builder(CosmosDbMongoDbApiLinkedServiceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.connectVia = defaults.connectVia;
    	      this.connectionString = defaults.connectionString;
    	      this.database = defaults.database;
    	      this.description = defaults.description;
    	      this.isServerVersionAbove32 = defaults.isServerVersionAbove32;
    	      this.parameters = defaults.parameters;
    	      this.type = defaults.type;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder annotations(@Nullable List annotations) {

            this.annotations = annotations;
            return this;
        }
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }
        @CustomType.Setter
        public Builder connectVia(@Nullable IntegrationRuntimeReferenceResponse connectVia) {

            this.connectVia = connectVia;
            return this;
        }
        @CustomType.Setter
        public Builder connectionString(Object connectionString) {
            if (connectionString == null) {
              throw new MissingRequiredPropertyException("CosmosDbMongoDbApiLinkedServiceResponse", "connectionString");
            }
            this.connectionString = connectionString;
            return this;
        }
        @CustomType.Setter
        public Builder database(Object database) {
            if (database == null) {
              throw new MissingRequiredPropertyException("CosmosDbMongoDbApiLinkedServiceResponse", "database");
            }
            this.database = database;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder isServerVersionAbove32(@Nullable Object isServerVersionAbove32) {

            this.isServerVersionAbove32 = isServerVersionAbove32;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable Map parameters) {

            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("CosmosDbMongoDbApiLinkedServiceResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable String version) {

            this.version = version;
            return this;
        }
        public CosmosDbMongoDbApiLinkedServiceResponse build() {
            final var _resultValue = new CosmosDbMongoDbApiLinkedServiceResponse();
            _resultValue.annotations = annotations;
            _resultValue.connectVia = connectVia;
            _resultValue.connectionString = connectionString;
            _resultValue.database = database;
            _resultValue.description = description;
            _resultValue.isServerVersionAbove32 = isServerVersionAbove32;
            _resultValue.parameters = parameters;
            _resultValue.type = type;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}