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

com.pulumi.azurenative.migrate.inputs.BindingArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.migrate.inputs;

import com.pulumi.azurenative.migrate.inputs.CertArgs;
import com.pulumi.azurenative.migrate.inputs.PortMappingArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Binding for a web application.
 * 
 */
public final class BindingArgs extends com.pulumi.resources.ResourceArgs {

    public static final BindingArgs Empty = new BindingArgs();

    /**
     * WebApplication certificate.
     * 
     */
    @Import(name="cert")
    private @Nullable Output cert;

    /**
     * @return WebApplication certificate.
     * 
     */
    public Optional> cert() {
        return Optional.ofNullable(this.cert);
    }

    /**
     * Gets or sets the binding host name.
     * 
     */
    @Import(name="hostName")
    private @Nullable Output hostName;

    /**
     * @return Gets or sets the binding host name.
     * 
     */
    public Optional> hostName() {
        return Optional.ofNullable(this.hostName);
    }

    /**
     * Gets or sets the IP Address.
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return Gets or sets the IP Address.
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * Gets or sets the application port.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return Gets or sets the application port.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * WebApplication port mapping.
     * 
     */
    @Import(name="portMapping")
    private @Nullable Output portMapping;

    /**
     * @return WebApplication port mapping.
     * 
     */
    public Optional> portMapping() {
        return Optional.ofNullable(this.portMapping);
    }

    /**
     * Gets or sets the protocol.
     * 
     */
    @Import(name="protocol")
    private @Nullable Output protocol;

    /**
     * @return Gets or sets the protocol.
     * 
     */
    public Optional> protocol() {
        return Optional.ofNullable(this.protocol);
    }

    private BindingArgs() {}

    private BindingArgs(BindingArgs $) {
        this.cert = $.cert;
        this.hostName = $.hostName;
        this.ipAddress = $.ipAddress;
        this.port = $.port;
        this.portMapping = $.portMapping;
        this.protocol = $.protocol;
    }

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

    public static final class Builder {
        private BindingArgs $;

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

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

        /**
         * @param cert WebApplication certificate.
         * 
         * @return builder
         * 
         */
        public Builder cert(@Nullable Output cert) {
            $.cert = cert;
            return this;
        }

        /**
         * @param cert WebApplication certificate.
         * 
         * @return builder
         * 
         */
        public Builder cert(CertArgs cert) {
            return cert(Output.of(cert));
        }

        /**
         * @param hostName Gets or sets the binding host name.
         * 
         * @return builder
         * 
         */
        public Builder hostName(@Nullable Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName Gets or sets the binding host name.
         * 
         * @return builder
         * 
         */
        public Builder hostName(String hostName) {
            return hostName(Output.of(hostName));
        }

        /**
         * @param ipAddress Gets or sets the IP Address.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress Gets or sets the IP Address.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        /**
         * @param port Gets or sets the application port.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port Gets or sets the application port.
         * 
         * @return builder
         * 
         */
        public Builder port(String port) {
            return port(Output.of(port));
        }

        /**
         * @param portMapping WebApplication port mapping.
         * 
         * @return builder
         * 
         */
        public Builder portMapping(@Nullable Output portMapping) {
            $.portMapping = portMapping;
            return this;
        }

        /**
         * @param portMapping WebApplication port mapping.
         * 
         * @return builder
         * 
         */
        public Builder portMapping(PortMappingArgs portMapping) {
            return portMapping(Output.of(portMapping));
        }

        /**
         * @param protocol Gets or sets the protocol.
         * 
         * @return builder
         * 
         */
        public Builder protocol(@Nullable Output protocol) {
            $.protocol = protocol;
            return this;
        }

        /**
         * @param protocol Gets or sets the protocol.
         * 
         * @return builder
         * 
         */
        public Builder protocol(String protocol) {
            return protocol(Output.of(protocol));
        }

        public BindingArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy