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

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

There is a newer version: 2.78.0
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.azurenative.servicefabricmesh.inputs;

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


/**
 * Describes the http configuration for external connectivity for this network.
 * 
 */
public final class HttpConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final HttpConfigArgs Empty = new HttpConfigArgs();

    /**
     * description for routing.
     * 
     */
    @Import(name="hosts", required=true)
    private Output> hosts;

    /**
     * @return description for routing.
     * 
     */
    public Output> hosts() {
        return this.hosts;
    }

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

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

    /**
     * Specifies the port at which the service endpoint below needs to be exposed.
     * 
     */
    @Import(name="port", required=true)
    private Output port;

    /**
     * @return Specifies the port at which the service endpoint below needs to be exposed.
     * 
     */
    public Output port() {
        return this.port;
    }

    private HttpConfigArgs() {}

    private HttpConfigArgs(HttpConfigArgs $) {
        this.hosts = $.hosts;
        this.name = $.name;
        this.port = $.port;
    }

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

    public static final class Builder {
        private HttpConfigArgs $;

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

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

        /**
         * @param hosts description for routing.
         * 
         * @return builder
         * 
         */
        public Builder hosts(Output> hosts) {
            $.hosts = hosts;
            return this;
        }

        /**
         * @param hosts description for routing.
         * 
         * @return builder
         * 
         */
        public Builder hosts(List hosts) {
            return hosts(Output.of(hosts));
        }

        /**
         * @param hosts description for routing.
         * 
         * @return builder
         * 
         */
        public Builder hosts(HttpHostConfigArgs... hosts) {
            return hosts(List.of(hosts));
        }

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

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

        /**
         * @param port Specifies the port at which the service endpoint below needs to be exposed.
         * 
         * @return builder
         * 
         */
        public Builder port(Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port Specifies the port at which the service endpoint below needs to be exposed.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        public HttpConfigArgs build() {
            if ($.hosts == null) {
                throw new MissingRequiredPropertyException("HttpConfigArgs", "hosts");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("HttpConfigArgs", "name");
            }
            if ($.port == null) {
                throw new MissingRequiredPropertyException("HttpConfigArgs", "port");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy