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

com.pulumi.azurenative.machinelearningservices.inputs.ModelVersionArgs 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.machinelearningservices.inputs;

import com.pulumi.azurenative.machinelearningservices.inputs.FlavorDataArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Model asset version details.
 * 
 */
public final class ModelVersionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ModelVersionArgs Empty = new ModelVersionArgs();

    /**
     * The asset description text.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The asset description text.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Mapping of model flavors to their properties.
     * 
     */
    @Import(name="flavors")
    private @Nullable Output> flavors;

    /**
     * @return Mapping of model flavors to their properties.
     * 
     */
    public Optional>> flavors() {
        return Optional.ofNullable(this.flavors);
    }

    /**
     * If the name version are system generated (anonymous registration).
     * 
     */
    @Import(name="isAnonymous")
    private @Nullable Output isAnonymous;

    /**
     * @return If the name version are system generated (anonymous registration).
     * 
     */
    public Optional> isAnonymous() {
        return Optional.ofNullable(this.isAnonymous);
    }

    /**
     * Is the asset archived?
     * 
     */
    @Import(name="isArchived")
    private @Nullable Output isArchived;

    /**
     * @return Is the asset archived?
     * 
     */
    public Optional> isArchived() {
        return Optional.ofNullable(this.isArchived);
    }

    /**
     * Name of the training job which produced this model
     * 
     */
    @Import(name="jobName")
    private @Nullable Output jobName;

    /**
     * @return Name of the training job which produced this model
     * 
     */
    public Optional> jobName() {
        return Optional.ofNullable(this.jobName);
    }

    /**
     * The storage format for this entity. Used for NCD.
     * 
     */
    @Import(name="modelType")
    private @Nullable Output modelType;

    /**
     * @return The storage format for this entity. Used for NCD.
     * 
     */
    public Optional> modelType() {
        return Optional.ofNullable(this.modelType);
    }

    /**
     * The URI path to the model contents.
     * 
     */
    @Import(name="modelUri")
    private @Nullable Output modelUri;

    /**
     * @return The URI path to the model contents.
     * 
     */
    public Optional> modelUri() {
        return Optional.ofNullable(this.modelUri);
    }

    /**
     * The asset property dictionary.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return The asset property dictionary.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * Stage in the model lifecycle assigned to this model
     * 
     */
    @Import(name="stage")
    private @Nullable Output stage;

    /**
     * @return Stage in the model lifecycle assigned to this model
     * 
     */
    public Optional> stage() {
        return Optional.ofNullable(this.stage);
    }

    /**
     * Tag dictionary. Tags can be added, removed, and updated.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Tag dictionary. Tags can be added, removed, and updated.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ModelVersionArgs() {}

    private ModelVersionArgs(ModelVersionArgs $) {
        this.description = $.description;
        this.flavors = $.flavors;
        this.isAnonymous = $.isAnonymous;
        this.isArchived = $.isArchived;
        this.jobName = $.jobName;
        this.modelType = $.modelType;
        this.modelUri = $.modelUri;
        this.properties = $.properties;
        this.stage = $.stage;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ModelVersionArgs $;

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

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

        /**
         * @param description The asset description text.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The asset description text.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param flavors Mapping of model flavors to their properties.
         * 
         * @return builder
         * 
         */
        public Builder flavors(@Nullable Output> flavors) {
            $.flavors = flavors;
            return this;
        }

        /**
         * @param flavors Mapping of model flavors to their properties.
         * 
         * @return builder
         * 
         */
        public Builder flavors(Map flavors) {
            return flavors(Output.of(flavors));
        }

        /**
         * @param isAnonymous If the name version are system generated (anonymous registration).
         * 
         * @return builder
         * 
         */
        public Builder isAnonymous(@Nullable Output isAnonymous) {
            $.isAnonymous = isAnonymous;
            return this;
        }

        /**
         * @param isAnonymous If the name version are system generated (anonymous registration).
         * 
         * @return builder
         * 
         */
        public Builder isAnonymous(Boolean isAnonymous) {
            return isAnonymous(Output.of(isAnonymous));
        }

        /**
         * @param isArchived Is the asset archived?
         * 
         * @return builder
         * 
         */
        public Builder isArchived(@Nullable Output isArchived) {
            $.isArchived = isArchived;
            return this;
        }

        /**
         * @param isArchived Is the asset archived?
         * 
         * @return builder
         * 
         */
        public Builder isArchived(Boolean isArchived) {
            return isArchived(Output.of(isArchived));
        }

        /**
         * @param jobName Name of the training job which produced this model
         * 
         * @return builder
         * 
         */
        public Builder jobName(@Nullable Output jobName) {
            $.jobName = jobName;
            return this;
        }

        /**
         * @param jobName Name of the training job which produced this model
         * 
         * @return builder
         * 
         */
        public Builder jobName(String jobName) {
            return jobName(Output.of(jobName));
        }

        /**
         * @param modelType The storage format for this entity. Used for NCD.
         * 
         * @return builder
         * 
         */
        public Builder modelType(@Nullable Output modelType) {
            $.modelType = modelType;
            return this;
        }

        /**
         * @param modelType The storage format for this entity. Used for NCD.
         * 
         * @return builder
         * 
         */
        public Builder modelType(String modelType) {
            return modelType(Output.of(modelType));
        }

        /**
         * @param modelUri The URI path to the model contents.
         * 
         * @return builder
         * 
         */
        public Builder modelUri(@Nullable Output modelUri) {
            $.modelUri = modelUri;
            return this;
        }

        /**
         * @param modelUri The URI path to the model contents.
         * 
         * @return builder
         * 
         */
        public Builder modelUri(String modelUri) {
            return modelUri(Output.of(modelUri));
        }

        /**
         * @param properties The asset property dictionary.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The asset property dictionary.
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param stage Stage in the model lifecycle assigned to this model
         * 
         * @return builder
         * 
         */
        public Builder stage(@Nullable Output stage) {
            $.stage = stage;
            return this;
        }

        /**
         * @param stage Stage in the model lifecycle assigned to this model
         * 
         * @return builder
         * 
         */
        public Builder stage(String stage) {
            return stage(Output.of(stage));
        }

        /**
         * @param tags Tag dictionary. Tags can be added, removed, and updated.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Tag dictionary. Tags can be added, removed, and updated.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ModelVersionArgs build() {
            $.isAnonymous = Codegen.booleanProp("isAnonymous").output().arg($.isAnonymous).def(false).getNullable();
            $.isArchived = Codegen.booleanProp("isArchived").output().arg($.isArchived).def(false).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy