Package org.cdk8s.plus25.k8s
Class StatusDetails.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.StatusDetails.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StatusDetails>
- Enclosing interface:
- StatusDetails
@Stability(Stable) public static final class StatusDetails.Builder extends Object implements software.amazon.jsii.Builder<StatusDetails>
A builder forStatusDetails
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatusDetailsbuild()Builds the configured instance.StatusDetails.Buildercauses(List<? extends StatusCause> causes)Sets the value ofStatusDetails.getCauses()StatusDetails.Buildergroup(String group)Sets the value ofStatusDetails.getGroup()StatusDetails.Builderkind(String kind)Sets the value ofStatusDetails.getKind()StatusDetails.Buildername(String name)Sets the value ofStatusDetails.getName()StatusDetails.BuilderretryAfterSeconds(Number retryAfterSeconds)Sets the value ofStatusDetails.getRetryAfterSeconds()StatusDetails.Builderuid(String uid)Sets the value ofStatusDetails.getUid()
-
-
-
Method Detail
-
causes
@Stability(Stable) public StatusDetails.Builder causes(List<? extends StatusCause> causes)
Sets the value ofStatusDetails.getCauses()- Parameters:
causes- The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.- Returns:
this
-
group
@Stability(Stable) public StatusDetails.Builder group(String group)
Sets the value ofStatusDetails.getGroup()- Parameters:
group- The group attribute of the resource associated with the status StatusReason.- Returns:
this
-
kind
@Stability(Stable) public StatusDetails.Builder kind(String kind)
Sets the value ofStatusDetails.getKind()- Parameters:
kind- The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
this
-
name
@Stability(Stable) public StatusDetails.Builder name(String name)
Sets the value ofStatusDetails.getName()- Parameters:
name- The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).- Returns:
this
-
retryAfterSeconds
@Stability(Stable) public StatusDetails.Builder retryAfterSeconds(Number retryAfterSeconds)
Sets the value ofStatusDetails.getRetryAfterSeconds()- Parameters:
retryAfterSeconds- If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.- Returns:
this
-
uid
@Stability(Stable) public StatusDetails.Builder uid(String uid)
Sets the value ofStatusDetails.getUid()- Parameters:
uid- UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids- Returns:
this
-
build
@Stability(Stable) public StatusDetails build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StatusDetails>- Returns:
- a new instance of
StatusDetails - Throws:
NullPointerException- if any required attribute was not provided
-
-