com.pulumi.aws.organizations.outputs.GetDelegatedAdministratorsResult 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.GetDelegatedAdministratorsDelegatedAdministrator;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetDelegatedAdministratorsResult {
/**
* @return The list of delegated administrators in your organization, which have the following attributes:
*
*/
private List delegatedAdministrators;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable String servicePrincipal;
private GetDelegatedAdministratorsResult() {}
/**
* @return The list of delegated administrators in your organization, which have the following attributes:
*
*/
public List delegatedAdministrators() {
return this.delegatedAdministrators;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional servicePrincipal() {
return Optional.ofNullable(this.servicePrincipal);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDelegatedAdministratorsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List delegatedAdministrators;
private String id;
private @Nullable String servicePrincipal;
public Builder() {}
public Builder(GetDelegatedAdministratorsResult defaults) {
Objects.requireNonNull(defaults);
this.delegatedAdministrators = defaults.delegatedAdministrators;
this.id = defaults.id;
this.servicePrincipal = defaults.servicePrincipal;
}
@CustomType.Setter
public Builder delegatedAdministrators(List delegatedAdministrators) {
if (delegatedAdministrators == null) {
throw new MissingRequiredPropertyException("GetDelegatedAdministratorsResult", "delegatedAdministrators");
}
this.delegatedAdministrators = delegatedAdministrators;
return this;
}
public Builder delegatedAdministrators(GetDelegatedAdministratorsDelegatedAdministrator... delegatedAdministrators) {
return delegatedAdministrators(List.of(delegatedAdministrators));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetDelegatedAdministratorsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder servicePrincipal(@Nullable String servicePrincipal) {
this.servicePrincipal = servicePrincipal;
return this;
}
public GetDelegatedAdministratorsResult build() {
final var _resultValue = new GetDelegatedAdministratorsResult();
_resultValue.delegatedAdministrators = delegatedAdministrators;
_resultValue.id = id;
_resultValue.servicePrincipal = servicePrincipal;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy