com.pulumi.alicloud.resourcemanager.outputs.GetAccountsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.resourcemanager.outputs;
import com.pulumi.alicloud.resourcemanager.outputs.GetAccountsAccount;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAccountsResult {
/**
* @return A list of accounts. Each element contains the following attributes:
*
*/
private List accounts;
private @Nullable Boolean enableDetails;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return A list of account IDs.
*
*/
private List ids;
private @Nullable String outputFile;
/**
* @return The status of the member account.
*
*/
private @Nullable String status;
private GetAccountsResult() {}
/**
* @return A list of accounts. Each element contains the following attributes:
*
*/
public List accounts() {
return this.accounts;
}
public Optional enableDetails() {
return Optional.ofNullable(this.enableDetails);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return A list of account IDs.
*
*/
public List ids() {
return this.ids;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
/**
* @return The status of the member account.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAccountsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List accounts;
private @Nullable Boolean enableDetails;
private String id;
private List ids;
private @Nullable String outputFile;
private @Nullable String status;
public Builder() {}
public Builder(GetAccountsResult defaults) {
Objects.requireNonNull(defaults);
this.accounts = defaults.accounts;
this.enableDetails = defaults.enableDetails;
this.id = defaults.id;
this.ids = defaults.ids;
this.outputFile = defaults.outputFile;
this.status = defaults.status;
}
@CustomType.Setter
public Builder accounts(List accounts) {
if (accounts == null) {
throw new MissingRequiredPropertyException("GetAccountsResult", "accounts");
}
this.accounts = accounts;
return this;
}
public Builder accounts(GetAccountsAccount... accounts) {
return accounts(List.of(accounts));
}
@CustomType.Setter
public Builder enableDetails(@Nullable Boolean enableDetails) {
this.enableDetails = enableDetails;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAccountsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder ids(List ids) {
if (ids == null) {
throw new MissingRequiredPropertyException("GetAccountsResult", "ids");
}
this.ids = ids;
return this;
}
public Builder ids(String... ids) {
return ids(List.of(ids));
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public GetAccountsResult build() {
final var _resultValue = new GetAccountsResult();
_resultValue.accounts = accounts;
_resultValue.enableDetails = enableDetails;
_resultValue.id = id;
_resultValue.ids = ids;
_resultValue.outputFile = outputFile;
_resultValue.status = status;
return _resultValue;
}
}
}