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

com.pulumi.aws.organizations.OrganizationalUnitArgs 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.organizations;

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

    public static final OrganizationalUnitArgs Empty = new OrganizationalUnitArgs();

    /**
     * The name for the organizational unit
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name for the organizational unit
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * ID of the parent organizational unit, which may be the root
     * 
     */
    @Import(name="parentId", required=true)
    private Output parentId;

    /**
     * @return ID of the parent organizational unit, which may be the root
     * 
     */
    public Output parentId() {
        return this.parentId;
    }

    /**
     * Key-value map of resource tags. .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 Key-value map of resource tags. .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);
    }

    private OrganizationalUnitArgs() {}

    private OrganizationalUnitArgs(OrganizationalUnitArgs $) {
        this.name = $.name;
        this.parentId = $.parentId;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private OrganizationalUnitArgs $;

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

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

        /**
         * @param name The name for the organizational unit
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name for the organizational unit
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parentId ID of the parent organizational unit, which may be the root
         * 
         * @return builder
         * 
         */
        public Builder parentId(Output parentId) {
            $.parentId = parentId;
            return this;
        }

        /**
         * @param parentId ID of the parent organizational unit, which may be the root
         * 
         * @return builder
         * 
         */
        public Builder parentId(String parentId) {
            return parentId(Output.of(parentId));
        }

        /**
         * @param tags Key-value map of resource tags. .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 Key-value map of resource tags. .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));
        }

        public OrganizationalUnitArgs build() {
            if ($.parentId == null) {
                throw new MissingRequiredPropertyException("OrganizationalUnitArgs", "parentId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy