Package org.cdk8s.plus23.k8s
Class KubeStatusProps.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubeStatusProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeStatusProps>
- Enclosing interface:
- KubeStatusProps
@Stability(Stable) public static final class KubeStatusProps.Builder extends Object implements software.amazon.jsii.Builder<KubeStatusProps>
A builder forKubeStatusProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeStatusProps
build()
Builds the configured instance.KubeStatusProps.Builder
code(Number code)
Sets the value ofKubeStatusProps.getCode()
KubeStatusProps.Builder
details(StatusDetails details)
Sets the value ofKubeStatusProps.getDetails()
KubeStatusProps.Builder
message(String message)
Sets the value ofKubeStatusProps.getMessage()
KubeStatusProps.Builder
metadata(ListMeta metadata)
Sets the value ofKubeStatusProps.getMetadata()
KubeStatusProps.Builder
reason(String reason)
Sets the value ofKubeStatusProps.getReason()
-
-
-
Method Detail
-
code
@Stability(Stable) public KubeStatusProps.Builder code(Number code)
Sets the value ofKubeStatusProps.getCode()
- Parameters:
code
- Suggested HTTP return code for this status, 0 if not set.- Returns:
this
-
details
@Stability(Stable) public KubeStatusProps.Builder details(StatusDetails details)
Sets the value ofKubeStatusProps.getDetails()
- Parameters:
details
- Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.- Returns:
this
-
message
@Stability(Stable) public KubeStatusProps.Builder message(String message)
Sets the value ofKubeStatusProps.getMessage()
- Parameters:
message
- A human-readable description of the status of this operation.- Returns:
this
-
metadata
@Stability(Stable) public KubeStatusProps.Builder metadata(ListMeta metadata)
Sets the value ofKubeStatusProps.getMetadata()
- Parameters:
metadata
- Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
this
-
reason
@Stability(Stable) public KubeStatusProps.Builder reason(String reason)
Sets the value ofKubeStatusProps.getReason()
- Parameters:
reason
- A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.- Returns:
this
-
build
@Stability(Stable) public KubeStatusProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeStatusProps>
- Returns:
- a new instance of
KubeStatusProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-