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

com.pulumi.kubernetes.extensions.v1beta1.inputs.HTTPIngressRuleValueArgs 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.extensions.v1beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.extensions.v1beta1.inputs.HTTPIngressPathArgs;
import java.util.List;
import java.util.Objects;


/**
 * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.
 * 
 */
public final class HTTPIngressRuleValueArgs extends com.pulumi.resources.ResourceArgs {

    public static final HTTPIngressRuleValueArgs Empty = new HTTPIngressRuleValueArgs();

    /**
     * A collection of paths that map requests to backends.
     * 
     */
    @Import(name="paths", required=true)
    private Output> paths;

    /**
     * @return A collection of paths that map requests to backends.
     * 
     */
    public Output> paths() {
        return this.paths;
    }

    private HTTPIngressRuleValueArgs() {}

    private HTTPIngressRuleValueArgs(HTTPIngressRuleValueArgs $) {
        this.paths = $.paths;
    }

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

    public static final class Builder {
        private HTTPIngressRuleValueArgs $;

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

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

        /**
         * @param paths A collection of paths that map requests to backends.
         * 
         * @return builder
         * 
         */
        public Builder paths(Output> paths) {
            $.paths = paths;
            return this;
        }

        /**
         * @param paths A collection of paths that map requests to backends.
         * 
         * @return builder
         * 
         */
        public Builder paths(List paths) {
            return paths(Output.of(paths));
        }

        /**
         * @param paths A collection of paths that map requests to backends.
         * 
         * @return builder
         * 
         */
        public Builder paths(HTTPIngressPathArgs... paths) {
            return paths(List.of(paths));
        }

        public HTTPIngressRuleValueArgs build() {
            if ($.paths == null) {
                throw new MissingRequiredPropertyException("HTTPIngressRuleValueArgs", "paths");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy