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

com.pulumi.azurenative.sql.WorkloadClassifierArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.sql;

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 WorkloadClassifierArgs extends com.pulumi.resources.ResourceArgs {

    public static final WorkloadClassifierArgs Empty = new WorkloadClassifierArgs();

    /**
     * The workload classifier context.
     * 
     */
    @Import(name="context")
    private @Nullable Output context;

    /**
     * @return The workload classifier context.
     * 
     */
    public Optional> context() {
        return Optional.ofNullable(this.context);
    }

    /**
     * The name of the database.
     * 
     */
    @Import(name="databaseName", required=true)
    private Output databaseName;

    /**
     * @return The name of the database.
     * 
     */
    public Output databaseName() {
        return this.databaseName;
    }

    /**
     * The workload classifier end time for classification.
     * 
     */
    @Import(name="endTime")
    private @Nullable Output endTime;

    /**
     * @return The workload classifier end time for classification.
     * 
     */
    public Optional> endTime() {
        return Optional.ofNullable(this.endTime);
    }

    /**
     * The workload classifier importance.
     * 
     */
    @Import(name="importance")
    private @Nullable Output importance;

    /**
     * @return The workload classifier importance.
     * 
     */
    public Optional> importance() {
        return Optional.ofNullable(this.importance);
    }

    /**
     * The workload classifier label.
     * 
     */
    @Import(name="label")
    private @Nullable Output label;

    /**
     * @return The workload classifier label.
     * 
     */
    public Optional> label() {
        return Optional.ofNullable(this.label);
    }

    /**
     * The workload classifier member name.
     * 
     */
    @Import(name="memberName", required=true)
    private Output memberName;

    /**
     * @return The workload classifier member name.
     * 
     */
    public Output memberName() {
        return this.memberName;
    }

    /**
     * The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the server.
     * 
     */
    @Import(name="serverName", required=true)
    private Output serverName;

    /**
     * @return The name of the server.
     * 
     */
    public Output serverName() {
        return this.serverName;
    }

    /**
     * The workload classifier start time for classification.
     * 
     */
    @Import(name="startTime")
    private @Nullable Output startTime;

    /**
     * @return The workload classifier start time for classification.
     * 
     */
    public Optional> startTime() {
        return Optional.ofNullable(this.startTime);
    }

    /**
     * The name of the workload classifier to create/update.
     * 
     */
    @Import(name="workloadClassifierName")
    private @Nullable Output workloadClassifierName;

    /**
     * @return The name of the workload classifier to create/update.
     * 
     */
    public Optional> workloadClassifierName() {
        return Optional.ofNullable(this.workloadClassifierName);
    }

    /**
     * The name of the workload group from which to receive the classifier from.
     * 
     */
    @Import(name="workloadGroupName", required=true)
    private Output workloadGroupName;

    /**
     * @return The name of the workload group from which to receive the classifier from.
     * 
     */
    public Output workloadGroupName() {
        return this.workloadGroupName;
    }

    private WorkloadClassifierArgs() {}

    private WorkloadClassifierArgs(WorkloadClassifierArgs $) {
        this.context = $.context;
        this.databaseName = $.databaseName;
        this.endTime = $.endTime;
        this.importance = $.importance;
        this.label = $.label;
        this.memberName = $.memberName;
        this.resourceGroupName = $.resourceGroupName;
        this.serverName = $.serverName;
        this.startTime = $.startTime;
        this.workloadClassifierName = $.workloadClassifierName;
        this.workloadGroupName = $.workloadGroupName;
    }

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

    public static final class Builder {
        private WorkloadClassifierArgs $;

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

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

        /**
         * @param context The workload classifier context.
         * 
         * @return builder
         * 
         */
        public Builder context(@Nullable Output context) {
            $.context = context;
            return this;
        }

        /**
         * @param context The workload classifier context.
         * 
         * @return builder
         * 
         */
        public Builder context(String context) {
            return context(Output.of(context));
        }

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

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

        /**
         * @param endTime The workload classifier end time for classification.
         * 
         * @return builder
         * 
         */
        public Builder endTime(@Nullable Output endTime) {
            $.endTime = endTime;
            return this;
        }

        /**
         * @param endTime The workload classifier end time for classification.
         * 
         * @return builder
         * 
         */
        public Builder endTime(String endTime) {
            return endTime(Output.of(endTime));
        }

        /**
         * @param importance The workload classifier importance.
         * 
         * @return builder
         * 
         */
        public Builder importance(@Nullable Output importance) {
            $.importance = importance;
            return this;
        }

        /**
         * @param importance The workload classifier importance.
         * 
         * @return builder
         * 
         */
        public Builder importance(String importance) {
            return importance(Output.of(importance));
        }

        /**
         * @param label The workload classifier label.
         * 
         * @return builder
         * 
         */
        public Builder label(@Nullable Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label The workload classifier label.
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @param memberName The workload classifier member name.
         * 
         * @return builder
         * 
         */
        public Builder memberName(Output memberName) {
            $.memberName = memberName;
            return this;
        }

        /**
         * @param memberName The workload classifier member name.
         * 
         * @return builder
         * 
         */
        public Builder memberName(String memberName) {
            return memberName(Output.of(memberName));
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serverName The name of the server.
         * 
         * @return builder
         * 
         */
        public Builder serverName(Output serverName) {
            $.serverName = serverName;
            return this;
        }

        /**
         * @param serverName The name of the server.
         * 
         * @return builder
         * 
         */
        public Builder serverName(String serverName) {
            return serverName(Output.of(serverName));
        }

        /**
         * @param startTime The workload classifier start time for classification.
         * 
         * @return builder
         * 
         */
        public Builder startTime(@Nullable Output startTime) {
            $.startTime = startTime;
            return this;
        }

        /**
         * @param startTime The workload classifier start time for classification.
         * 
         * @return builder
         * 
         */
        public Builder startTime(String startTime) {
            return startTime(Output.of(startTime));
        }

        /**
         * @param workloadClassifierName The name of the workload classifier to create/update.
         * 
         * @return builder
         * 
         */
        public Builder workloadClassifierName(@Nullable Output workloadClassifierName) {
            $.workloadClassifierName = workloadClassifierName;
            return this;
        }

        /**
         * @param workloadClassifierName The name of the workload classifier to create/update.
         * 
         * @return builder
         * 
         */
        public Builder workloadClassifierName(String workloadClassifierName) {
            return workloadClassifierName(Output.of(workloadClassifierName));
        }

        /**
         * @param workloadGroupName The name of the workload group from which to receive the classifier from.
         * 
         * @return builder
         * 
         */
        public Builder workloadGroupName(Output workloadGroupName) {
            $.workloadGroupName = workloadGroupName;
            return this;
        }

        /**
         * @param workloadGroupName The name of the workload group from which to receive the classifier from.
         * 
         * @return builder
         * 
         */
        public Builder workloadGroupName(String workloadGroupName) {
            return workloadGroupName(Output.of(workloadGroupName));
        }

        public WorkloadClassifierArgs build() {
            if ($.databaseName == null) {
                throw new MissingRequiredPropertyException("WorkloadClassifierArgs", "databaseName");
            }
            if ($.memberName == null) {
                throw new MissingRequiredPropertyException("WorkloadClassifierArgs", "memberName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkloadClassifierArgs", "resourceGroupName");
            }
            if ($.serverName == null) {
                throw new MissingRequiredPropertyException("WorkloadClassifierArgs", "serverName");
            }
            if ($.workloadGroupName == null) {
                throw new MissingRequiredPropertyException("WorkloadClassifierArgs", "workloadGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy