Class GroupVersionForDiscovery
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class GroupVersionForDiscovery extends java.lang.Object implements com.marcnuri.yakc.model.Model
GroupVersion contains the "group/version" and "version" string of a version. It is made a struct to keep extensibility.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GroupVersionForDiscovery.Builder
-
Constructor Summary
Constructors Constructor Description GroupVersionForDiscovery()
GroupVersionForDiscovery(@NonNull java.lang.String groupVersion, @NonNull java.lang.String version)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupVersionForDiscovery.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getGroupVersion()
groupVersion specifies the API group and version in the form "group/version"@NonNull java.lang.String
getVersion()
version specifies the version in the form of "version".int
hashCode()
void
setGroupVersion(@NonNull java.lang.String groupVersion)
groupVersion specifies the API group and version in the form "group/version"void
setVersion(@NonNull java.lang.String version)
version specifies the version in the form of "version".GroupVersionForDiscovery.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static GroupVersionForDiscovery.Builder builder()
-
toBuilder
public GroupVersionForDiscovery.Builder toBuilder()
-
getGroupVersion
@NonNull public @NonNull java.lang.String getGroupVersion()
groupVersion specifies the API group and version in the form "group/version"
-
getVersion
@NonNull public @NonNull java.lang.String getVersion()
version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.
-
setGroupVersion
public void setGroupVersion(@NonNull @NonNull java.lang.String groupVersion)
groupVersion specifies the API group and version in the form "group/version"
-
setVersion
public void setVersion(@NonNull @NonNull java.lang.String version)
version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-