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

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.IntegrationState 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.inputs;

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


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

    public static final IntegrationState Empty = new IntegrationState();

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

    /**
     * @return Cluster ID.
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

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

    /**
     * @return ID of the destination service.
     * 
     */
    public Optional> destinationServiceId() {
        return Optional.ofNullable(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")
    private @Nullable 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 Optional> engine() {
        return Optional.ofNullable(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")
    private @Nullable Output serviceName;

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

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

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

    /**
     * Current status of the integration.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return Current status of the integration.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * 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 IntegrationState() {}

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

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

    public static final class Builder {
        private IntegrationState $;

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

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

        /**
         * @param clusterId Cluster ID.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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 status Current status of the integration.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Current status of the integration.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @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 IntegrationState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy