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

com.pulumi.kubernetes.extensions.v1beta1.outputs.HTTPIngressRuleValue 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.kubernetes.extensions.v1beta1.outputs.HTTPIngressPath;
import java.util.List;
import java.util.Objects;

@CustomType
public final class HTTPIngressRuleValue {
    /**
     * @return A collection of paths that map requests to backends.
     * 
     */
    private List paths;

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

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

    public static Builder builder(HTTPIngressRuleValue defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List paths;
        public Builder() {}
        public Builder(HTTPIngressRuleValue defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.paths = defaults.paths;
        }

        @CustomType.Setter
        public Builder paths(List paths) {
            if (paths == null) {
              throw new MissingRequiredPropertyException("HTTPIngressRuleValue", "paths");
            }
            this.paths = paths;
            return this;
        }
        public Builder paths(HTTPIngressPath... paths) {
            return paths(List.of(paths));
        }
        public HTTPIngressRuleValue build() {
            final var _resultValue = new HTTPIngressRuleValue();
            _resultValue.paths = paths;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy