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

com.pulumi.azurenative.providerhub.outputs.SkuSettingResponseCapacity 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.providerhub.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class SkuSettingResponseCapacity {
    private @Nullable Integer default_;
    private @Nullable Integer maximum;
    private Integer minimum;
    private @Nullable String scaleType;

    private SkuSettingResponseCapacity() {}
    public Optional default_() {
        return Optional.ofNullable(this.default_);
    }
    public Optional maximum() {
        return Optional.ofNullable(this.maximum);
    }
    public Integer minimum() {
        return this.minimum;
    }
    public Optional scaleType() {
        return Optional.ofNullable(this.scaleType);
    }

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

    public static Builder builder(SkuSettingResponseCapacity defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer default_;
        private @Nullable Integer maximum;
        private Integer minimum;
        private @Nullable String scaleType;
        public Builder() {}
        public Builder(SkuSettingResponseCapacity defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.default_ = defaults.default_;
    	      this.maximum = defaults.maximum;
    	      this.minimum = defaults.minimum;
    	      this.scaleType = defaults.scaleType;
        }

        @CustomType.Setter("default")
        public Builder default_(@Nullable Integer default_) {

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

            this.maximum = maximum;
            return this;
        }
        @CustomType.Setter
        public Builder minimum(Integer minimum) {
            if (minimum == null) {
              throw new MissingRequiredPropertyException("SkuSettingResponseCapacity", "minimum");
            }
            this.minimum = minimum;
            return this;
        }
        @CustomType.Setter
        public Builder scaleType(@Nullable String scaleType) {

            this.scaleType = scaleType;
            return this;
        }
        public SkuSettingResponseCapacity build() {
            final var _resultValue = new SkuSettingResponseCapacity();
            _resultValue.default_ = default_;
            _resultValue.maximum = maximum;
            _resultValue.minimum = minimum;
            _resultValue.scaleType = scaleType;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy