com.pulumi.cloudflare.outputs.GetAccountsResult Maven / Gradle / Ivy
// *** 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.cloudflare.outputs;
import com.pulumi.cloudflare.outputs.GetAccountsAccount;
import com.pulumi.core.annotations.CustomType;
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 List accounts;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The account name to target for the resource.
*
*/
private @Nullable String name;
private GetAccountsResult() {}
public List accounts() {
return this.accounts;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The account name to target for the resource.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
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 String id;
private @Nullable String name;
public Builder() {}
public Builder(GetAccountsResult defaults) {
Objects.requireNonNull(defaults);
this.accounts = defaults.accounts;
this.id = defaults.id;
this.name = defaults.name;
}
@CustomType.Setter
public Builder accounts(List accounts) {
this.accounts = Objects.requireNonNull(accounts);
return this;
}
public Builder accounts(GetAccountsAccount... accounts) {
return accounts(List.of(accounts));
}
@CustomType.Setter
public Builder id(String id) {
this.id = Objects.requireNonNull(id);
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
public GetAccountsResult build() {
final var o = new GetAccountsResult();
o.accounts = accounts;
o.id = id;
o.name = name;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy