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

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

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


public final class ServerlessEndpointCapacityReservationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServerlessEndpointCapacityReservationArgs Empty = new ServerlessEndpointCapacityReservationArgs();

    /**
     * [Required] Specifies a capacity reservation group ID to allocate capacity from.
     * 
     */
    @Import(name="capacityReservationGroupId", required=true)
    private Output capacityReservationGroupId;

    /**
     * @return [Required] Specifies a capacity reservation group ID to allocate capacity from.
     * 
     */
    public Output capacityReservationGroupId() {
        return this.capacityReservationGroupId;
    }

    /**
     * Specifies a capacity amount to reserve for this endpoint within the parent capacity reservation group.
     * 
     */
    @Import(name="endpointReservedCapacity")
    private @Nullable Output endpointReservedCapacity;

    /**
     * @return Specifies a capacity amount to reserve for this endpoint within the parent capacity reservation group.
     * 
     */
    public Optional> endpointReservedCapacity() {
        return Optional.ofNullable(this.endpointReservedCapacity);
    }

    private ServerlessEndpointCapacityReservationArgs() {}

    private ServerlessEndpointCapacityReservationArgs(ServerlessEndpointCapacityReservationArgs $) {
        this.capacityReservationGroupId = $.capacityReservationGroupId;
        this.endpointReservedCapacity = $.endpointReservedCapacity;
    }

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

    public static final class Builder {
        private ServerlessEndpointCapacityReservationArgs $;

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

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

        /**
         * @param capacityReservationGroupId [Required] Specifies a capacity reservation group ID to allocate capacity from.
         * 
         * @return builder
         * 
         */
        public Builder capacityReservationGroupId(Output capacityReservationGroupId) {
            $.capacityReservationGroupId = capacityReservationGroupId;
            return this;
        }

        /**
         * @param capacityReservationGroupId [Required] Specifies a capacity reservation group ID to allocate capacity from.
         * 
         * @return builder
         * 
         */
        public Builder capacityReservationGroupId(String capacityReservationGroupId) {
            return capacityReservationGroupId(Output.of(capacityReservationGroupId));
        }

        /**
         * @param endpointReservedCapacity Specifies a capacity amount to reserve for this endpoint within the parent capacity reservation group.
         * 
         * @return builder
         * 
         */
        public Builder endpointReservedCapacity(@Nullable Output endpointReservedCapacity) {
            $.endpointReservedCapacity = endpointReservedCapacity;
            return this;
        }

        /**
         * @param endpointReservedCapacity Specifies a capacity amount to reserve for this endpoint within the parent capacity reservation group.
         * 
         * @return builder
         * 
         */
        public Builder endpointReservedCapacity(Integer endpointReservedCapacity) {
            return endpointReservedCapacity(Output.of(endpointReservedCapacity));
        }

        public ServerlessEndpointCapacityReservationArgs build() {
            if ($.capacityReservationGroupId == null) {
                throw new MissingRequiredPropertyException("ServerlessEndpointCapacityReservationArgs", "capacityReservationGroupId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy