Class APIResource.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.APIResource.Builder
-
- Enclosing class:
- APIResource
public static class APIResource.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description APIResource.Builder
addToCategories(java.lang.String addToCategories)
APIResource.Builder
addToShortNames(java.lang.String addToShortNames)
APIResource.Builder
addToVerbs(java.lang.String addToVerbs)
APIResource
build()
APIResource.Builder
categories(java.util.Collection<? extends java.lang.String> categories)
APIResource.Builder
clearCategories()
APIResource.Builder
clearShortNames()
APIResource.Builder
clearVerbs()
APIResource.Builder
group(java.lang.String group)
group is the preferred group of the resource.APIResource.Builder
kind(@NonNull java.lang.String kind)
kind is the kind for the resource (e.g.APIResource.Builder
name(@NonNull java.lang.String name)
name is the plural name of the resource.APIResource.Builder
namespaced(@NonNull java.lang.Boolean namespaced)
namespaced indicates if a resource is namespaced or not.APIResource.Builder
shortNames(java.util.Collection<? extends java.lang.String> shortNames)
APIResource.Builder
singularName(@NonNull java.lang.String singularName)
singularName is the singular name of the resource.APIResource.Builder
storageVersionHash(java.lang.String storageVersionHash)
The hash value of the storage version, the version this resource is converted to when written to the data store.java.lang.String
toString()
APIResource.Builder
verbs(java.util.Collection<? extends java.lang.String> verbs)
APIResource.Builder
version(java.lang.String version)
version is the preferred version of the resource.
-
-
-
Method Detail
-
addToCategories
public APIResource.Builder addToCategories(java.lang.String addToCategories)
-
categories
public APIResource.Builder categories(java.util.Collection<? extends java.lang.String> categories)
-
clearCategories
public APIResource.Builder clearCategories()
-
group
public APIResource.Builder group(java.lang.String group)
group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale".- Returns:
this
.
-
kind
public APIResource.Builder kind(@NonNull @NonNull java.lang.String kind)
kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')- Returns:
this
.
-
name
public APIResource.Builder name(@NonNull @NonNull java.lang.String name)
name is the plural name of the resource.- Returns:
this
.
-
namespaced
public APIResource.Builder namespaced(@NonNull @NonNull java.lang.Boolean namespaced)
namespaced indicates if a resource is namespaced or not.- Returns:
this
.
-
addToShortNames
public APIResource.Builder addToShortNames(java.lang.String addToShortNames)
-
shortNames
public APIResource.Builder shortNames(java.util.Collection<? extends java.lang.String> shortNames)
-
clearShortNames
public APIResource.Builder clearShortNames()
-
singularName
public APIResource.Builder singularName(@NonNull @NonNull java.lang.String singularName)
singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.- Returns:
this
.
-
storageVersionHash
public APIResource.Builder storageVersionHash(java.lang.String storageVersionHash)
The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.- Returns:
this
.
-
addToVerbs
public APIResource.Builder addToVerbs(java.lang.String addToVerbs)
-
verbs
public APIResource.Builder verbs(java.util.Collection<? extends java.lang.String> verbs)
-
clearVerbs
public APIResource.Builder clearVerbs()
-
version
public APIResource.Builder version(java.lang.String version)
version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)".- Returns:
this
.
-
build
public APIResource build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-