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

com.pulumi.aws.auditmanager.FrameworkShareArgs 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.66.3
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.auditmanager;

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


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

    public static final FrameworkShareArgs Empty = new FrameworkShareArgs();

    /**
     * Comment from the sender about the share request.
     * 
     */
    @Import(name="comment")
    private @Nullable Output comment;

    /**
     * @return Comment from the sender about the share request.
     * 
     */
    public Optional> comment() {
        return Optional.ofNullable(this.comment);
    }

    /**
     * Amazon Web Services account of the recipient.
     * 
     */
    @Import(name="destinationAccount", required=true)
    private Output destinationAccount;

    /**
     * @return Amazon Web Services account of the recipient.
     * 
     */
    public Output destinationAccount() {
        return this.destinationAccount;
    }

    /**
     * Amazon Web Services region of the recipient.
     * 
     */
    @Import(name="destinationRegion", required=true)
    private Output destinationRegion;

    /**
     * @return Amazon Web Services region of the recipient.
     * 
     */
    public Output destinationRegion() {
        return this.destinationRegion;
    }

    /**
     * Unique identifier for the shared custom framework.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="frameworkId", required=true)
    private Output frameworkId;

    /**
     * @return Unique identifier for the shared custom framework.
     * 
     * The following arguments are optional:
     * 
     */
    public Output frameworkId() {
        return this.frameworkId;
    }

    private FrameworkShareArgs() {}

    private FrameworkShareArgs(FrameworkShareArgs $) {
        this.comment = $.comment;
        this.destinationAccount = $.destinationAccount;
        this.destinationRegion = $.destinationRegion;
        this.frameworkId = $.frameworkId;
    }

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

    public static final class Builder {
        private FrameworkShareArgs $;

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

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

        /**
         * @param comment Comment from the sender about the share request.
         * 
         * @return builder
         * 
         */
        public Builder comment(@Nullable Output comment) {
            $.comment = comment;
            return this;
        }

        /**
         * @param comment Comment from the sender about the share request.
         * 
         * @return builder
         * 
         */
        public Builder comment(String comment) {
            return comment(Output.of(comment));
        }

        /**
         * @param destinationAccount Amazon Web Services account of the recipient.
         * 
         * @return builder
         * 
         */
        public Builder destinationAccount(Output destinationAccount) {
            $.destinationAccount = destinationAccount;
            return this;
        }

        /**
         * @param destinationAccount Amazon Web Services account of the recipient.
         * 
         * @return builder
         * 
         */
        public Builder destinationAccount(String destinationAccount) {
            return destinationAccount(Output.of(destinationAccount));
        }

        /**
         * @param destinationRegion Amazon Web Services region of the recipient.
         * 
         * @return builder
         * 
         */
        public Builder destinationRegion(Output destinationRegion) {
            $.destinationRegion = destinationRegion;
            return this;
        }

        /**
         * @param destinationRegion Amazon Web Services region of the recipient.
         * 
         * @return builder
         * 
         */
        public Builder destinationRegion(String destinationRegion) {
            return destinationRegion(Output.of(destinationRegion));
        }

        /**
         * @param frameworkId Unique identifier for the shared custom framework.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder frameworkId(Output frameworkId) {
            $.frameworkId = frameworkId;
            return this;
        }

        /**
         * @param frameworkId Unique identifier for the shared custom framework.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder frameworkId(String frameworkId) {
            return frameworkId(Output.of(frameworkId));
        }

        public FrameworkShareArgs build() {
            if ($.destinationAccount == null) {
                throw new MissingRequiredPropertyException("FrameworkShareArgs", "destinationAccount");
            }
            if ($.destinationRegion == null) {
                throw new MissingRequiredPropertyException("FrameworkShareArgs", "destinationRegion");
            }
            if ($.frameworkId == null) {
                throw new MissingRequiredPropertyException("FrameworkShareArgs", "frameworkId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy