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

com.pulumi.azurenative.app.inputs.SessionIngressArgs 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.app.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;


/**
 * Session pool ingress configuration.
 * 
 */
public final class SessionIngressArgs extends com.pulumi.resources.ResourceArgs {

    public static final SessionIngressArgs Empty = new SessionIngressArgs();

    /**
     * Target port in containers for traffic from ingress
     * 
     */
    @Import(name="targetPort")
    private @Nullable Output targetPort;

    /**
     * @return Target port in containers for traffic from ingress
     * 
     */
    public Optional> targetPort() {
        return Optional.ofNullable(this.targetPort);
    }

    private SessionIngressArgs() {}

    private SessionIngressArgs(SessionIngressArgs $) {
        this.targetPort = $.targetPort;
    }

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

    public static final class Builder {
        private SessionIngressArgs $;

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

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

        /**
         * @param targetPort Target port in containers for traffic from ingress
         * 
         * @return builder
         * 
         */
        public Builder targetPort(@Nullable Output targetPort) {
            $.targetPort = targetPort;
            return this;
        }

        /**
         * @param targetPort Target port in containers for traffic from ingress
         * 
         * @return builder
         * 
         */
        public Builder targetPort(Integer targetPort) {
            return targetPort(Output.of(targetPort));
        }

        public SessionIngressArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy