Class CfnPlan.EksClusterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.arcregionswitch.CfnPlan.EksClusterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlan.EksClusterProperty>
- Enclosing interface:
CfnPlan.EksClusterProperty
@Stability(Stable)
public static final class CfnPlan.EksClusterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlan.EksClusterProperty>
A builder for
CfnPlan.EksClusterProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clusterArn
(String clusterArn) Sets the value ofCfnPlan.EksClusterProperty.getClusterArn()
crossAccountRole
(String crossAccountRole) Sets the value ofCfnPlan.EksClusterProperty.getCrossAccountRole()
externalId
(String externalId) Sets the value ofCfnPlan.EksClusterProperty.getExternalId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterArn
Sets the value ofCfnPlan.EksClusterProperty.getClusterArn()
- Parameters:
clusterArn
- The Amazon Resource Name (ARN) of an AWS EKS cluster. This parameter is required.- Returns:
this
-
crossAccountRole
@Stability(Stable) public CfnPlan.EksClusterProperty.Builder crossAccountRole(String crossAccountRole) Sets the value ofCfnPlan.EksClusterProperty.getCrossAccountRole()
- Parameters:
crossAccountRole
- The cross account role for the configuration.- Returns:
this
-
externalId
Sets the value ofCfnPlan.EksClusterProperty.getExternalId()
- Parameters:
externalId
- The external ID (secret key) for the configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlan.EksClusterProperty>
- Returns:
- a new instance of
CfnPlan.EksClusterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-