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

com.pulumi.kubernetes.networking.v1beta1.inputs.HTTPIngressRuleValuePatchArgs 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.networking.v1beta1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.networking.v1beta1.inputs.HTTPIngressPathPatchArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final HTTPIngressRuleValuePatchArgs Empty = new HTTPIngressRuleValuePatchArgs();

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

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

    private HTTPIngressRuleValuePatchArgs() {}

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

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

    public static final class Builder {
        private HTTPIngressRuleValuePatchArgs $;

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

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

        /**
         * @param paths A collection of paths that map requests to backends.
         * 
         * @return builder
         * 
         */
        public Builder paths(@Nullable 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(HTTPIngressPathPatchArgs... paths) {
            return paths(List.of(paths));
        }

        public HTTPIngressRuleValuePatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy