com.pulumi.vsphere.outputs.GetResourcePoolResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vsphere Show documentation
Show all versions of vsphere Show documentation
A Pulumi package for creating vsphere 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.vsphere.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetResourcePoolResult {
private @Nullable String datacenterId;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private @Nullable String name;
private GetResourcePoolResult() {}
public Optional datacenterId() {
return Optional.ofNullable(this.datacenterId);
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public Optional name() {
return Optional.ofNullable(this.name);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetResourcePoolResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String datacenterId;
private String id;
private @Nullable String name;
public Builder() {}
public Builder(GetResourcePoolResult defaults) {
Objects.requireNonNull(defaults);
this.datacenterId = defaults.datacenterId;
this.id = defaults.id;
this.name = defaults.name;
}
@CustomType.Setter
public Builder datacenterId(@Nullable String datacenterId) {
this.datacenterId = datacenterId;
return this;
}
@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 GetResourcePoolResult build() {
final var o = new GetResourcePoolResult();
o.datacenterId = datacenterId;
o.id = id;
o.name = name;
return o;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy