Package org.cdk8s.plus24.k8s
Class ComponentCondition.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.ComponentCondition.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComponentCondition>
- Enclosing interface:
- ComponentCondition
@Stability(Stable) public static final class ComponentCondition.Builder extends Object implements software.amazon.jsii.Builder<ComponentCondition>
A builder forComponentCondition
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentCondition
build()
Builds the configured instance.ComponentCondition.Builder
error(String error)
Sets the value ofComponentCondition.getError()
ComponentCondition.Builder
message(String message)
Sets the value ofComponentCondition.getMessage()
ComponentCondition.Builder
status(String status)
Sets the value ofComponentCondition.getStatus()
ComponentCondition.Builder
type(String type)
Sets the value ofComponentCondition.getType()
-
-
-
Method Detail
-
status
@Stability(Stable) public ComponentCondition.Builder status(String status)
Sets the value ofComponentCondition.getStatus()
- Parameters:
status
- Status of the condition for a component. This parameter is required. Valid values for "Healthy": "True", "False", or "Unknown".- Returns:
this
-
type
@Stability(Stable) public ComponentCondition.Builder type(String type)
Sets the value ofComponentCondition.getType()
- Parameters:
type
- Type of condition for a component. This parameter is required. Valid value: "Healthy"- Returns:
this
-
error
@Stability(Stable) public ComponentCondition.Builder error(String error)
Sets the value ofComponentCondition.getError()
- Parameters:
error
- Condition error code for a component. For example, a health check error code.- Returns:
this
-
message
@Stability(Stable) public ComponentCondition.Builder message(String message)
Sets the value ofComponentCondition.getMessage()
- Parameters:
message
- Message about the condition for a component. For example, information about a health check.- Returns:
this
-
build
@Stability(Stable) public ComponentCondition build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ComponentCondition>
- Returns:
- a new instance of
ComponentCondition
- Throws:
NullPointerException
- if any required attribute was not provided
-
-