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

com.pulumi.kubernetes.policy.v1beta1.inputs.HostPortRangeArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.policy.v1beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;


/**
 * HostPortRange defines a range of host ports that will be enabled by a policy for pods to use.  It requires both the start and end to be defined.
 * 
 */
public final class HostPortRangeArgs extends com.pulumi.resources.ResourceArgs {

    public static final HostPortRangeArgs Empty = new HostPortRangeArgs();

    /**
     * max is the end of the range, inclusive.
     * 
     */
    @Import(name="max", required=true)
    private Output max;

    /**
     * @return max is the end of the range, inclusive.
     * 
     */
    public Output max() {
        return this.max;
    }

    /**
     * min is the start of the range, inclusive.
     * 
     */
    @Import(name="min", required=true)
    private Output min;

    /**
     * @return min is the start of the range, inclusive.
     * 
     */
    public Output min() {
        return this.min;
    }

    private HostPortRangeArgs() {}

    private HostPortRangeArgs(HostPortRangeArgs $) {
        this.max = $.max;
        this.min = $.min;
    }

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

    public static final class Builder {
        private HostPortRangeArgs $;

        public Builder() {
            $ = new HostPortRangeArgs();
        }

        public Builder(HostPortRangeArgs defaults) {
            $ = new HostPortRangeArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param max max is the end of the range, inclusive.
         * 
         * @return builder
         * 
         */
        public Builder max(Output max) {
            $.max = max;
            return this;
        }

        /**
         * @param max max is the end of the range, inclusive.
         * 
         * @return builder
         * 
         */
        public Builder max(Integer max) {
            return max(Output.of(max));
        }

        /**
         * @param min min is the start of the range, inclusive.
         * 
         * @return builder
         * 
         */
        public Builder min(Output min) {
            $.min = min;
            return this;
        }

        /**
         * @param min min is the start of the range, inclusive.
         * 
         * @return builder
         * 
         */
        public Builder min(Integer min) {
            return min(Output.of(min));
        }

        public HostPortRangeArgs build() {
            if ($.max == null) {
                throw new MissingRequiredPropertyException("HostPortRangeArgs", "max");
            }
            if ($.min == null) {
                throw new MissingRequiredPropertyException("HostPortRangeArgs", "min");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy