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

com.pulumi.aws.ram.inputs.ResourceShareAccepterState 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.ram.inputs;

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


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

    public static final ResourceShareAccepterState Empty = new ResourceShareAccepterState();

    /**
     * The ARN of the resource share invitation.
     * 
     */
    @Import(name="invitationArn")
    private @Nullable Output invitationArn;

    /**
     * @return The ARN of the resource share invitation.
     * 
     */
    public Optional> invitationArn() {
        return Optional.ofNullable(this.invitationArn);
    }

    /**
     * The account ID of the receiver account which accepts the invitation.
     * 
     */
    @Import(name="receiverAccountId")
    private @Nullable Output receiverAccountId;

    /**
     * @return The account ID of the receiver account which accepts the invitation.
     * 
     */
    public Optional> receiverAccountId() {
        return Optional.ofNullable(this.receiverAccountId);
    }

    /**
     * A list of the resource ARNs shared via the resource share.
     * 
     */
    @Import(name="resources")
    private @Nullable Output> resources;

    /**
     * @return A list of the resource ARNs shared via the resource share.
     * 
     */
    public Optional>> resources() {
        return Optional.ofNullable(this.resources);
    }

    /**
     * The account ID of the sender account which submits the invitation.
     * 
     */
    @Import(name="senderAccountId")
    private @Nullable Output senderAccountId;

    /**
     * @return The account ID of the sender account which submits the invitation.
     * 
     */
    public Optional> senderAccountId() {
        return Optional.ofNullable(this.senderAccountId);
    }

    /**
     * The ARN of the resource share.
     * 
     */
    @Import(name="shareArn")
    private @Nullable Output shareArn;

    /**
     * @return The ARN of the resource share.
     * 
     */
    public Optional> shareArn() {
        return Optional.ofNullable(this.shareArn);
    }

    /**
     * The ID of the resource share as displayed in the console.
     * 
     */
    @Import(name="shareId")
    private @Nullable Output shareId;

    /**
     * @return The ID of the resource share as displayed in the console.
     * 
     */
    public Optional> shareId() {
        return Optional.ofNullable(this.shareId);
    }

    /**
     * The name of the resource share.
     * 
     */
    @Import(name="shareName")
    private @Nullable Output shareName;

    /**
     * @return The name of the resource share.
     * 
     */
    public Optional> shareName() {
        return Optional.ofNullable(this.shareName);
    }

    /**
     * The status of the resource share (ACTIVE, PENDING, FAILED, DELETING, DELETED).
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of the resource share (ACTIVE, PENDING, FAILED, DELETING, DELETED).
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private ResourceShareAccepterState() {}

    private ResourceShareAccepterState(ResourceShareAccepterState $) {
        this.invitationArn = $.invitationArn;
        this.receiverAccountId = $.receiverAccountId;
        this.resources = $.resources;
        this.senderAccountId = $.senderAccountId;
        this.shareArn = $.shareArn;
        this.shareId = $.shareId;
        this.shareName = $.shareName;
        this.status = $.status;
    }

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

    public static final class Builder {
        private ResourceShareAccepterState $;

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

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

        /**
         * @param invitationArn The ARN of the resource share invitation.
         * 
         * @return builder
         * 
         */
        public Builder invitationArn(@Nullable Output invitationArn) {
            $.invitationArn = invitationArn;
            return this;
        }

        /**
         * @param invitationArn The ARN of the resource share invitation.
         * 
         * @return builder
         * 
         */
        public Builder invitationArn(String invitationArn) {
            return invitationArn(Output.of(invitationArn));
        }

        /**
         * @param receiverAccountId The account ID of the receiver account which accepts the invitation.
         * 
         * @return builder
         * 
         */
        public Builder receiverAccountId(@Nullable Output receiverAccountId) {
            $.receiverAccountId = receiverAccountId;
            return this;
        }

        /**
         * @param receiverAccountId The account ID of the receiver account which accepts the invitation.
         * 
         * @return builder
         * 
         */
        public Builder receiverAccountId(String receiverAccountId) {
            return receiverAccountId(Output.of(receiverAccountId));
        }

        /**
         * @param resources A list of the resource ARNs shared via the resource share.
         * 
         * @return builder
         * 
         */
        public Builder resources(@Nullable Output> resources) {
            $.resources = resources;
            return this;
        }

        /**
         * @param resources A list of the resource ARNs shared via the resource share.
         * 
         * @return builder
         * 
         */
        public Builder resources(List resources) {
            return resources(Output.of(resources));
        }

        /**
         * @param resources A list of the resource ARNs shared via the resource share.
         * 
         * @return builder
         * 
         */
        public Builder resources(String... resources) {
            return resources(List.of(resources));
        }

        /**
         * @param senderAccountId The account ID of the sender account which submits the invitation.
         * 
         * @return builder
         * 
         */
        public Builder senderAccountId(@Nullable Output senderAccountId) {
            $.senderAccountId = senderAccountId;
            return this;
        }

        /**
         * @param senderAccountId The account ID of the sender account which submits the invitation.
         * 
         * @return builder
         * 
         */
        public Builder senderAccountId(String senderAccountId) {
            return senderAccountId(Output.of(senderAccountId));
        }

        /**
         * @param shareArn The ARN of the resource share.
         * 
         * @return builder
         * 
         */
        public Builder shareArn(@Nullable Output shareArn) {
            $.shareArn = shareArn;
            return this;
        }

        /**
         * @param shareArn The ARN of the resource share.
         * 
         * @return builder
         * 
         */
        public Builder shareArn(String shareArn) {
            return shareArn(Output.of(shareArn));
        }

        /**
         * @param shareId The ID of the resource share as displayed in the console.
         * 
         * @return builder
         * 
         */
        public Builder shareId(@Nullable Output shareId) {
            $.shareId = shareId;
            return this;
        }

        /**
         * @param shareId The ID of the resource share as displayed in the console.
         * 
         * @return builder
         * 
         */
        public Builder shareId(String shareId) {
            return shareId(Output.of(shareId));
        }

        /**
         * @param shareName The name of the resource share.
         * 
         * @return builder
         * 
         */
        public Builder shareName(@Nullable Output shareName) {
            $.shareName = shareName;
            return this;
        }

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

        /**
         * @param status The status of the resource share (ACTIVE, PENDING, FAILED, DELETING, DELETED).
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of the resource share (ACTIVE, PENDING, FAILED, DELETING, DELETED).
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public ResourceShareAccepterState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy