Class KubernetesObjectValueProps.Builder
java.lang.Object
software.amazon.awscdk.services.eks.KubernetesObjectValueProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubernetesObjectValueProps>
- Enclosing interface:
KubernetesObjectValueProps
@Stability(Stable)
public static final class KubernetesObjectValueProps.Builder
extends Object
implements software.amazon.jsii.Builder<KubernetesObjectValueProps>
A builder for
KubernetesObjectValueProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofKubernetesObjectValueProps.getCluster()
Sets the value ofKubernetesObjectValueProps.getJsonPath()
objectName
(String objectName) Sets the value ofKubernetesObjectValueProps.getObjectName()
objectNamespace
(String objectNamespace) Sets the value ofKubernetesObjectValueProps.getObjectNamespace()
objectType
(String objectType) Sets the value ofKubernetesObjectValueProps.getObjectType()
Sets the value ofKubernetesObjectValueProps.getTimeout()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofKubernetesObjectValueProps.getCluster()
- Parameters:
cluster
- The EKS cluster to fetch attributes from. This parameter is required. [disable-awslint:ref-via-interface]- Returns:
this
-
jsonPath
Sets the value ofKubernetesObjectValueProps.getJsonPath()
- Parameters:
jsonPath
- JSONPath to the specific value. This parameter is required.- Returns:
this
-
objectName
Sets the value ofKubernetesObjectValueProps.getObjectName()
- Parameters:
objectName
- The name of the object to query. This parameter is required.- Returns:
this
-
objectType
Sets the value ofKubernetesObjectValueProps.getObjectType()
- Parameters:
objectType
- The object type to query. This parameter is required. (e.g 'service', 'pod'...)- Returns:
this
-
objectNamespace
@Stability(Stable) public KubernetesObjectValueProps.Builder objectNamespace(String objectNamespace) Sets the value ofKubernetesObjectValueProps.getObjectNamespace()
- Parameters:
objectNamespace
- The namespace the object belongs to.- Returns:
this
-
timeout
Sets the value ofKubernetesObjectValueProps.getTimeout()
- Parameters:
timeout
- Timeout for waiting on a value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubernetesObjectValueProps>
- Returns:
- a new instance of
KubernetesObjectValueProps
- Throws:
NullPointerException
- if any required attribute was not provided
-