com.pulumi.alicloud.mongodb.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.mongodb.outputs;
import com.pulumi.alicloud.mongodb.outputs.GetAccountsAccount;
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 GetAccountsResult {
private @Nullable String accountName;
private List accounts;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String instanceId;
private @Nullable String outputFile;
private GetAccountsResult() {}
public Optional accountName() {
return Optional.ofNullable(this.accountName);
}
public List accounts() {
return this.accounts;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String instanceId() {
return this.instanceId;
}
public Optional outputFile() {
return Optional.ofNullable(this.outputFile);
}
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 @Nullable String accountName;
private List accounts;
private String id;
private String instanceId;
private @Nullable String outputFile;
public Builder() {}
public Builder(GetAccountsResult defaults) {
Objects.requireNonNull(defaults);
this.accountName = defaults.accountName;
this.accounts = defaults.accounts;
this.id = defaults.id;
this.instanceId = defaults.instanceId;
this.outputFile = defaults.outputFile;
}
@CustomType.Setter
public Builder accountName(@Nullable String accountName) {
this.accountName = accountName;
return this;
}
@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 id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAccountsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder instanceId(String instanceId) {
if (instanceId == null) {
throw new MissingRequiredPropertyException("GetAccountsResult", "instanceId");
}
this.instanceId = instanceId;
return this;
}
@CustomType.Setter
public Builder outputFile(@Nullable String outputFile) {
this.outputFile = outputFile;
return this;
}
public GetAccountsResult build() {
final var _resultValue = new GetAccountsResult();
_resultValue.accountName = accountName;
_resultValue.accounts = accounts;
_resultValue.id = id;
_resultValue.instanceId = instanceId;
_resultValue.outputFile = outputFile;
return _resultValue;
}
}
}