// *** 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.directconnect.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 ConnectionAssociationState extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionAssociationState Empty = new ConnectionAssociationState();

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

    /**
     * @return The ID of the connection.
     * 
     */
    public Optional<Output<String>> connectionId() {
        return Optional.ofNullable(this.connectionId);
    }

    /**
     * The ID of the LAG with which to associate the connection.
     * 
     */
    @Import(name="lagId")
    private @Nullable Output<String> lagId;

    /**
     * @return The ID of the LAG with which to associate the connection.
     * 
     */
    public Optional<Output<String>> lagId() {
        return Optional.ofNullable(this.lagId);
    }

    private ConnectionAssociationState() {}

    private ConnectionAssociationState(ConnectionAssociationState $) {
        this.connectionId = $.connectionId;
        this.lagId = $.lagId;
    }

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

    public static final class Builder {
        private ConnectionAssociationState $;

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

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

        /**
         * @param connectionId The ID of the connection.
         * 
         * @return builder
         * 
         */
        public Builder connectionId(@Nullable Output<String> connectionId) {
            $.connectionId = connectionId;
            return this;
        }

        /**
         * @param connectionId The ID of the connection.
         * 
         * @return builder
         * 
         */
        public Builder connectionId(String connectionId) {
            return connectionId(Output.of(connectionId));
        }

        /**
         * @param lagId The ID of the LAG with which to associate the connection.
         * 
         * @return builder
         * 
         */
        public Builder lagId(@Nullable Output<String> lagId) {
            $.lagId = lagId;
            return this;
        }

        /**
         * @param lagId The ID of the LAG with which to associate the connection.
         * 
         * @return builder
         * 
         */
        public Builder lagId(String lagId) {
            return lagId(Output.of(lagId));
        }

        public ConnectionAssociationState build() {
            return $;
        }
    }

}
