Class Cluster.Builder

java.lang.Object
software.amazon.awscdk.services.medialive.alpha.Cluster.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Cluster>
Enclosing class:
Cluster

@Stability(Experimental) public static final class Cluster.Builder extends Object implements software.amazon.jsii.Builder<Cluster>
(experimental) A fluent builder for Cluster.
  • Method Details

    • create

      @Stability(Experimental) public static Cluster.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Cluster.Builder.
    • instanceRole

      @Stability(Experimental) public Cluster.Builder instanceRole(IRole instanceRole)
      (experimental) The IAM role for nodes in the cluster.

      [disable-awslint:prefer-ref-interface]

      Parameters:
      instanceRole - The IAM role for nodes in the cluster. This parameter is required.
      Returns:
      this
    • clusterName

      @Stability(Experimental) public Cluster.Builder clusterName(String clusterName)
      (experimental) The name of the cluster.

      Default: - auto-generated name

      Parameters:
      clusterName - The name of the cluster. This parameter is required.
      Returns:
      this
    • clusterType

      @Stability(Experimental) public Cluster.Builder clusterType(ClusterType clusterType)
      (experimental) The hardware type for the cluster.

      Default: ClusterType.ON_PREMISES

      Parameters:
      clusterType - The hardware type for the cluster. This parameter is required.
      Returns:
      this
    • networkSettings

      @Stability(Experimental) public Cluster.Builder networkSettings(ClusterNetworkSettings networkSettings)
      (experimental) Network settings for the cluster - only required if your networking setup requires it.

      Default: - no network settings

      Parameters:
      networkSettings - Network settings for the cluster - only required if your networking setup requires it. This parameter is required.
      Returns:
      this
      See Also:
    • tags

      @Stability(Experimental) public Cluster.Builder tags(Map<String,String> tags)
      (experimental) Tags to add to the cluster.

      Default: - no tags

      Parameters:
      tags - Tags to add to the cluster. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public Cluster build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Cluster>
      Returns:
      a newly built instance of Cluster.