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

com.pulumi.azurenative.elastic.OpenAIArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.elastic.inputs.OpenAIIntegrationPropertiesArgs;
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 OpenAIArgs extends com.pulumi.resources.ResourceArgs {

    public static final OpenAIArgs Empty = new OpenAIArgs();

    /**
     * OpenAI Integration name
     * 
     */
    @Import(name="integrationName")
    private @Nullable Output integrationName;

    /**
     * @return OpenAI Integration name
     * 
     */
    public Optional> integrationName() {
        return Optional.ofNullable(this.integrationName);
    }

    /**
     * Monitor resource name
     * 
     */
    @Import(name="monitorName", required=true)
    private Output monitorName;

    /**
     * @return Monitor resource name
     * 
     */
    public Output monitorName() {
        return this.monitorName;
    }

    /**
     * Open AI Integration details.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Open AI Integration details.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * 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;
    }

    private OpenAIArgs() {}

    private OpenAIArgs(OpenAIArgs $) {
        this.integrationName = $.integrationName;
        this.monitorName = $.monitorName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private OpenAIArgs $;

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

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

        /**
         * @param integrationName OpenAI Integration name
         * 
         * @return builder
         * 
         */
        public Builder integrationName(@Nullable Output integrationName) {
            $.integrationName = integrationName;
            return this;
        }

        /**
         * @param integrationName OpenAI Integration name
         * 
         * @return builder
         * 
         */
        public Builder integrationName(String integrationName) {
            return integrationName(Output.of(integrationName));
        }

        /**
         * @param monitorName Monitor resource name
         * 
         * @return builder
         * 
         */
        public Builder monitorName(Output monitorName) {
            $.monitorName = monitorName;
            return this;
        }

        /**
         * @param monitorName Monitor resource name
         * 
         * @return builder
         * 
         */
        public Builder monitorName(String monitorName) {
            return monitorName(Output.of(monitorName));
        }

        /**
         * @param properties Open AI Integration details.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Open AI Integration details.
         * 
         * @return builder
         * 
         */
        public Builder properties(OpenAIIntegrationPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @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));
        }

        public OpenAIArgs build() {
            if ($.monitorName == null) {
                throw new MissingRequiredPropertyException("OpenAIArgs", "monitorName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("OpenAIArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy