Package org.cdk8s.plus24.k8s
Class ManagedFieldsEntry.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ManagedFieldsEntry.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ManagedFieldsEntry>
- Enclosing interface:
- ManagedFieldsEntry
@Stability(Stable) public static final class ManagedFieldsEntry.Builder extends Object implements software.amazon.jsii.Builder<ManagedFieldsEntry>
A builder forManagedFieldsEntry
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFieldsEntry.Builder
apiVersion(String apiVersion)
Sets the value ofManagedFieldsEntry.getApiVersion()
ManagedFieldsEntry
build()
Builds the configured instance.ManagedFieldsEntry.Builder
fieldsType(String fieldsType)
Sets the value ofManagedFieldsEntry.getFieldsType()
ManagedFieldsEntry.Builder
fieldsV1(Object fieldsV1)
Sets the value ofManagedFieldsEntry.getFieldsV1()
ManagedFieldsEntry.Builder
manager(String manager)
Sets the value ofManagedFieldsEntry.getManager()
ManagedFieldsEntry.Builder
operation(String operation)
Sets the value ofManagedFieldsEntry.getOperation()
ManagedFieldsEntry.Builder
subresource(String subresource)
Sets the value ofManagedFieldsEntry.getSubresource()
ManagedFieldsEntry.Builder
time(Instant time)
Sets the value ofManagedFieldsEntry.getTime()
-
-
-
Method Detail
-
apiVersion
@Stability(Stable) public ManagedFieldsEntry.Builder apiVersion(String apiVersion)
Sets the value ofManagedFieldsEntry.getApiVersion()
- Parameters:
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
@Stability(Stable) public ManagedFieldsEntry.Builder fieldsType(String fieldsType)
Sets the value ofManagedFieldsEntry.getFieldsType()
- Parameters:
fieldsType
- FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: "FieldsV1"- Returns:
this
-
fieldsV1
@Stability(Stable) public ManagedFieldsEntry.Builder fieldsV1(Object fieldsV1)
Sets the value ofManagedFieldsEntry.getFieldsV1()
- Parameters:
fieldsV1
- FieldsV1 holds the first JSON version format as described in the "FieldsV1" type.- Returns:
this
-
manager
@Stability(Stable) public ManagedFieldsEntry.Builder manager(String manager)
Sets the value ofManagedFieldsEntry.getManager()
- Parameters:
manager
- Manager is an identifier of the workflow managing these fields.- Returns:
this
-
operation
@Stability(Stable) public ManagedFieldsEntry.Builder operation(String operation)
Sets the value ofManagedFieldsEntry.getOperation()
- Parameters:
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
@Stability(Stable) public ManagedFieldsEntry.Builder subresource(String subresource)
Sets the value ofManagedFieldsEntry.getSubresource()
- Parameters:
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
@Stability(Stable) public ManagedFieldsEntry.Builder time(Instant time)
Sets the value ofManagedFieldsEntry.getTime()
- Parameters:
time
- Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.- Returns:
this
-
build
@Stability(Stable) public ManagedFieldsEntry build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ManagedFieldsEntry>
- Returns:
- a new instance of
ManagedFieldsEntry
- Throws:
NullPointerException
- if any required attribute was not provided
-
-