com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetKubeNodesResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH 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.ovhcloud.pulumi.ovh.CloudProject.outputs;
import com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetKubeNodesNode;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetKubeNodesResult {
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return See Argument Reference above.
*
*/
private String kubeId;
/**
* @return List of all nodes composing the kubernetes cluster
*
*/
private List nodes;
/**
* @return See Argument Reference above.
*
*/
private String serviceName;
private GetKubeNodesResult() {}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return See Argument Reference above.
*
*/
public String kubeId() {
return this.kubeId;
}
/**
* @return List of all nodes composing the kubernetes cluster
*
*/
public List nodes() {
return this.nodes;
}
/**
* @return See Argument Reference above.
*
*/
public String serviceName() {
return this.serviceName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKubeNodesResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private String kubeId;
private List nodes;
private String serviceName;
public Builder() {}
public Builder(GetKubeNodesResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.kubeId = defaults.kubeId;
this.nodes = defaults.nodes;
this.serviceName = defaults.serviceName;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetKubeNodesResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kubeId(String kubeId) {
if (kubeId == null) {
throw new MissingRequiredPropertyException("GetKubeNodesResult", "kubeId");
}
this.kubeId = kubeId;
return this;
}
@CustomType.Setter
public Builder nodes(List nodes) {
if (nodes == null) {
throw new MissingRequiredPropertyException("GetKubeNodesResult", "nodes");
}
this.nodes = nodes;
return this;
}
public Builder nodes(GetKubeNodesNode... nodes) {
return nodes(List.of(nodes));
}
@CustomType.Setter
public Builder serviceName(String serviceName) {
if (serviceName == null) {
throw new MissingRequiredPropertyException("GetKubeNodesResult", "serviceName");
}
this.serviceName = serviceName;
return this;
}
public GetKubeNodesResult build() {
final var _resultValue = new GetKubeNodesResult();
_resultValue.id = id;
_resultValue.kubeId = kubeId;
_resultValue.nodes = nodes;
_resultValue.serviceName = serviceName;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy