com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetKubeResult 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.GetKubeCustomization;
import com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetKubeCustomizationApiserver;
import com.ovhcloud.pulumi.ovh.CloudProject.outputs.GetKubeCustomizationKubeProxy;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetKubeResult {
/**
* @return True if control-plane is up-to-date.
*
*/
private Boolean controlPlaneIsUpToDate;
/**
* @return Kubernetes API server customization
*
*/
private List customizationApiservers;
/**
* @return Kubernetes kube-proxy customization
*
*/
private @Nullable GetKubeCustomizationKubeProxy customizationKubeProxy;
/**
* @return **Deprecated** (Optional) Use `customization_apiserver` and `customization_kube_proxy` instead. Kubernetes cluster customization
*
* @deprecated
* Use customization_apiserver instead
*
*/
@Deprecated /* Use customization_apiserver instead */
private List customizations;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return True if all nodes and control-plane are up-to-date.
*
*/
private Boolean isUpToDate;
/**
* @return See Argument Reference above.
*
*/
private String kubeId;
/**
* @return Selected mode for kube-proxy.
*
*/
private @Nullable String kubeProxyMode;
/**
* @return Openstack private network (or vRack) ID to use for load balancers.
*
*/
private String loadBalancersSubnetId;
/**
* @return The name of the managed kubernetes cluster.
*
*/
private @Nullable String name;
/**
* @return Kubernetes versions available for upgrade.
*
*/
private List nextUpgradeVersions;
/**
* @return Openstack private network (or vRack) ID to use for nodes.
*
*/
private String nodesSubnetId;
/**
* @return Cluster nodes URL.
*
*/
private String nodesUrl;
/**
* @return OpenStack private network (or vrack) ID to use.
*
*/
private String privateNetworkId;
/**
* @return The OVHcloud public cloud region ID of the managed kubernetes cluster.
*
*/
private @Nullable String region;
/**
* @return See Argument Reference above.
*
*/
private String serviceName;
/**
* @return Cluster status. Should be normally set to 'READY'.
*
*/
private String status;
/**
* @return Cluster update policy. Choose between [ALWAYS_UPDATE,MINIMAL_DOWNTIME,NEVER_UPDATE]'.
*
*/
private @Nullable String updatePolicy;
/**
* @return Management URL of your cluster.
*
*/
private String url;
/**
* @return Kubernetes version of the managed kubernetes cluster.
*
*/
private @Nullable String version;
private GetKubeResult() {}
/**
* @return True if control-plane is up-to-date.
*
*/
public Boolean controlPlaneIsUpToDate() {
return this.controlPlaneIsUpToDate;
}
/**
* @return Kubernetes API server customization
*
*/
public List customizationApiservers() {
return this.customizationApiservers;
}
/**
* @return Kubernetes kube-proxy customization
*
*/
public Optional customizationKubeProxy() {
return Optional.ofNullable(this.customizationKubeProxy);
}
/**
* @return **Deprecated** (Optional) Use `customization_apiserver` and `customization_kube_proxy` instead. Kubernetes cluster customization
*
* @deprecated
* Use customization_apiserver instead
*
*/
@Deprecated /* Use customization_apiserver instead */
public List customizations() {
return this.customizations;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return True if all nodes and control-plane are up-to-date.
*
*/
public Boolean isUpToDate() {
return this.isUpToDate;
}
/**
* @return See Argument Reference above.
*
*/
public String kubeId() {
return this.kubeId;
}
/**
* @return Selected mode for kube-proxy.
*
*/
public Optional kubeProxyMode() {
return Optional.ofNullable(this.kubeProxyMode);
}
/**
* @return Openstack private network (or vRack) ID to use for load balancers.
*
*/
public String loadBalancersSubnetId() {
return this.loadBalancersSubnetId;
}
/**
* @return The name of the managed kubernetes cluster.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Kubernetes versions available for upgrade.
*
*/
public List nextUpgradeVersions() {
return this.nextUpgradeVersions;
}
/**
* @return Openstack private network (or vRack) ID to use for nodes.
*
*/
public String nodesSubnetId() {
return this.nodesSubnetId;
}
/**
* @return Cluster nodes URL.
*
*/
public String nodesUrl() {
return this.nodesUrl;
}
/**
* @return OpenStack private network (or vrack) ID to use.
*
*/
public String privateNetworkId() {
return this.privateNetworkId;
}
/**
* @return The OVHcloud public cloud region ID of the managed kubernetes cluster.
*
*/
public Optional region() {
return Optional.ofNullable(this.region);
}
/**
* @return See Argument Reference above.
*
*/
public String serviceName() {
return this.serviceName;
}
/**
* @return Cluster status. Should be normally set to 'READY'.
*
*/
public String status() {
return this.status;
}
/**
* @return Cluster update policy. Choose between [ALWAYS_UPDATE,MINIMAL_DOWNTIME,NEVER_UPDATE]'.
*
*/
public Optional updatePolicy() {
return Optional.ofNullable(this.updatePolicy);
}
/**
* @return Management URL of your cluster.
*
*/
public String url() {
return this.url;
}
/**
* @return Kubernetes version of the managed kubernetes cluster.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKubeResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Boolean controlPlaneIsUpToDate;
private List customizationApiservers;
private @Nullable GetKubeCustomizationKubeProxy customizationKubeProxy;
private List customizations;
private String id;
private Boolean isUpToDate;
private String kubeId;
private @Nullable String kubeProxyMode;
private String loadBalancersSubnetId;
private @Nullable String name;
private List nextUpgradeVersions;
private String nodesSubnetId;
private String nodesUrl;
private String privateNetworkId;
private @Nullable String region;
private String serviceName;
private String status;
private @Nullable String updatePolicy;
private String url;
private @Nullable String version;
public Builder() {}
public Builder(GetKubeResult defaults) {
Objects.requireNonNull(defaults);
this.controlPlaneIsUpToDate = defaults.controlPlaneIsUpToDate;
this.customizationApiservers = defaults.customizationApiservers;
this.customizationKubeProxy = defaults.customizationKubeProxy;
this.customizations = defaults.customizations;
this.id = defaults.id;
this.isUpToDate = defaults.isUpToDate;
this.kubeId = defaults.kubeId;
this.kubeProxyMode = defaults.kubeProxyMode;
this.loadBalancersSubnetId = defaults.loadBalancersSubnetId;
this.name = defaults.name;
this.nextUpgradeVersions = defaults.nextUpgradeVersions;
this.nodesSubnetId = defaults.nodesSubnetId;
this.nodesUrl = defaults.nodesUrl;
this.privateNetworkId = defaults.privateNetworkId;
this.region = defaults.region;
this.serviceName = defaults.serviceName;
this.status = defaults.status;
this.updatePolicy = defaults.updatePolicy;
this.url = defaults.url;
this.version = defaults.version;
}
@CustomType.Setter
public Builder controlPlaneIsUpToDate(Boolean controlPlaneIsUpToDate) {
if (controlPlaneIsUpToDate == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "controlPlaneIsUpToDate");
}
this.controlPlaneIsUpToDate = controlPlaneIsUpToDate;
return this;
}
@CustomType.Setter
public Builder customizationApiservers(List customizationApiservers) {
if (customizationApiservers == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "customizationApiservers");
}
this.customizationApiservers = customizationApiservers;
return this;
}
public Builder customizationApiservers(GetKubeCustomizationApiserver... customizationApiservers) {
return customizationApiservers(List.of(customizationApiservers));
}
@CustomType.Setter
public Builder customizationKubeProxy(@Nullable GetKubeCustomizationKubeProxy customizationKubeProxy) {
this.customizationKubeProxy = customizationKubeProxy;
return this;
}
@CustomType.Setter
public Builder customizations(List customizations) {
if (customizations == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "customizations");
}
this.customizations = customizations;
return this;
}
public Builder customizations(GetKubeCustomization... customizations) {
return customizations(List.of(customizations));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder isUpToDate(Boolean isUpToDate) {
if (isUpToDate == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "isUpToDate");
}
this.isUpToDate = isUpToDate;
return this;
}
@CustomType.Setter
public Builder kubeId(String kubeId) {
if (kubeId == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "kubeId");
}
this.kubeId = kubeId;
return this;
}
@CustomType.Setter
public Builder kubeProxyMode(@Nullable String kubeProxyMode) {
this.kubeProxyMode = kubeProxyMode;
return this;
}
@CustomType.Setter
public Builder loadBalancersSubnetId(String loadBalancersSubnetId) {
if (loadBalancersSubnetId == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "loadBalancersSubnetId");
}
this.loadBalancersSubnetId = loadBalancersSubnetId;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder nextUpgradeVersions(List nextUpgradeVersions) {
if (nextUpgradeVersions == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "nextUpgradeVersions");
}
this.nextUpgradeVersions = nextUpgradeVersions;
return this;
}
public Builder nextUpgradeVersions(String... nextUpgradeVersions) {
return nextUpgradeVersions(List.of(nextUpgradeVersions));
}
@CustomType.Setter
public Builder nodesSubnetId(String nodesSubnetId) {
if (nodesSubnetId == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "nodesSubnetId");
}
this.nodesSubnetId = nodesSubnetId;
return this;
}
@CustomType.Setter
public Builder nodesUrl(String nodesUrl) {
if (nodesUrl == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "nodesUrl");
}
this.nodesUrl = nodesUrl;
return this;
}
@CustomType.Setter
public Builder privateNetworkId(String privateNetworkId) {
if (privateNetworkId == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "privateNetworkId");
}
this.privateNetworkId = privateNetworkId;
return this;
}
@CustomType.Setter
public Builder region(@Nullable String region) {
this.region = region;
return this;
}
@CustomType.Setter
public Builder serviceName(String serviceName) {
if (serviceName == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "serviceName");
}
this.serviceName = serviceName;
return this;
}
@CustomType.Setter
public Builder status(String status) {
if (status == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "status");
}
this.status = status;
return this;
}
@CustomType.Setter
public Builder updatePolicy(@Nullable String updatePolicy) {
this.updatePolicy = updatePolicy;
return this;
}
@CustomType.Setter
public Builder url(String url) {
if (url == null) {
throw new MissingRequiredPropertyException("GetKubeResult", "url");
}
this.url = url;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public GetKubeResult build() {
final var _resultValue = new GetKubeResult();
_resultValue.controlPlaneIsUpToDate = controlPlaneIsUpToDate;
_resultValue.customizationApiservers = customizationApiservers;
_resultValue.customizationKubeProxy = customizationKubeProxy;
_resultValue.customizations = customizations;
_resultValue.id = id;
_resultValue.isUpToDate = isUpToDate;
_resultValue.kubeId = kubeId;
_resultValue.kubeProxyMode = kubeProxyMode;
_resultValue.loadBalancersSubnetId = loadBalancersSubnetId;
_resultValue.name = name;
_resultValue.nextUpgradeVersions = nextUpgradeVersions;
_resultValue.nodesSubnetId = nodesSubnetId;
_resultValue.nodesUrl = nodesUrl;
_resultValue.privateNetworkId = privateNetworkId;
_resultValue.region = region;
_resultValue.serviceName = serviceName;
_resultValue.status = status;
_resultValue.updatePolicy = updatePolicy;
_resultValue.url = url;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy