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

com.pulumi.aws.batch.outputs.GetSchedulingPolicyFairSharePolicyShareDistribution 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.batch.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class GetSchedulingPolicyFairSharePolicyShareDistribution {
    /**
     * @return Fair share identifier or fair share identifier prefix. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html).
     * 
     */
    private String shareIdentifier;
    /**
     * @return Weight factor for the fair share identifier. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html).
     * 
     */
    private Double weightFactor;

    private GetSchedulingPolicyFairSharePolicyShareDistribution() {}
    /**
     * @return Fair share identifier or fair share identifier prefix. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html).
     * 
     */
    public String shareIdentifier() {
        return this.shareIdentifier;
    }
    /**
     * @return Weight factor for the fair share identifier. For more information, see [ShareAttributes](https://docs.aws.amazon.com/batch/latest/APIReference/API_ShareAttributes.html).
     * 
     */
    public Double weightFactor() {
        return this.weightFactor;
    }

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

    public static Builder builder(GetSchedulingPolicyFairSharePolicyShareDistribution defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String shareIdentifier;
        private Double weightFactor;
        public Builder() {}
        public Builder(GetSchedulingPolicyFairSharePolicyShareDistribution defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.shareIdentifier = defaults.shareIdentifier;
    	      this.weightFactor = defaults.weightFactor;
        }

        @CustomType.Setter
        public Builder shareIdentifier(String shareIdentifier) {
            if (shareIdentifier == null) {
              throw new MissingRequiredPropertyException("GetSchedulingPolicyFairSharePolicyShareDistribution", "shareIdentifier");
            }
            this.shareIdentifier = shareIdentifier;
            return this;
        }
        @CustomType.Setter
        public Builder weightFactor(Double weightFactor) {
            if (weightFactor == null) {
              throw new MissingRequiredPropertyException("GetSchedulingPolicyFairSharePolicyShareDistribution", "weightFactor");
            }
            this.weightFactor = weightFactor;
            return this;
        }
        public GetSchedulingPolicyFairSharePolicyShareDistribution build() {
            final var _resultValue = new GetSchedulingPolicyFairSharePolicyShareDistribution();
            _resultValue.shareIdentifier = shareIdentifier;
            _resultValue.weightFactor = weightFactor;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy