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

com.pulumi.aws.detective.MemberArgs 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.72.0
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.detective;

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


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

    public static final MemberArgs Empty = new MemberArgs();

    /**
     * AWS account ID for the account.
     * 
     */
    @Import(name="accountId", required=true)
    private Output accountId;

    /**
     * @return AWS account ID for the account.
     * 
     */
    public Output accountId() {
        return this.accountId;
    }

    /**
     * If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.
     * 
     */
    @Import(name="disableEmailNotification")
    private @Nullable Output disableEmailNotification;

    /**
     * @return If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.
     * 
     */
    public Optional> disableEmailNotification() {
        return Optional.ofNullable(this.disableEmailNotification);
    }

    /**
     * Email address for the account.
     * 
     */
    @Import(name="emailAddress", required=true)
    private Output emailAddress;

    /**
     * @return Email address for the account.
     * 
     */
    public Output emailAddress() {
        return this.emailAddress;
    }

    /**
     * ARN of the behavior graph to invite the member accounts to contribute their data to.
     * 
     */
    @Import(name="graphArn", required=true)
    private Output graphArn;

    /**
     * @return ARN of the behavior graph to invite the member accounts to contribute their data to.
     * 
     */
    public Output graphArn() {
        return this.graphArn;
    }

    /**
     * A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
     * 
     */
    @Import(name="message")
    private @Nullable Output message;

    /**
     * @return A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
     * 
     */
    public Optional> message() {
        return Optional.ofNullable(this.message);
    }

    private MemberArgs() {}

    private MemberArgs(MemberArgs $) {
        this.accountId = $.accountId;
        this.disableEmailNotification = $.disableEmailNotification;
        this.emailAddress = $.emailAddress;
        this.graphArn = $.graphArn;
        this.message = $.message;
    }

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

    public static final class Builder {
        private MemberArgs $;

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

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

        /**
         * @param accountId AWS account ID for the account.
         * 
         * @return builder
         * 
         */
        public Builder accountId(Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId AWS account ID for the account.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param disableEmailNotification If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.
         * 
         * @return builder
         * 
         */
        public Builder disableEmailNotification(@Nullable Output disableEmailNotification) {
            $.disableEmailNotification = disableEmailNotification;
            return this;
        }

        /**
         * @param disableEmailNotification If set to true, then the root user of the invited account will _not_ receive an email notification. This notification is in addition to an alert that the root user receives in AWS Personal Health Dashboard. By default, this is set to `false`.
         * 
         * @return builder
         * 
         */
        public Builder disableEmailNotification(Boolean disableEmailNotification) {
            return disableEmailNotification(Output.of(disableEmailNotification));
        }

        /**
         * @param emailAddress Email address for the account.
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(Output emailAddress) {
            $.emailAddress = emailAddress;
            return this;
        }

        /**
         * @param emailAddress Email address for the account.
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(String emailAddress) {
            return emailAddress(Output.of(emailAddress));
        }

        /**
         * @param graphArn ARN of the behavior graph to invite the member accounts to contribute their data to.
         * 
         * @return builder
         * 
         */
        public Builder graphArn(Output graphArn) {
            $.graphArn = graphArn;
            return this;
        }

        /**
         * @param graphArn ARN of the behavior graph to invite the member accounts to contribute their data to.
         * 
         * @return builder
         * 
         */
        public Builder graphArn(String graphArn) {
            return graphArn(Output.of(graphArn));
        }

        /**
         * @param message A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
         * 
         * @return builder
         * 
         */
        public Builder message(@Nullable Output message) {
            $.message = message;
            return this;
        }

        /**
         * @param message A custom message to include in the invitation. Amazon Detective adds this message to the standard content that it sends for an invitation.
         * 
         * @return builder
         * 
         */
        public Builder message(String message) {
            return message(Output.of(message));
        }

        public MemberArgs build() {
            if ($.accountId == null) {
                throw new MissingRequiredPropertyException("MemberArgs", "accountId");
            }
            if ($.emailAddress == null) {
                throw new MissingRequiredPropertyException("MemberArgs", "emailAddress");
            }
            if ($.graphArn == null) {
                throw new MissingRequiredPropertyException("MemberArgs", "graphArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy