io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
package io.k8s.apimachinery.pkg.apis.meta.v1;
import java.lang.String;
/**
* GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.
*/
public class GroupVersionForDiscovery {
public String groupVersion;
public String version;
/**
* groupVersion specifies the API group and version in the form "group/version"
*/
public GroupVersionForDiscovery groupVersion(String groupVersion) {
this.groupVersion = groupVersion;
return this;
}
/**
* version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.
*/
public GroupVersionForDiscovery version(String version) {
this.version = version;
return this;
}
public static GroupVersionForDiscovery groupVersionForDiscovery() {
return new GroupVersionForDiscovery();
}
}