// *** 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


public final class GetOrganizationalUnitsArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetOrganizationalUnitsArgs Empty = new GetOrganizationalUnitsArgs();

    /**
     * Parent ID of the organizational unit.
     * 
     */
    @Import(name="parentId", required=true)
    private Output<String> parentId;

    /**
     * @return Parent ID of the organizational unit.
     * 
     */
    public Output<String> parentId() {
        return this.parentId;
    }

    private GetOrganizationalUnitsArgs() {}

    private GetOrganizationalUnitsArgs(GetOrganizationalUnitsArgs $) {
        this.parentId = $.parentId;
    }

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

    public static final class Builder {
        private GetOrganizationalUnitsArgs $;

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

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

        /**
         * @param parentId Parent ID of the organizational unit.
         * 
         * @return builder
         * 
         */
        public Builder parentId(Output<String> parentId) {
            $.parentId = parentId;
            return this;
        }

        /**
         * @param parentId Parent ID of the organizational unit.
         * 
         * @return builder
         * 
         */
        public Builder parentId(String parentId) {
            return parentId(Output.of(parentId));
        }

        public GetOrganizationalUnitsArgs build() {
            $.parentId = Objects.requireNonNull($.parentId, "expected parameter 'parentId' to be non-null");
            return $;
        }
    }

}
