Class CfnNodeProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnNodeProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNodeProps>
- Enclosing interface:
CfnNodeProps
@Stability(Stable)
public static final class CfnNodeProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNodeProps>
A builder for
CfnNodeProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNodeProps.getClusterId()Sets the value ofCfnNodeProps.getName()nodeInterfaceMappings(List<? extends Object> nodeInterfaceMappings) Sets the value ofCfnNodeProps.getNodeInterfaceMappings()nodeInterfaceMappings(IResolvable nodeInterfaceMappings) Sets the value ofCfnNodeProps.getNodeInterfaceMappings()Sets the value ofCfnNodeProps.getRole()sdiSourceMappings(List<? extends Object> sdiSourceMappings) Sets the value ofCfnNodeProps.getSdiSourceMappings()sdiSourceMappings(IResolvable sdiSourceMappings) Sets the value ofCfnNodeProps.getSdiSourceMappings()Sets the value ofCfnNodeProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterId
Sets the value ofCfnNodeProps.getClusterId()- Parameters:
clusterId- The ID of the Cluster that the Node belongs to. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnNodeProps.getName()- Parameters:
name- The user-specified name of the Node.- Returns:
this
-
nodeInterfaceMappings
@Stability(Stable) public CfnNodeProps.Builder nodeInterfaceMappings(IResolvable nodeInterfaceMappings) Sets the value ofCfnNodeProps.getNodeInterfaceMappings()- Parameters:
nodeInterfaceMappings- An array of interface mappings for the Node.- Returns:
this
-
nodeInterfaceMappings
@Stability(Stable) public CfnNodeProps.Builder nodeInterfaceMappings(List<? extends Object> nodeInterfaceMappings) Sets the value ofCfnNodeProps.getNodeInterfaceMappings()- Parameters:
nodeInterfaceMappings- An array of interface mappings for the Node.- Returns:
this
-
role
Sets the value ofCfnNodeProps.getRole()- Parameters:
role- The role of the Node in the Cluster. ACTIVE means the Node is available for encoding. BACKUP means the Node is a redundant Node and might get used if an ACTIVE Node fails.- Returns:
this
-
sdiSourceMappings
Sets the value ofCfnNodeProps.getSdiSourceMappings()- Parameters:
sdiSourceMappings- An array of SDI source mappings.- Returns:
this
-
sdiSourceMappings
@Stability(Stable) public CfnNodeProps.Builder sdiSourceMappings(List<? extends Object> sdiSourceMappings) Sets the value ofCfnNodeProps.getSdiSourceMappings()- Parameters:
sdiSourceMappings- An array of SDI source mappings.- Returns:
this
-
tags
Sets the value ofCfnNodeProps.getTags()- Parameters:
tags- A collection of key-value pairs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNodeProps>- Returns:
- a new instance of
CfnNodeProps - Throws:
NullPointerException- if any required attribute was not provided
-