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

com.pulumi.azurenative.machinelearningservices.inputs.InferenceGroupArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Inference group configuration
 * 
 */
public final class InferenceGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final InferenceGroupArgs Empty = new InferenceGroupArgs();

    /**
     * Capacity to be used from the pool's reserved capacity.
     * optional
     * 
     */
    @Import(name="bonusExtraCapacity")
    private @Nullable Output bonusExtraCapacity;

    /**
     * @return Capacity to be used from the pool's reserved capacity.
     * optional
     * 
     */
    public Optional> bonusExtraCapacity() {
        return Optional.ofNullable(this.bonusExtraCapacity);
    }

    /**
     * Description of the resource.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the resource.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Metadata for the inference group.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

    /**
     * @return Metadata for the inference group.
     * 
     */
    public Optional> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * Property dictionary. Properties can be added, but not removed or altered.
     * 
     */
    @Import(name="properties")
    private @Nullable Output> properties;

    /**
     * @return Property dictionary. Properties can be added, but not removed or altered.
     * 
     */
    public Optional>> properties() {
        return Optional.ofNullable(this.properties);
    }

    private InferenceGroupArgs() {}

    private InferenceGroupArgs(InferenceGroupArgs $) {
        this.bonusExtraCapacity = $.bonusExtraCapacity;
        this.description = $.description;
        this.metadata = $.metadata;
        this.priority = $.priority;
        this.properties = $.properties;
    }

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

    public static final class Builder {
        private InferenceGroupArgs $;

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

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

        /**
         * @param bonusExtraCapacity Capacity to be used from the pool's reserved capacity.
         * optional
         * 
         * @return builder
         * 
         */
        public Builder bonusExtraCapacity(@Nullable Output bonusExtraCapacity) {
            $.bonusExtraCapacity = bonusExtraCapacity;
            return this;
        }

        /**
         * @param bonusExtraCapacity Capacity to be used from the pool's reserved capacity.
         * optional
         * 
         * @return builder
         * 
         */
        public Builder bonusExtraCapacity(Integer bonusExtraCapacity) {
            return bonusExtraCapacity(Output.of(bonusExtraCapacity));
        }

        /**
         * @param description Description of the resource.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the resource.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param metadata Metadata for the inference group.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata Metadata for the inference group.
         * 
         * @return builder
         * 
         */
        public Builder metadata(String metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param priority Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param properties Property dictionary. Properties can be added, but not removed or altered.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output> properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Property dictionary. Properties can be added, but not removed or altered.
         * 
         * @return builder
         * 
         */
        public Builder properties(Map properties) {
            return properties(Output.of(properties));
        }

        public InferenceGroupArgs build() {
            $.bonusExtraCapacity = Codegen.integerProp("bonusExtraCapacity").output().arg($.bonusExtraCapacity).def(0).getNullable();
            $.priority = Codegen.integerProp("priority").output().arg($.priority).def(0).getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy