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

com.pulumi.aws.sagemaker.inputs.EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs 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.aws.sagemaker.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;


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

    public static final EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs Empty = new EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs();

    /**
     * Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * Defines the capacity size, either as a number of instances or a capacity percentage.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return Defines the capacity size, either as a number of instances or a capacity percentage.
     * 
     */
    public Output value() {
        return this.value;
    }

    private EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs() {}

    private EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs(EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs $) {
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs $;

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

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

        /**
         * @param type Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Specifies the endpoint capacity type. Valid values are: `INSTANCE_COUNT`, or `CAPACITY_PERCENT`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param value Defines the capacity size, either as a number of instances or a capacity percentage.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Defines the capacity size, either as a number of instances or a capacity percentage.
         * 
         * @return builder
         * 
         */
        public Builder value(Integer value) {
            return value(Output.of(value));
        }

        public EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs", "type");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("EndpointDeploymentConfigRollingUpdatePolicyMaximumBatchSizeArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy