com.pulumi.digitalocean.inputs.GetKubernetesVersionsPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of digitalocean Show documentation
Show all versions of digitalocean Show documentation
A Pulumi package for creating and managing DigitalOcean 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.digitalocean.inputs;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetKubernetesVersionsPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetKubernetesVersionsPlainArgs Empty = new GetKubernetesVersionsPlainArgs();
/**
* If provided, the provider will only return versions that match the string prefix. For example, `1.15.` will match all 1.15.x series releases.
*
*/
@Import(name="versionPrefix")
private @Nullable String versionPrefix;
/**
* @return If provided, the provider will only return versions that match the string prefix. For example, `1.15.` will match all 1.15.x series releases.
*
*/
public Optional versionPrefix() {
return Optional.ofNullable(this.versionPrefix);
}
private GetKubernetesVersionsPlainArgs() {}
private GetKubernetesVersionsPlainArgs(GetKubernetesVersionsPlainArgs $) {
this.versionPrefix = $.versionPrefix;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetKubernetesVersionsPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetKubernetesVersionsPlainArgs $;
public Builder() {
$ = new GetKubernetesVersionsPlainArgs();
}
public Builder(GetKubernetesVersionsPlainArgs defaults) {
$ = new GetKubernetesVersionsPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param versionPrefix If provided, the provider will only return versions that match the string prefix. For example, `1.15.` will match all 1.15.x series releases.
*
* @return builder
*
*/
public Builder versionPrefix(@Nullable String versionPrefix) {
$.versionPrefix = versionPrefix;
return this;
}
public GetKubernetesVersionsPlainArgs build() {
return $;
}
}
}