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

com.pulumi.azurenative.batch.outputs.ScaleSettingsResponse 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.batch.outputs;

import com.pulumi.azurenative.batch.outputs.AutoScaleSettingsResponse;
import com.pulumi.azurenative.batch.outputs.FixedScaleSettingsResponse;
import com.pulumi.core.annotations.CustomType;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ScaleSettingsResponse {
    /**
     * @return This property and fixedScale are mutually exclusive and one of the properties must be specified.
     * 
     */
    private @Nullable AutoScaleSettingsResponse autoScale;
    /**
     * @return This property and autoScale are mutually exclusive and one of the properties must be specified.
     * 
     */
    private @Nullable FixedScaleSettingsResponse fixedScale;

    private ScaleSettingsResponse() {}
    /**
     * @return This property and fixedScale are mutually exclusive and one of the properties must be specified.
     * 
     */
    public Optional autoScale() {
        return Optional.ofNullable(this.autoScale);
    }
    /**
     * @return This property and autoScale are mutually exclusive and one of the properties must be specified.
     * 
     */
    public Optional fixedScale() {
        return Optional.ofNullable(this.fixedScale);
    }

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

    public static Builder builder(ScaleSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable AutoScaleSettingsResponse autoScale;
        private @Nullable FixedScaleSettingsResponse fixedScale;
        public Builder() {}
        public Builder(ScaleSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoScale = defaults.autoScale;
    	      this.fixedScale = defaults.fixedScale;
        }

        @CustomType.Setter
        public Builder autoScale(@Nullable AutoScaleSettingsResponse autoScale) {

            this.autoScale = autoScale;
            return this;
        }
        @CustomType.Setter
        public Builder fixedScale(@Nullable FixedScaleSettingsResponse fixedScale) {

            this.fixedScale = fixedScale;
            return this;
        }
        public ScaleSettingsResponse build() {
            final var _resultValue = new ScaleSettingsResponse();
            _resultValue.autoScale = autoScale;
            _resultValue.fixedScale = fixedScale;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy