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

com.pulumi.azurenative.cognitiveservices.inputs.DeploymentModelArgs 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.azurenative.cognitiveservices.inputs;

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


/**
 * Properties of Cognitive Services account deployment model.
 * 
 */
public final class DeploymentModelArgs extends com.pulumi.resources.ResourceArgs {

    public static final DeploymentModelArgs Empty = new DeploymentModelArgs();

    /**
     * Deployment model format.
     * 
     */
    @Import(name="format")
    private @Nullable Output format;

    /**
     * @return Deployment model format.
     * 
     */
    public Optional> format() {
        return Optional.ofNullable(this.format);
    }

    /**
     * Deployment model name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Deployment model name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Optional. Deployment model source ARM resource ID.
     * 
     */
    @Import(name="source")
    private @Nullable Output source;

    /**
     * @return Optional. Deployment model source ARM resource ID.
     * 
     */
    public Optional> source() {
        return Optional.ofNullable(this.source);
    }

    /**
     * Optional. Deployment model version. If version is not specified, a default version will be assigned. The default version is different for different models and might change when there is new version available for a model. Default version for a model could be found from list models API.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Optional. Deployment model version. If version is not specified, a default version will be assigned. The default version is different for different models and might change when there is new version available for a model. Default version for a model could be found from list models API.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private DeploymentModelArgs() {}

    private DeploymentModelArgs(DeploymentModelArgs $) {
        this.format = $.format;
        this.name = $.name;
        this.source = $.source;
        this.version = $.version;
    }

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

    public static final class Builder {
        private DeploymentModelArgs $;

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

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

        /**
         * @param format Deployment model format.
         * 
         * @return builder
         * 
         */
        public Builder format(@Nullable Output format) {
            $.format = format;
            return this;
        }

        /**
         * @param format Deployment model format.
         * 
         * @return builder
         * 
         */
        public Builder format(String format) {
            return format(Output.of(format));
        }

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

        /**
         * @param name Deployment model name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param source Optional. Deployment model source ARM resource ID.
         * 
         * @return builder
         * 
         */
        public Builder source(@Nullable Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source Optional. Deployment model source ARM resource ID.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        /**
         * @param version Optional. Deployment model version. If version is not specified, a default version will be assigned. The default version is different for different models and might change when there is new version available for a model. Default version for a model could be found from list models API.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Optional. Deployment model version. If version is not specified, a default version will be assigned. The default version is different for different models and might change when there is new version available for a model. Default version for a model could be found from list models API.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public DeploymentModelArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy