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

com.pulumi.kubernetes.policy.v1beta1.inputs.HostPortRangePatchArgs 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 java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * 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 HostPortRangePatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final HostPortRangePatchArgs Empty = new HostPortRangePatchArgs();

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

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

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

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

    private HostPortRangePatchArgs() {}

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

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

    public static final class Builder {
        private HostPortRangePatchArgs $;

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

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

        /**
         * @param max max is the end of the range, inclusive.
         * 
         * @return builder
         * 
         */
        public Builder max(@Nullable 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(@Nullable 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 HostPortRangePatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy