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

com.pulumi.azurenative.databasewatcher.AlertRuleResourceArgs 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.databasewatcher;

import com.pulumi.azurenative.databasewatcher.enums.AlertRuleCreationProperties;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AlertRuleResourceArgs Empty = new AlertRuleResourceArgs();

    /**
     * The resource ID of the alert rule resource.
     * 
     */
    @Import(name="alertRuleResourceId", required=true)
    private Output alertRuleResourceId;

    /**
     * @return The resource ID of the alert rule resource.
     * 
     */
    public Output alertRuleResourceId() {
        return this.alertRuleResourceId;
    }

    /**
     * The alert rule proxy resource name.
     * 
     */
    @Import(name="alertRuleResourceName")
    private @Nullable Output alertRuleResourceName;

    /**
     * @return The alert rule proxy resource name.
     * 
     */
    public Optional> alertRuleResourceName() {
        return Optional.ofNullable(this.alertRuleResourceName);
    }

    /**
     * The template ID associated with alert rule resource.
     * 
     */
    @Import(name="alertRuleTemplateId", required=true)
    private Output alertRuleTemplateId;

    /**
     * @return The template ID associated with alert rule resource.
     * 
     */
    public Output alertRuleTemplateId() {
        return this.alertRuleTemplateId;
    }

    /**
     * The alert rule template version.
     * 
     */
    @Import(name="alertRuleTemplateVersion", required=true)
    private Output alertRuleTemplateVersion;

    /**
     * @return The alert rule template version.
     * 
     */
    public Output alertRuleTemplateVersion() {
        return this.alertRuleTemplateVersion;
    }

    /**
     * The properties with which the alert rule resource was created.
     * 
     */
    @Import(name="createdWithProperties", required=true)
    private Output> createdWithProperties;

    /**
     * @return The properties with which the alert rule resource was created.
     * 
     */
    public Output> createdWithProperties() {
        return this.createdWithProperties;
    }

    /**
     * The creation time of the alert rule resource.
     * 
     */
    @Import(name="creationTime", required=true)
    private Output creationTime;

    /**
     * @return The creation time of the alert rule resource.
     * 
     */
    public Output creationTime() {
        return this.creationTime;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The database watcher name.
     * 
     */
    @Import(name="watcherName", required=true)
    private Output watcherName;

    /**
     * @return The database watcher name.
     * 
     */
    public Output watcherName() {
        return this.watcherName;
    }

    private AlertRuleResourceArgs() {}

    private AlertRuleResourceArgs(AlertRuleResourceArgs $) {
        this.alertRuleResourceId = $.alertRuleResourceId;
        this.alertRuleResourceName = $.alertRuleResourceName;
        this.alertRuleTemplateId = $.alertRuleTemplateId;
        this.alertRuleTemplateVersion = $.alertRuleTemplateVersion;
        this.createdWithProperties = $.createdWithProperties;
        this.creationTime = $.creationTime;
        this.resourceGroupName = $.resourceGroupName;
        this.watcherName = $.watcherName;
    }

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

    public static final class Builder {
        private AlertRuleResourceArgs $;

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

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

        /**
         * @param alertRuleResourceId The resource ID of the alert rule resource.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleResourceId(Output alertRuleResourceId) {
            $.alertRuleResourceId = alertRuleResourceId;
            return this;
        }

        /**
         * @param alertRuleResourceId The resource ID of the alert rule resource.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleResourceId(String alertRuleResourceId) {
            return alertRuleResourceId(Output.of(alertRuleResourceId));
        }

        /**
         * @param alertRuleResourceName The alert rule proxy resource name.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleResourceName(@Nullable Output alertRuleResourceName) {
            $.alertRuleResourceName = alertRuleResourceName;
            return this;
        }

        /**
         * @param alertRuleResourceName The alert rule proxy resource name.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleResourceName(String alertRuleResourceName) {
            return alertRuleResourceName(Output.of(alertRuleResourceName));
        }

        /**
         * @param alertRuleTemplateId The template ID associated with alert rule resource.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleTemplateId(Output alertRuleTemplateId) {
            $.alertRuleTemplateId = alertRuleTemplateId;
            return this;
        }

        /**
         * @param alertRuleTemplateId The template ID associated with alert rule resource.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleTemplateId(String alertRuleTemplateId) {
            return alertRuleTemplateId(Output.of(alertRuleTemplateId));
        }

        /**
         * @param alertRuleTemplateVersion The alert rule template version.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleTemplateVersion(Output alertRuleTemplateVersion) {
            $.alertRuleTemplateVersion = alertRuleTemplateVersion;
            return this;
        }

        /**
         * @param alertRuleTemplateVersion The alert rule template version.
         * 
         * @return builder
         * 
         */
        public Builder alertRuleTemplateVersion(String alertRuleTemplateVersion) {
            return alertRuleTemplateVersion(Output.of(alertRuleTemplateVersion));
        }

        /**
         * @param createdWithProperties The properties with which the alert rule resource was created.
         * 
         * @return builder
         * 
         */
        public Builder createdWithProperties(Output> createdWithProperties) {
            $.createdWithProperties = createdWithProperties;
            return this;
        }

        /**
         * @param createdWithProperties The properties with which the alert rule resource was created.
         * 
         * @return builder
         * 
         */
        public Builder createdWithProperties(Either createdWithProperties) {
            return createdWithProperties(Output.of(createdWithProperties));
        }

        /**
         * @param createdWithProperties The properties with which the alert rule resource was created.
         * 
         * @return builder
         * 
         */
        public Builder createdWithProperties(String createdWithProperties) {
            return createdWithProperties(Either.ofLeft(createdWithProperties));
        }

        /**
         * @param createdWithProperties The properties with which the alert rule resource was created.
         * 
         * @return builder
         * 
         */
        public Builder createdWithProperties(AlertRuleCreationProperties createdWithProperties) {
            return createdWithProperties(Either.ofRight(createdWithProperties));
        }

        /**
         * @param creationTime The creation time of the alert rule resource.
         * 
         * @return builder
         * 
         */
        public Builder creationTime(Output creationTime) {
            $.creationTime = creationTime;
            return this;
        }

        /**
         * @param creationTime The creation time of the alert rule resource.
         * 
         * @return builder
         * 
         */
        public Builder creationTime(String creationTime) {
            return creationTime(Output.of(creationTime));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param watcherName The database watcher name.
         * 
         * @return builder
         * 
         */
        public Builder watcherName(Output watcherName) {
            $.watcherName = watcherName;
            return this;
        }

        /**
         * @param watcherName The database watcher name.
         * 
         * @return builder
         * 
         */
        public Builder watcherName(String watcherName) {
            return watcherName(Output.of(watcherName));
        }

        public AlertRuleResourceArgs build() {
            if ($.alertRuleResourceId == null) {
                throw new MissingRequiredPropertyException("AlertRuleResourceArgs", "alertRuleResourceId");
            }
            if ($.alertRuleTemplateId == null) {
                throw new MissingRequiredPropertyException("AlertRuleResourceArgs", "alertRuleTemplateId");
            }
            if ($.alertRuleTemplateVersion == null) {
                throw new MissingRequiredPropertyException("AlertRuleResourceArgs", "alertRuleTemplateVersion");
            }
            if ($.createdWithProperties == null) {
                throw new MissingRequiredPropertyException("AlertRuleResourceArgs", "createdWithProperties");
            }
            if ($.creationTime == null) {
                throw new MissingRequiredPropertyException("AlertRuleResourceArgs", "creationTime");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("AlertRuleResourceArgs", "resourceGroupName");
            }
            if ($.watcherName == null) {
                throw new MissingRequiredPropertyException("AlertRuleResourceArgs", "watcherName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy