Class ManagedFieldsEntry.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry.Builder
-
- Enclosing class:
- ManagedFieldsEntry
public static class ManagedFieldsEntry.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFieldsEntry.Builder
apiVersion(java.lang.String apiVersion)
APIVersion defines the version of this resource that this field set applies to.ManagedFieldsEntry
build()
ManagedFieldsEntry.Builder
fieldsType(java.lang.String fieldsType)
FieldsType is the discriminator for the different fields format and version.ManagedFieldsEntry.Builder
fieldsV1(FieldsV1 fieldsV1)
ManagedFieldsEntry.Builder
manager(java.lang.String manager)
Manager is an identifier of the workflow managing these fields.ManagedFieldsEntry.Builder
operation(java.lang.String operation)
Operation is the type of operation which lead to this ManagedFieldsEntry being created.ManagedFieldsEntry.Builder
subresource(java.lang.String subresource)
Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource.ManagedFieldsEntry.Builder
time(java.time.OffsetDateTime time)
java.lang.String
toString()
-
-
-
Method Detail
-
apiVersion
public ManagedFieldsEntry.Builder apiVersion(java.lang.String apiVersion)
APIVersion defines the version of this resource that this field set applies to. The format is "group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.- Returns:
this
.
-
fieldsType
public ManagedFieldsEntry.Builder fieldsType(java.lang.String fieldsType)
FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1"- Returns:
this
.
-
fieldsV1
public ManagedFieldsEntry.Builder fieldsV1(FieldsV1 fieldsV1)
- Returns:
this
.
-
manager
public ManagedFieldsEntry.Builder manager(java.lang.String manager)
Manager is an identifier of the workflow managing these fields.- Returns:
this
.
-
operation
public ManagedFieldsEntry.Builder operation(java.lang.String operation)
Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.- Returns:
this
.
-
subresource
public ManagedFieldsEntry.Builder subresource(java.lang.String subresource)
Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.- Returns:
this
.
-
time
public ManagedFieldsEntry.Builder time(java.time.OffsetDateTime time)
- Returns:
this
.
-
build
public ManagedFieldsEntry build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-