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

com.pulumi.mongodbatlas.inputs.GetThirdPartyIntegrationPlainArgs Maven / Gradle / Ivy

// *** 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.mongodbatlas.inputs;

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


public final class GetThirdPartyIntegrationPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetThirdPartyIntegrationPlainArgs Empty = new GetThirdPartyIntegrationPlainArgs();

    /**
     * Whether your cluster has Prometheus enabled.
     * 
     */
    @Import(name="enabled")
    private @Nullable Boolean enabled;

    /**
     * @return Whether your cluster has Prometheus enabled.
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Your Microsoft Teams incoming webhook URL.
     * * `PROMETHEUS`
     * 
     */
    @Import(name="microsoftTeamsWebhookUrl")
    private @Nullable String microsoftTeamsWebhookUrl;

    /**
     * @return Your Microsoft Teams incoming webhook URL.
     * * `PROMETHEUS`
     * 
     */
    public Optional microsoftTeamsWebhookUrl() {
        return Optional.ofNullable(this.microsoftTeamsWebhookUrl);
    }

    /**
     * The unique ID for the project to get all Third-Party service integrations
     * 
     */
    @Import(name="projectId", required=true)
    private String projectId;

    /**
     * @return The unique ID for the project to get all Third-Party service integrations
     * 
     */
    public String projectId() {
        return this.projectId;
    }

    /**
     * Indicates which service discovery method is used, either file or http.
     * 
     */
    @Import(name="serviceDiscovery")
    private @Nullable String serviceDiscovery;

    /**
     * @return Indicates which service discovery method is used, either file or http.
     * 
     */
    public Optional serviceDiscovery() {
        return Optional.ofNullable(this.serviceDiscovery);
    }

    /**
     * Third-Party service integration type
     * * PAGER_DUTY
     * * DATADOG
     * * OPS_GENIE
     * * VICTOR_OPS
     * * WEBHOOK
     * * MICROSOFT_TEAMS
     * * PROMETHEUS
     * 
     */
    @Import(name="type", required=true)
    private String type;

    /**
     * @return Third-Party service integration type
     * * PAGER_DUTY
     * * DATADOG
     * * OPS_GENIE
     * * VICTOR_OPS
     * * WEBHOOK
     * * MICROSOFT_TEAMS
     * * PROMETHEUS
     * 
     */
    public String type() {
        return this.type;
    }

    /**
     * Your Prometheus username.
     * 
     */
    @Import(name="userName")
    private @Nullable String userName;

    /**
     * @return Your Prometheus username.
     * 
     */
    public Optional userName() {
        return Optional.ofNullable(this.userName);
    }

    private GetThirdPartyIntegrationPlainArgs() {}

    private GetThirdPartyIntegrationPlainArgs(GetThirdPartyIntegrationPlainArgs $) {
        this.enabled = $.enabled;
        this.microsoftTeamsWebhookUrl = $.microsoftTeamsWebhookUrl;
        this.projectId = $.projectId;
        this.serviceDiscovery = $.serviceDiscovery;
        this.type = $.type;
        this.userName = $.userName;
    }

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

    public static final class Builder {
        private GetThirdPartyIntegrationPlainArgs $;

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

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

        /**
         * @param enabled Whether your cluster has Prometheus enabled.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Boolean enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param microsoftTeamsWebhookUrl Your Microsoft Teams incoming webhook URL.
         * * `PROMETHEUS`
         * 
         * @return builder
         * 
         */
        public Builder microsoftTeamsWebhookUrl(@Nullable String microsoftTeamsWebhookUrl) {
            $.microsoftTeamsWebhookUrl = microsoftTeamsWebhookUrl;
            return this;
        }

        /**
         * @param projectId The unique ID for the project to get all Third-Party service integrations
         * 
         * @return builder
         * 
         */
        public Builder projectId(String projectId) {
            $.projectId = projectId;
            return this;
        }

        /**
         * @param serviceDiscovery Indicates which service discovery method is used, either file or http.
         * 
         * @return builder
         * 
         */
        public Builder serviceDiscovery(@Nullable String serviceDiscovery) {
            $.serviceDiscovery = serviceDiscovery;
            return this;
        }

        /**
         * @param type Third-Party service integration type
         * * PAGER_DUTY
         * * DATADOG
         * * OPS_GENIE
         * * VICTOR_OPS
         * * WEBHOOK
         * * MICROSOFT_TEAMS
         * * PROMETHEUS
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            $.type = type;
            return this;
        }

        /**
         * @param userName Your Prometheus username.
         * 
         * @return builder
         * 
         */
        public Builder userName(@Nullable String userName) {
            $.userName = userName;
            return this;
        }

        public GetThirdPartyIntegrationPlainArgs build() {
            if ($.projectId == null) {
                throw new MissingRequiredPropertyException("GetThirdPartyIntegrationPlainArgs", "projectId");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("GetThirdPartyIntegrationPlainArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy