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

com.pulumi.azurenative.datafactory.outputs.MongoDbLinkedServiceResponse Maven / Gradle / Ivy

The 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.AzureKeyVaultSecretReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.IntegrationRuntimeReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
import com.pulumi.azurenative.datafactory.outputs.SecureStringResponse;
import com.pulumi.core.Either;
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 MongoDbLinkedServiceResponse {
    /**
     * @return Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object allowSelfSignedServerCert;
    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return Database to verify the username and password. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object authSource;
    /**
     * @return The authentication type to be used to connect to the MongoDB database.
     * 
     */
    private @Nullable String authenticationType;
    /**
     * @return The integration runtime reference.
     * 
     */
    private @Nullable IntegrationRuntimeReferenceResponse connectVia;
    /**
     * @return The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string).
     * 
     */
    private Object databaseName;
    /**
     * @return Linked service description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object enableSsl;
    /**
     * @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    private @Nullable String encryptedCredential;
    /**
     * @return Parameters for linked service.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return Password for authentication.
     * 
     */
    private @Nullable Either password;
    /**
     * @return The TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    private @Nullable Object port;
    /**
     * @return The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string).
     * 
     */
    private Object server;
    /**
     * @return Type of linked service.
     * Expected value is 'MongoDb'.
     * 
     */
    private String type;
    /**
     * @return Username for authentication. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object username;
    /**
     * @return Version of the linked service.
     * 
     */
    private @Nullable String version;

    private MongoDbLinkedServiceResponse() {}
    /**
     * @return Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional allowSelfSignedServerCert() {
        return Optional.ofNullable(this.allowSelfSignedServerCert);
    }
    /**
     * @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 Database to verify the username and password. Type: string (or Expression with resultType string).
     * 
     */
    public Optional authSource() {
        return Optional.ofNullable(this.authSource);
    }
    /**
     * @return The authentication type to be used to connect to the MongoDB database.
     * 
     */
    public Optional authenticationType() {
        return Optional.ofNullable(this.authenticationType);
    }
    /**
     * @return The integration runtime reference.
     * 
     */
    public Optional connectVia() {
        return Optional.ofNullable(this.connectVia);
    }
    /**
     * @return The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string).
     * 
     */
    public Object databaseName() {
        return this.databaseName;
    }
    /**
     * @return Linked service description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional enableSsl() {
        return Optional.ofNullable(this.enableSsl);
    }
    /**
     * @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    public Optional encryptedCredential() {
        return Optional.ofNullable(this.encryptedCredential);
    }
    /**
     * @return Parameters for linked service.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return Password for authentication.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }
    /**
     * @return The TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    public Optional port() {
        return Optional.ofNullable(this.port);
    }
    /**
     * @return The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string).
     * 
     */
    public Object server() {
        return this.server;
    }
    /**
     * @return Type of linked service.
     * Expected value is 'MongoDb'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Username for authentication. Type: string (or Expression with resultType string).
     * 
     */
    public Optional username() {
        return Optional.ofNullable(this.username);
    }
    /**
     * @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(MongoDbLinkedServiceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object allowSelfSignedServerCert;
        private @Nullable List annotations;
        private @Nullable Object authSource;
        private @Nullable String authenticationType;
        private @Nullable IntegrationRuntimeReferenceResponse connectVia;
        private Object databaseName;
        private @Nullable String description;
        private @Nullable Object enableSsl;
        private @Nullable String encryptedCredential;
        private @Nullable Map parameters;
        private @Nullable Either password;
        private @Nullable Object port;
        private Object server;
        private String type;
        private @Nullable Object username;
        private @Nullable String version;
        public Builder() {}
        public Builder(MongoDbLinkedServiceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowSelfSignedServerCert = defaults.allowSelfSignedServerCert;
    	      this.annotations = defaults.annotations;
    	      this.authSource = defaults.authSource;
    	      this.authenticationType = defaults.authenticationType;
    	      this.connectVia = defaults.connectVia;
    	      this.databaseName = defaults.databaseName;
    	      this.description = defaults.description;
    	      this.enableSsl = defaults.enableSsl;
    	      this.encryptedCredential = defaults.encryptedCredential;
    	      this.parameters = defaults.parameters;
    	      this.password = defaults.password;
    	      this.port = defaults.port;
    	      this.server = defaults.server;
    	      this.type = defaults.type;
    	      this.username = defaults.username;
    	      this.version = defaults.version;
        }

        @CustomType.Setter
        public Builder allowSelfSignedServerCert(@Nullable Object allowSelfSignedServerCert) {

            this.allowSelfSignedServerCert = allowSelfSignedServerCert;
            return this;
        }
        @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 authSource(@Nullable Object authSource) {

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

            this.authenticationType = authenticationType;
            return this;
        }
        @CustomType.Setter
        public Builder connectVia(@Nullable IntegrationRuntimeReferenceResponse connectVia) {

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

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

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

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

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

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

            this.port = port;
            return this;
        }
        @CustomType.Setter
        public Builder server(Object server) {
            if (server == null) {
              throw new MissingRequiredPropertyException("MongoDbLinkedServiceResponse", "server");
            }
            this.server = server;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("MongoDbLinkedServiceResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder username(@Nullable Object username) {

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

            this.version = version;
            return this;
        }
        public MongoDbLinkedServiceResponse build() {
            final var _resultValue = new MongoDbLinkedServiceResponse();
            _resultValue.allowSelfSignedServerCert = allowSelfSignedServerCert;
            _resultValue.annotations = annotations;
            _resultValue.authSource = authSource;
            _resultValue.authenticationType = authenticationType;
            _resultValue.connectVia = connectVia;
            _resultValue.databaseName = databaseName;
            _resultValue.description = description;
            _resultValue.enableSsl = enableSsl;
            _resultValue.encryptedCredential = encryptedCredential;
            _resultValue.parameters = parameters;
            _resultValue.password = password;
            _resultValue.port = port;
            _resultValue.server = server;
            _resultValue.type = type;
            _resultValue.username = username;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}