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

com.pulumi.aws.elb.LoadBalancerCookieStickinessPolicyArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.elb;

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LoadBalancerCookieStickinessPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final LoadBalancerCookieStickinessPolicyArgs Empty = new LoadBalancerCookieStickinessPolicyArgs();

    /**
     * The time period after which
     * the session cookie should be considered stale, expressed in seconds.
     * 
     */
    @Import(name="cookieExpirationPeriod")
    private @Nullable Output cookieExpirationPeriod;

    /**
     * @return The time period after which
     * the session cookie should be considered stale, expressed in seconds.
     * 
     */
    public Optional> cookieExpirationPeriod() {
        return Optional.ofNullable(this.cookieExpirationPeriod);
    }

    /**
     * The load balancer port to which the policy
     * should be applied. This must be an active listener on the load
     * balancer.
     * 
     */
    @Import(name="lbPort", required=true)
    private Output lbPort;

    /**
     * @return The load balancer port to which the policy
     * should be applied. This must be an active listener on the load
     * balancer.
     * 
     */
    public Output lbPort() {
        return this.lbPort;
    }

    /**
     * The load balancer to which the policy
     * should be attached.
     * 
     */
    @Import(name="loadBalancer", required=true)
    private Output loadBalancer;

    /**
     * @return The load balancer to which the policy
     * should be attached.
     * 
     */
    public Output loadBalancer() {
        return this.loadBalancer;
    }

    /**
     * The name of the stickiness policy.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the stickiness policy.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    private LoadBalancerCookieStickinessPolicyArgs() {}

    private LoadBalancerCookieStickinessPolicyArgs(LoadBalancerCookieStickinessPolicyArgs $) {
        this.cookieExpirationPeriod = $.cookieExpirationPeriod;
        this.lbPort = $.lbPort;
        this.loadBalancer = $.loadBalancer;
        this.name = $.name;
    }

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

    public static final class Builder {
        private LoadBalancerCookieStickinessPolicyArgs $;

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

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

        /**
         * @param cookieExpirationPeriod The time period after which
         * the session cookie should be considered stale, expressed in seconds.
         * 
         * @return builder
         * 
         */
        public Builder cookieExpirationPeriod(@Nullable Output cookieExpirationPeriod) {
            $.cookieExpirationPeriod = cookieExpirationPeriod;
            return this;
        }

        /**
         * @param cookieExpirationPeriod The time period after which
         * the session cookie should be considered stale, expressed in seconds.
         * 
         * @return builder
         * 
         */
        public Builder cookieExpirationPeriod(Integer cookieExpirationPeriod) {
            return cookieExpirationPeriod(Output.of(cookieExpirationPeriod));
        }

        /**
         * @param lbPort The load balancer port to which the policy
         * should be applied. This must be an active listener on the load
         * balancer.
         * 
         * @return builder
         * 
         */
        public Builder lbPort(Output lbPort) {
            $.lbPort = lbPort;
            return this;
        }

        /**
         * @param lbPort The load balancer port to which the policy
         * should be applied. This must be an active listener on the load
         * balancer.
         * 
         * @return builder
         * 
         */
        public Builder lbPort(Integer lbPort) {
            return lbPort(Output.of(lbPort));
        }

        /**
         * @param loadBalancer The load balancer to which the policy
         * should be attached.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancer(Output loadBalancer) {
            $.loadBalancer = loadBalancer;
            return this;
        }

        /**
         * @param loadBalancer The load balancer to which the policy
         * should be attached.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancer(String loadBalancer) {
            return loadBalancer(Output.of(loadBalancer));
        }

        /**
         * @param name The name of the stickiness policy.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the stickiness policy.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public LoadBalancerCookieStickinessPolicyArgs build() {
            if ($.lbPort == null) {
                throw new MissingRequiredPropertyException("LoadBalancerCookieStickinessPolicyArgs", "lbPort");
            }
            if ($.loadBalancer == null) {
                throw new MissingRequiredPropertyException("LoadBalancerCookieStickinessPolicyArgs", "loadBalancer");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy