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

com.pulumi.azurenative.machinelearningservices.outputs.InferenceGroupResponse 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.machinelearningservices.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class InferenceGroupResponse {
    /**
     * @return Capacity to be used from the pool's reserved capacity.
     * optional
     * 
     */
    private @Nullable Integer bonusExtraCapacity;
    /**
     * @return Description of the resource.
     * 
     */
    private @Nullable String description;
    /**
     * @return Metadata for the inference group.
     * 
     */
    private @Nullable String metadata;
    /**
     * @return Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
     * 
     */
    private @Nullable Integer priority;
    /**
     * @return Property dictionary. Properties can be added, but not removed or altered.
     * 
     */
    private @Nullable Map properties;
    /**
     * @return Provisioning state for the inference group.
     * 
     */
    private String provisioningState;

    private InferenceGroupResponse() {}
    /**
     * @return Capacity to be used from the pool's reserved capacity.
     * optional
     * 
     */
    public Optional bonusExtraCapacity() {
        return Optional.ofNullable(this.bonusExtraCapacity);
    }
    /**
     * @return Description of the resource.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Metadata for the inference group.
     * 
     */
    public Optional metadata() {
        return Optional.ofNullable(this.metadata);
    }
    /**
     * @return Priority of the group within the N:Microsoft.MachineLearning.ManagementFrontEnd.Contracts.V20230801Preview.Pools.InferencePools.
     * 
     */
    public Optional priority() {
        return Optional.ofNullable(this.priority);
    }
    /**
     * @return Property dictionary. Properties can be added, but not removed or altered.
     * 
     */
    public Map properties() {
        return this.properties == null ? Map.of() : this.properties;
    }
    /**
     * @return Provisioning state for the inference group.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }

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

    public static Builder builder(InferenceGroupResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer bonusExtraCapacity;
        private @Nullable String description;
        private @Nullable String metadata;
        private @Nullable Integer priority;
        private @Nullable Map properties;
        private String provisioningState;
        public Builder() {}
        public Builder(InferenceGroupResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bonusExtraCapacity = defaults.bonusExtraCapacity;
    	      this.description = defaults.description;
    	      this.metadata = defaults.metadata;
    	      this.priority = defaults.priority;
    	      this.properties = defaults.properties;
    	      this.provisioningState = defaults.provisioningState;
        }

        @CustomType.Setter
        public Builder bonusExtraCapacity(@Nullable Integer bonusExtraCapacity) {

            this.bonusExtraCapacity = bonusExtraCapacity;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder metadata(@Nullable String metadata) {

            this.metadata = metadata;
            return this;
        }
        @CustomType.Setter
        public Builder priority(@Nullable Integer priority) {

            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder properties(@Nullable Map properties) {

            this.properties = properties;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("InferenceGroupResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        public InferenceGroupResponse build() {
            final var _resultValue = new InferenceGroupResponse();
            _resultValue.bonusExtraCapacity = bonusExtraCapacity;
            _resultValue.description = description;
            _resultValue.metadata = metadata;
            _resultValue.priority = priority;
            _resultValue.properties = properties;
            _resultValue.provisioningState = provisioningState;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy