com.pulumi.aws.organizations.inputs.GetOrganizationalUnitPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class GetOrganizationalUnitPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetOrganizationalUnitPlainArgs Empty = new GetOrganizationalUnitPlainArgs();
/**
* Name of the organizational unit
*
*/
@Import(name="name", required=true)
private String name;
/**
* @return Name of the organizational unit
*
*/
public String name() {
return this.name;
}
/**
* Parent ID of the organizational unit.
*
*/
@Import(name="parentId", required=true)
private String parentId;
/**
* @return Parent ID of the organizational unit.
*
*/
public String parentId() {
return this.parentId;
}
private GetOrganizationalUnitPlainArgs() {}
private GetOrganizationalUnitPlainArgs(GetOrganizationalUnitPlainArgs $) {
this.name = $.name;
this.parentId = $.parentId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetOrganizationalUnitPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetOrganizationalUnitPlainArgs $;
public Builder() {
$ = new GetOrganizationalUnitPlainArgs();
}
public Builder(GetOrganizationalUnitPlainArgs defaults) {
$ = new GetOrganizationalUnitPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param name Name of the organizational unit
*
* @return builder
*
*/
public Builder name(String name) {
$.name = name;
return this;
}
/**
* @param parentId Parent ID of the organizational unit.
*
* @return builder
*
*/
public Builder parentId(String parentId) {
$.parentId = parentId;
return this;
}
public GetOrganizationalUnitPlainArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("GetOrganizationalUnitPlainArgs", "name");
}
if ($.parentId == null) {
throw new MissingRequiredPropertyException("GetOrganizationalUnitPlainArgs", "parentId");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy