Class VirtualClusterReference.Builder
java.lang.Object
software.amazon.awscdk.services.emrcontainers.VirtualClusterReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<VirtualClusterReference>
- Enclosing interface:
VirtualClusterReference
@Stability(Stable)
public static final class VirtualClusterReference.Builder
extends Object
implements software.amazon.jsii.Builder<VirtualClusterReference>
A builder for
VirtualClusterReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.virtualClusterArn
(String virtualClusterArn) Sets the value ofVirtualClusterReference.getVirtualClusterArn()
virtualClusterId
(String virtualClusterId) Sets the value ofVirtualClusterReference.getVirtualClusterId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
virtualClusterArn
@Stability(Stable) public VirtualClusterReference.Builder virtualClusterArn(String virtualClusterArn) Sets the value ofVirtualClusterReference.getVirtualClusterArn()
- Parameters:
virtualClusterArn
- The ARN of the VirtualCluster resource. This parameter is required.- Returns:
this
-
virtualClusterId
Sets the value ofVirtualClusterReference.getVirtualClusterId()
- Parameters:
virtualClusterId
- The Id of the VirtualCluster resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<VirtualClusterReference>
- Returns:
- a new instance of
VirtualClusterReference
- Throws:
NullPointerException
- if any required attribute was not provided
-