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

com.pulumi.aws.globalaccelerator.inputs.CrossAccountAttachmentState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.globalaccelerator.inputs;

import com.pulumi.aws.globalaccelerator.inputs.CrossAccountAttachmentResourceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CrossAccountAttachmentState Empty = new CrossAccountAttachmentState();

    /**
     * ARN of the Cross Account Attachment.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return ARN of the Cross Account Attachment.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * Creation Time when the Cross Account Attachment.
     * 
     */
    @Import(name="createdTime")
    private @Nullable Output createdTime;

    /**
     * @return Creation Time when the Cross Account Attachment.
     * 
     */
    public Optional> createdTime() {
        return Optional.ofNullable(this.createdTime);
    }

    /**
     * Last modified time of the Cross Account Attachment.
     * 
     */
    @Import(name="lastModifiedTime")
    private @Nullable Output lastModifiedTime;

    /**
     * @return Last modified time of the Cross Account Attachment.
     * 
     */
    public Optional> lastModifiedTime() {
        return Optional.ofNullable(this.lastModifiedTime);
    }

    /**
     * Name of the Cross Account Attachment.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the Cross Account Attachment.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * List of AWS account IDs that are allowed to associate resources with the accelerator.
     * 
     */
    @Import(name="principals")
    private @Nullable Output> principals;

    /**
     * @return List of AWS account IDs that are allowed to associate resources with the accelerator.
     * 
     */
    public Optional>> principals() {
        return Optional.ofNullable(this.principals);
    }

    /**
     * List of resources to be associated with the accelerator.
     * 
     */
    @Import(name="resources")
    private @Nullable Output> resources;

    /**
     * @return List of resources to be associated with the accelerator.
     * 
     */
    public Optional>> resources() {
        return Optional.ofNullable(this.resources);
    }

    /**
     * A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    @Import(name="tagsAll")
    private @Nullable Output> tagsAll;

    /**
     * @return A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
     * 
     * @deprecated
     * Please use `tags` instead.
     * 
     */
    @Deprecated /* Please use `tags` instead. */
    public Optional>> tagsAll() {
        return Optional.ofNullable(this.tagsAll);
    }

    private CrossAccountAttachmentState() {}

    private CrossAccountAttachmentState(CrossAccountAttachmentState $) {
        this.arn = $.arn;
        this.createdTime = $.createdTime;
        this.lastModifiedTime = $.lastModifiedTime;
        this.name = $.name;
        this.principals = $.principals;
        this.resources = $.resources;
        this.tags = $.tags;
        this.tagsAll = $.tagsAll;
    }

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

    public static final class Builder {
        private CrossAccountAttachmentState $;

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

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

        /**
         * @param arn ARN of the Cross Account Attachment.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn ARN of the Cross Account Attachment.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param createdTime Creation Time when the Cross Account Attachment.
         * 
         * @return builder
         * 
         */
        public Builder createdTime(@Nullable Output createdTime) {
            $.createdTime = createdTime;
            return this;
        }

        /**
         * @param createdTime Creation Time when the Cross Account Attachment.
         * 
         * @return builder
         * 
         */
        public Builder createdTime(String createdTime) {
            return createdTime(Output.of(createdTime));
        }

        /**
         * @param lastModifiedTime Last modified time of the Cross Account Attachment.
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedTime(@Nullable Output lastModifiedTime) {
            $.lastModifiedTime = lastModifiedTime;
            return this;
        }

        /**
         * @param lastModifiedTime Last modified time of the Cross Account Attachment.
         * 
         * @return builder
         * 
         */
        public Builder lastModifiedTime(String lastModifiedTime) {
            return lastModifiedTime(Output.of(lastModifiedTime));
        }

        /**
         * @param name Name of the Cross Account Attachment.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the Cross Account Attachment.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param principals List of AWS account IDs that are allowed to associate resources with the accelerator.
         * 
         * @return builder
         * 
         */
        public Builder principals(@Nullable Output> principals) {
            $.principals = principals;
            return this;
        }

        /**
         * @param principals List of AWS account IDs that are allowed to associate resources with the accelerator.
         * 
         * @return builder
         * 
         */
        public Builder principals(List principals) {
            return principals(Output.of(principals));
        }

        /**
         * @param principals List of AWS account IDs that are allowed to associate resources with the accelerator.
         * 
         * @return builder
         * 
         */
        public Builder principals(String... principals) {
            return principals(List.of(principals));
        }

        /**
         * @param resources List of resources to be associated with the accelerator.
         * 
         * @return builder
         * 
         */
        public Builder resources(@Nullable Output> resources) {
            $.resources = resources;
            return this;
        }

        /**
         * @param resources List of resources to be associated with the accelerator.
         * 
         * @return builder
         * 
         */
        public Builder resources(List resources) {
            return resources(Output.of(resources));
        }

        /**
         * @param resources List of resources to be associated with the accelerator.
         * 
         * @return builder
         * 
         */
        public Builder resources(CrossAccountAttachmentResourceArgs... resources) {
            return resources(List.of(resources));
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(@Nullable Output> tagsAll) {
            $.tagsAll = tagsAll;
            return this;
        }

        /**
         * @param tagsAll A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
         * 
         * @return builder
         * 
         * @deprecated
         * Please use `tags` instead.
         * 
         */
        @Deprecated /* Please use `tags` instead. */
        public Builder tagsAll(Map tagsAll) {
            return tagsAll(Output.of(tagsAll));
        }

        public CrossAccountAttachmentState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy