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

com.pulumi.aws.batch.outputs.SchedulingPolicyFairSharePolicy Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.batch.outputs;

import com.pulumi.aws.batch.outputs.SchedulingPolicyFairSharePolicyShareDistribution;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SchedulingPolicyFairSharePolicy {
    private @Nullable Integer computeReservation;
    private @Nullable Integer shareDecaySeconds;
    private @Nullable List shareDistributions;

    private SchedulingPolicyFairSharePolicy() {}
    public Optional computeReservation() {
        return Optional.ofNullable(this.computeReservation);
    }
    public Optional shareDecaySeconds() {
        return Optional.ofNullable(this.shareDecaySeconds);
    }
    public List shareDistributions() {
        return this.shareDistributions == null ? List.of() : this.shareDistributions;
    }

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

    public static Builder builder(SchedulingPolicyFairSharePolicy defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer computeReservation;
        private @Nullable Integer shareDecaySeconds;
        private @Nullable List shareDistributions;
        public Builder() {}
        public Builder(SchedulingPolicyFairSharePolicy defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.computeReservation = defaults.computeReservation;
    	      this.shareDecaySeconds = defaults.shareDecaySeconds;
    	      this.shareDistributions = defaults.shareDistributions;
        }

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

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

            this.shareDecaySeconds = shareDecaySeconds;
            return this;
        }
        @CustomType.Setter
        public Builder shareDistributions(@Nullable List shareDistributions) {

            this.shareDistributions = shareDistributions;
            return this;
        }
        public Builder shareDistributions(SchedulingPolicyFairSharePolicyShareDistribution... shareDistributions) {
            return shareDistributions(List.of(shareDistributions));
        }
        public SchedulingPolicyFairSharePolicy build() {
            final var _resultValue = new SchedulingPolicyFairSharePolicy();
            _resultValue.computeReservation = computeReservation;
            _resultValue.shareDecaySeconds = shareDecaySeconds;
            _resultValue.shareDistributions = shareDistributions;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy