// *** 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.emr.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;

@CustomType
public final class BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRange {
    /**
     * @return The final port in the range of TCP ports.
     * 
     */
    private Integer maxRange;
    /**
     * @return The first port in the range of TCP ports.
     * 
     */
    private Integer minRange;

    private BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRange() {}
    /**
     * @return The final port in the range of TCP ports.
     * 
     */
    public Integer maxRange() {
        return this.maxRange;
    }
    /**
     * @return The first port in the range of TCP ports.
     * 
     */
    public Integer minRange() {
        return this.minRange;
    }

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

    public static Builder builder(BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRange defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer maxRange;
        private Integer minRange;
        public Builder() {}
        public Builder(BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRange defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.maxRange = defaults.maxRange;
    	      this.minRange = defaults.minRange;
        }

        @CustomType.Setter
        public Builder maxRange(Integer maxRange) {
            this.maxRange = Objects.requireNonNull(maxRange);
            return this;
        }
        @CustomType.Setter
        public Builder minRange(Integer minRange) {
            this.minRange = Objects.requireNonNull(minRange);
            return this;
        }
        public BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRange build() {
            final var o = new BlockPublicAccessConfigurationPermittedPublicSecurityGroupRuleRange();
            o.maxRange = maxRange;
            o.minRange = minRange;
            return o;
        }
    }
}
