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

com.pulumi.aws.autoscaling.inputs.AttachmentState Maven / Gradle / Ivy

// *** 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.autoscaling.inputs;

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;


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

    public static final AttachmentState Empty = new AttachmentState();

    /**
     * Name of ASG to associate with the ELB.
     * 
     */
    @Import(name="autoscalingGroupName")
    private @Nullable Output autoscalingGroupName;

    /**
     * @return Name of ASG to associate with the ELB.
     * 
     */
    public Optional> autoscalingGroupName() {
        return Optional.ofNullable(this.autoscalingGroupName);
    }

    /**
     * Name of the ELB.
     * 
     */
    @Import(name="elb")
    private @Nullable Output elb;

    /**
     * @return Name of the ELB.
     * 
     */
    public Optional> elb() {
        return Optional.ofNullable(this.elb);
    }

    /**
     * ARN of a load balancer target group.
     * 
     */
    @Import(name="lbTargetGroupArn")
    private @Nullable Output lbTargetGroupArn;

    /**
     * @return ARN of a load balancer target group.
     * 
     */
    public Optional> lbTargetGroupArn() {
        return Optional.ofNullable(this.lbTargetGroupArn);
    }

    private AttachmentState() {}

    private AttachmentState(AttachmentState $) {
        this.autoscalingGroupName = $.autoscalingGroupName;
        this.elb = $.elb;
        this.lbTargetGroupArn = $.lbTargetGroupArn;
    }

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

    public static final class Builder {
        private AttachmentState $;

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

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

        /**
         * @param autoscalingGroupName Name of ASG to associate with the ELB.
         * 
         * @return builder
         * 
         */
        public Builder autoscalingGroupName(@Nullable Output autoscalingGroupName) {
            $.autoscalingGroupName = autoscalingGroupName;
            return this;
        }

        /**
         * @param autoscalingGroupName Name of ASG to associate with the ELB.
         * 
         * @return builder
         * 
         */
        public Builder autoscalingGroupName(String autoscalingGroupName) {
            return autoscalingGroupName(Output.of(autoscalingGroupName));
        }

        /**
         * @param elb Name of the ELB.
         * 
         * @return builder
         * 
         */
        public Builder elb(@Nullable Output elb) {
            $.elb = elb;
            return this;
        }

        /**
         * @param elb Name of the ELB.
         * 
         * @return builder
         * 
         */
        public Builder elb(String elb) {
            return elb(Output.of(elb));
        }

        /**
         * @param lbTargetGroupArn ARN of a load balancer target group.
         * 
         * @return builder
         * 
         */
        public Builder lbTargetGroupArn(@Nullable Output lbTargetGroupArn) {
            $.lbTargetGroupArn = lbTargetGroupArn;
            return this;
        }

        /**
         * @param lbTargetGroupArn ARN of a load balancer target group.
         * 
         * @return builder
         * 
         */
        public Builder lbTargetGroupArn(String lbTargetGroupArn) {
            return lbTargetGroupArn(Output.of(lbTargetGroupArn));
        }

        public AttachmentState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy