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

com.pulumi.aws.ec2.VpcIpamResourceDiscoveryAssociationArgs 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.ec2;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final VpcIpamResourceDiscoveryAssociationArgs Empty = new VpcIpamResourceDiscoveryAssociationArgs();

    /**
     * The ID of the IPAM to associate.
     * 
     */
    @Import(name="ipamId", required=true)
    private Output ipamId;

    /**
     * @return The ID of the IPAM to associate.
     * 
     */
    public Output ipamId() {
        return this.ipamId;
    }

    /**
     * The ID of the Resource Discovery to associate.
     * 
     */
    @Import(name="ipamResourceDiscoveryId", required=true)
    private Output ipamResourceDiscoveryId;

    /**
     * @return The ID of the Resource Discovery to associate.
     * 
     */
    public Output ipamResourceDiscoveryId() {
        return this.ipamResourceDiscoveryId;
    }

    /**
     * A map of tags to add to the IPAM resource discovery association resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to add to the IPAM resource discovery association resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private VpcIpamResourceDiscoveryAssociationArgs() {}

    private VpcIpamResourceDiscoveryAssociationArgs(VpcIpamResourceDiscoveryAssociationArgs $) {
        this.ipamId = $.ipamId;
        this.ipamResourceDiscoveryId = $.ipamResourceDiscoveryId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private VpcIpamResourceDiscoveryAssociationArgs $;

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

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

        /**
         * @param ipamId The ID of the IPAM to associate.
         * 
         * @return builder
         * 
         */
        public Builder ipamId(Output ipamId) {
            $.ipamId = ipamId;
            return this;
        }

        /**
         * @param ipamId The ID of the IPAM to associate.
         * 
         * @return builder
         * 
         */
        public Builder ipamId(String ipamId) {
            return ipamId(Output.of(ipamId));
        }

        /**
         * @param ipamResourceDiscoveryId The ID of the Resource Discovery to associate.
         * 
         * @return builder
         * 
         */
        public Builder ipamResourceDiscoveryId(Output ipamResourceDiscoveryId) {
            $.ipamResourceDiscoveryId = ipamResourceDiscoveryId;
            return this;
        }

        /**
         * @param ipamResourceDiscoveryId The ID of the Resource Discovery to associate.
         * 
         * @return builder
         * 
         */
        public Builder ipamResourceDiscoveryId(String ipamResourceDiscoveryId) {
            return ipamResourceDiscoveryId(Output.of(ipamResourceDiscoveryId));
        }

        /**
         * @param tags A map of tags to add to the IPAM resource discovery association resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to add to the IPAM resource discovery association resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public VpcIpamResourceDiscoveryAssociationArgs build() {
            if ($.ipamId == null) {
                throw new MissingRequiredPropertyException("VpcIpamResourceDiscoveryAssociationArgs", "ipamId");
            }
            if ($.ipamResourceDiscoveryId == null) {
                throw new MissingRequiredPropertyException("VpcIpamResourceDiscoveryAssociationArgs", "ipamResourceDiscoveryId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy