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

com.pulumi.aws.batch.outputs.GetSchedulingPolicyResult 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.aws.batch.outputs.GetSchedulingPolicyFairSharePolicy;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetSchedulingPolicyResult {
    private String arn;
    private List fairSharePolicies;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return Name of the scheduling policy.
     * 
     */
    private String name;
    /**
     * @return Key-value map of resource tags
     * 
     */
    private Map tags;

    private GetSchedulingPolicyResult() {}
    public String arn() {
        return this.arn;
    }
    public List fairSharePolicies() {
        return this.fairSharePolicies;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the scheduling policy.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Key-value map of resource tags
     * 
     */
    public Map tags() {
        return this.tags;
    }

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

    public static Builder builder(GetSchedulingPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String arn;
        private List fairSharePolicies;
        private String id;
        private String name;
        private Map tags;
        public Builder() {}
        public Builder(GetSchedulingPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.arn = defaults.arn;
    	      this.fairSharePolicies = defaults.fairSharePolicies;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.tags = defaults.tags;
        }

        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetSchedulingPolicyResult", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder fairSharePolicies(List fairSharePolicies) {
            if (fairSharePolicies == null) {
              throw new MissingRequiredPropertyException("GetSchedulingPolicyResult", "fairSharePolicies");
            }
            this.fairSharePolicies = fairSharePolicies;
            return this;
        }
        public Builder fairSharePolicies(GetSchedulingPolicyFairSharePolicy... fairSharePolicies) {
            return fairSharePolicies(List.of(fairSharePolicies));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSchedulingPolicyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSchedulingPolicyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetSchedulingPolicyResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        public GetSchedulingPolicyResult build() {
            final var _resultValue = new GetSchedulingPolicyResult();
            _resultValue.arn = arn;
            _resultValue.fairSharePolicies = fairSharePolicies;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.tags = tags;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy