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

com.pulumi.aws.appconfig.ExtensionAssociationArgs 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.appconfig;

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 ExtensionAssociationArgs extends com.pulumi.resources.ResourceArgs {

    public static final ExtensionAssociationArgs Empty = new ExtensionAssociationArgs();

    /**
     * The ARN of the extension defined in the association.
     * 
     */
    @Import(name="extensionArn", required=true)
    private Output extensionArn;

    /**
     * @return The ARN of the extension defined in the association.
     * 
     */
    public Output extensionArn() {
        return this.extensionArn;
    }

    /**
     * The parameter names and values defined for the association.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return The parameter names and values defined for the association.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * The ARN of the application, configuration profile, or environment to associate with the extension.
     * 
     */
    @Import(name="resourceArn", required=true)
    private Output resourceArn;

    /**
     * @return The ARN of the application, configuration profile, or environment to associate with the extension.
     * 
     */
    public Output resourceArn() {
        return this.resourceArn;
    }

    private ExtensionAssociationArgs() {}

    private ExtensionAssociationArgs(ExtensionAssociationArgs $) {
        this.extensionArn = $.extensionArn;
        this.parameters = $.parameters;
        this.resourceArn = $.resourceArn;
    }

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

    public static final class Builder {
        private ExtensionAssociationArgs $;

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

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

        /**
         * @param extensionArn The ARN of the extension defined in the association.
         * 
         * @return builder
         * 
         */
        public Builder extensionArn(Output extensionArn) {
            $.extensionArn = extensionArn;
            return this;
        }

        /**
         * @param extensionArn The ARN of the extension defined in the association.
         * 
         * @return builder
         * 
         */
        public Builder extensionArn(String extensionArn) {
            return extensionArn(Output.of(extensionArn));
        }

        /**
         * @param parameters The parameter names and values defined for the association.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters The parameter names and values defined for the association.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param resourceArn The ARN of the application, configuration profile, or environment to associate with the extension.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(Output resourceArn) {
            $.resourceArn = resourceArn;
            return this;
        }

        /**
         * @param resourceArn The ARN of the application, configuration profile, or environment to associate with the extension.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(String resourceArn) {
            return resourceArn(Output.of(resourceArn));
        }

        public ExtensionAssociationArgs build() {
            if ($.extensionArn == null) {
                throw new MissingRequiredPropertyException("ExtensionAssociationArgs", "extensionArn");
            }
            if ($.resourceArn == null) {
                throw new MissingRequiredPropertyException("ExtensionAssociationArgs", "resourceArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy