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

com.pulumi.azurenative.migrate.inputs.PortMappingArgs 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.migrate.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * WebApplication port mapping.
 * 
 */
public final class PortMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final PortMappingArgs Empty = new PortMappingArgs();

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

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

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

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

    private PortMappingArgs() {}

    private PortMappingArgs(PortMappingArgs $) {
        this.externalPort = $.externalPort;
        this.internalPort = $.internalPort;
    }

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

    public static final class Builder {
        private PortMappingArgs $;

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

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

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

        /**
         * @param externalPort Gets or sets the External Port.
         * 
         * @return builder
         * 
         */
        public Builder externalPort(Integer externalPort) {
            return externalPort(Output.of(externalPort));
        }

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

        /**
         * @param internalPort Gets or sets the Internal Port.
         * 
         * @return builder
         * 
         */
        public Builder internalPort(Integer internalPort) {
            return internalPort(Output.of(internalPort));
        }

        public PortMappingArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy