com.pulumi.aws.organizations.outputs.GetOrganizationRoot 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.outputs;
import com.pulumi.aws.organizations.outputs.GetOrganizationRootPolicyType;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetOrganizationRoot {
/**
* @return ARN of the root
*
*/
private String arn;
/**
* @return Identifier of the root
*
*/
private String id;
/**
* @return The name of the policy type
*
*/
private String name;
/**
* @return List of policy types enabled for this root. All elements have these attributes:
*
*/
private List policyTypes;
private GetOrganizationRoot() {}
/**
* @return ARN of the root
*
*/
public String arn() {
return this.arn;
}
/**
* @return Identifier of the root
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the policy type
*
*/
public String name() {
return this.name;
}
/**
* @return List of policy types enabled for this root. All elements have these attributes:
*
*/
public List policyTypes() {
return this.policyTypes;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetOrganizationRoot defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String id;
private String name;
private List policyTypes;
public Builder() {}
public Builder(GetOrganizationRoot defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.id = defaults.id;
this.name = defaults.name;
this.policyTypes = defaults.policyTypes;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetOrganizationRoot", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetOrganizationRoot", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetOrganizationRoot", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder policyTypes(List policyTypes) {
if (policyTypes == null) {
throw new MissingRequiredPropertyException("GetOrganizationRoot", "policyTypes");
}
this.policyTypes = policyTypes;
return this;
}
public Builder policyTypes(GetOrganizationRootPolicyType... policyTypes) {
return policyTypes(List.of(policyTypes));
}
public GetOrganizationRoot build() {
final var _resultValue = new GetOrganizationRoot();
_resultValue.arn = arn;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.policyTypes = policyTypes;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy