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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.IntegrationArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProjectDatabase;

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


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

    public static final IntegrationArgs Empty = new IntegrationArgs();

    /**
     * Cluster ID.
     * 
     */
    @Import(name="clusterId", required=true)
    private Output clusterId;

    /**
     * @return Cluster ID.
     * 
     */
    public Output clusterId() {
        return this.clusterId;
    }

    /**
     * ID of the destination service.
     * 
     */
    @Import(name="destinationServiceId", required=true)
    private Output destinationServiceId;

    /**
     * @return ID of the destination service.
     * 
     */
    public Output destinationServiceId() {
        return this.destinationServiceId;
    }

    /**
     * The engine of the database cluster you want to add. You can find the complete list of available engine in the [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases).
     * All engines available exept `mongodb`.
     * 
     */
    @Import(name="engine", required=true)
    private Output engine;

    /**
     * @return The engine of the database cluster you want to add. You can find the complete list of available engine in the [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases).
     * All engines available exept `mongodb`.
     * 
     */
    public Output engine() {
        return this.engine;
    }

    /**
     * Parameters for the integration.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return Parameters for the integration.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    @Import(name="serviceName", required=true)
    private Output serviceName;

    /**
     * @return The id of the public cloud project. If omitted,
     * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
     * 
     */
    public Output serviceName() {
        return this.serviceName;
    }

    /**
     * ID of the source service.
     * 
     */
    @Import(name="sourceServiceId", required=true)
    private Output sourceServiceId;

    /**
     * @return ID of the source service.
     * 
     */
    public Output sourceServiceId() {
        return this.sourceServiceId;
    }

    /**
     * Type of the integration.
     * Available types:
     * * `grafanaDashboard`
     * * `grafanaDatasource`
     * * `kafkaConnect`
     * * `kafkaLogs`
     * * `kafkaMirrorMaker`
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Type of the integration.
     * Available types:
     * * `grafanaDashboard`
     * * `grafanaDatasource`
     * * `kafkaConnect`
     * * `kafkaLogs`
     * * `kafkaMirrorMaker`
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private IntegrationArgs() {}

    private IntegrationArgs(IntegrationArgs $) {
        this.clusterId = $.clusterId;
        this.destinationServiceId = $.destinationServiceId;
        this.engine = $.engine;
        this.parameters = $.parameters;
        this.serviceName = $.serviceName;
        this.sourceServiceId = $.sourceServiceId;
        this.type = $.type;
    }

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

    public static final class Builder {
        private IntegrationArgs $;

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

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

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @param destinationServiceId ID of the destination service.
         * 
         * @return builder
         * 
         */
        public Builder destinationServiceId(Output destinationServiceId) {
            $.destinationServiceId = destinationServiceId;
            return this;
        }

        /**
         * @param destinationServiceId ID of the destination service.
         * 
         * @return builder
         * 
         */
        public Builder destinationServiceId(String destinationServiceId) {
            return destinationServiceId(Output.of(destinationServiceId));
        }

        /**
         * @param engine The engine of the database cluster you want to add. You can find the complete list of available engine in the [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases).
         * All engines available exept `mongodb`.
         * 
         * @return builder
         * 
         */
        public Builder engine(Output engine) {
            $.engine = engine;
            return this;
        }

        /**
         * @param engine The engine of the database cluster you want to add. You can find the complete list of available engine in the [public documentation](https://docs.ovh.com/gb/en/publiccloud/databases).
         * All engines available exept `mongodb`.
         * 
         * @return builder
         * 
         */
        public Builder engine(String engine) {
            return engine(Output.of(engine));
        }

        /**
         * @param parameters Parameters for the integration.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Parameters for the integration.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The id of the public cloud project. If omitted,
         * the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param sourceServiceId ID of the source service.
         * 
         * @return builder
         * 
         */
        public Builder sourceServiceId(Output sourceServiceId) {
            $.sourceServiceId = sourceServiceId;
            return this;
        }

        /**
         * @param sourceServiceId ID of the source service.
         * 
         * @return builder
         * 
         */
        public Builder sourceServiceId(String sourceServiceId) {
            return sourceServiceId(Output.of(sourceServiceId));
        }

        /**
         * @param type Type of the integration.
         * Available types:
         * * `grafanaDashboard`
         * * `grafanaDatasource`
         * * `kafkaConnect`
         * * `kafkaLogs`
         * * `kafkaMirrorMaker`
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the integration.
         * Available types:
         * * `grafanaDashboard`
         * * `grafanaDatasource`
         * * `kafkaConnect`
         * * `kafkaLogs`
         * * `kafkaMirrorMaker`
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public IntegrationArgs build() {
            if ($.clusterId == null) {
                throw new MissingRequiredPropertyException("IntegrationArgs", "clusterId");
            }
            if ($.destinationServiceId == null) {
                throw new MissingRequiredPropertyException("IntegrationArgs", "destinationServiceId");
            }
            if ($.engine == null) {
                throw new MissingRequiredPropertyException("IntegrationArgs", "engine");
            }
            if ($.serviceName == null) {
                throw new MissingRequiredPropertyException("IntegrationArgs", "serviceName");
            }
            if ($.sourceServiceId == null) {
                throw new MissingRequiredPropertyException("IntegrationArgs", "sourceServiceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy