Class ClusterProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.ClusterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterProps>
- Enclosing interface:
ClusterProps
@Stability(Experimental)
public static final class ClusterProps.Builder
extends Object
implements software.amazon.jsii.Builder<ClusterProps>
A builder for
ClusterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterName(String clusterName) Sets the value ofClusterProps.getClusterName()clusterType(ClusterType clusterType) Sets the value ofClusterProps.getClusterType()instanceRole(IRole instanceRole) Sets the value ofClusterProps.getInstanceRole()networkSettings(ClusterNetworkSettings networkSettings) Sets the value ofClusterProps.getNetworkSettings()Sets the value ofClusterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceRole
Sets the value ofClusterProps.getInstanceRole()- Parameters:
instanceRole- The IAM role for nodes in the cluster. This parameter is required. [disable-awslint:prefer-ref-interface]- Returns:
this
-
clusterName
Sets the value ofClusterProps.getClusterName()- Parameters:
clusterName- The name of the cluster.- Returns:
this
-
clusterType
Sets the value ofClusterProps.getClusterType()- Parameters:
clusterType- The hardware type for the cluster.- Returns:
this
-
networkSettings
@Stability(Experimental) public ClusterProps.Builder networkSettings(ClusterNetworkSettings networkSettings) Sets the value ofClusterProps.getNetworkSettings()- Parameters:
networkSettings- Network settings for the cluster - only required if your networking setup requires it.- Returns:
this
-
tags
Sets the value ofClusterProps.getTags()- Parameters:
tags- Tags to add to the cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ClusterProps>- Returns:
- a new instance of
ClusterProps - Throws:
NullPointerException- if any required attribute was not provided
-