// *** 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.elasticloadbalancing.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();

    /**
     * The name of the ELB.
     * 
     */
    @Import(name="elb")
    private @Nullable Output<String> elb;

    /**
     * @return The name of the ELB.
     * 
     */
    public Optional<Output<String>> elb() {
        return Optional.ofNullable(this.elb);
    }

    /**
     * Instance ID to place in the ELB pool.
     * 
     */
    @Import(name="instance")
    private @Nullable Output<String> instance;

    /**
     * @return Instance ID to place in the ELB pool.
     * 
     */
    public Optional<Output<String>> instance() {
        return Optional.ofNullable(this.instance);
    }

    private AttachmentState() {}

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

    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 elb The name of the ELB.
         * 
         * @return builder
         * 
         */
        public Builder elb(@Nullable Output<String> elb) {
            $.elb = elb;
            return this;
        }

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

        /**
         * @param instance Instance ID to place in the ELB pool.
         * 
         * @return builder
         * 
         */
        public Builder instance(@Nullable Output<String> instance) {
            $.instance = instance;
            return this;
        }

        /**
         * @param instance Instance ID to place in the ELB pool.
         * 
         * @return builder
         * 
         */
        public Builder instance(String instance) {
            return instance(Output.of(instance));
        }

        public AttachmentState build() {
            return $;
        }
    }

}
