com.pulumi.linode.outputs.GetLkeClustersResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode 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.linode.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.linode.outputs.GetLkeClustersFilter;
import com.pulumi.linode.outputs.GetLkeClustersLkeCluster;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetLkeClustersResult {
private @Nullable List filters;
/**
* @return The LKE Cluster's ID.
*
*/
private String id;
private @Nullable List lkeClusters;
private @Nullable String order;
private @Nullable String orderBy;
private GetLkeClustersResult() {}
public List filters() {
return this.filters == null ? List.of() : this.filters;
}
/**
* @return The LKE Cluster's ID.
*
*/
public String id() {
return this.id;
}
public List lkeClusters() {
return this.lkeClusters == null ? List.of() : this.lkeClusters;
}
public Optional order() {
return Optional.ofNullable(this.order);
}
public Optional orderBy() {
return Optional.ofNullable(this.orderBy);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetLkeClustersResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List filters;
private String id;
private @Nullable List lkeClusters;
private @Nullable String order;
private @Nullable String orderBy;
public Builder() {}
public Builder(GetLkeClustersResult defaults) {
Objects.requireNonNull(defaults);
this.filters = defaults.filters;
this.id = defaults.id;
this.lkeClusters = defaults.lkeClusters;
this.order = defaults.order;
this.orderBy = defaults.orderBy;
}
@CustomType.Setter
public Builder filters(@Nullable List filters) {
this.filters = filters;
return this;
}
public Builder filters(GetLkeClustersFilter... filters) {
return filters(List.of(filters));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetLkeClustersResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder lkeClusters(@Nullable List lkeClusters) {
this.lkeClusters = lkeClusters;
return this;
}
public Builder lkeClusters(GetLkeClustersLkeCluster... lkeClusters) {
return lkeClusters(List.of(lkeClusters));
}
@CustomType.Setter
public Builder order(@Nullable String order) {
this.order = order;
return this;
}
@CustomType.Setter
public Builder orderBy(@Nullable String orderBy) {
this.orderBy = orderBy;
return this;
}
public GetLkeClustersResult build() {
final var _resultValue = new GetLkeClustersResult();
_resultValue.filters = filters;
_resultValue.id = id;
_resultValue.lkeClusters = lkeClusters;
_resultValue.order = order;
_resultValue.orderBy = orderBy;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy