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

com.pulumi.azurenative.servicefabricmesh.inputs.HttpHostConfigArgs Maven / Gradle / Ivy

// *** 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.azurenative.servicefabricmesh.inputs;

import com.pulumi.azurenative.servicefabricmesh.inputs.HttpRouteConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


/**
 * Describes the hostname properties for http routing.
 * 
 */
public final class HttpHostConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final HttpHostConfigArgs Empty = new HttpHostConfigArgs();

    /**
     * http hostname config name.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return http hostname config name.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more specific before routes that can handle general cases.
     * 
     */
    @Import(name="routes", required=true)
    private Output> routes;

    /**
     * @return Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more specific before routes that can handle general cases.
     * 
     */
    public Output> routes() {
        return this.routes;
    }

    private HttpHostConfigArgs() {}

    private HttpHostConfigArgs(HttpHostConfigArgs $) {
        this.name = $.name;
        this.routes = $.routes;
    }

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

    public static final class Builder {
        private HttpHostConfigArgs $;

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

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

        /**
         * @param name http hostname config name.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name http hostname config name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param routes Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more specific before routes that can handle general cases.
         * 
         * @return builder
         * 
         */
        public Builder routes(Output> routes) {
            $.routes = routes;
            return this;
        }

        /**
         * @param routes Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more specific before routes that can handle general cases.
         * 
         * @return builder
         * 
         */
        public Builder routes(List routes) {
            return routes(Output.of(routes));
        }

        /**
         * @param routes Route information to use for routing. Routes are processed in the order they are specified. Specify routes that are more specific before routes that can handle general cases.
         * 
         * @return builder
         * 
         */
        public Builder routes(HttpRouteConfigArgs... routes) {
            return routes(List.of(routes));
        }

        public HttpHostConfigArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("HttpHostConfigArgs", "name");
            }
            if ($.routes == null) {
                throw new MissingRequiredPropertyException("HttpHostConfigArgs", "routes");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy