Class CfnLabel.Builder

java.lang.Object
software.amazon.awscdk.services.frauddetector.CfnLabel.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLabel>
Enclosing class:
CfnLabel

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

    • create

      @Stability(Stable) public static CfnLabel.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLabel.Builder.
    • name

      @Stability(Stable) public CfnLabel.Builder name(String name)
      The label name.

      Pattern: ^[0-9a-z_-]+$

      Parameters:
      name - The label name. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnLabel.Builder description(String description)
      The label description.

      Parameters:
      description - The label description. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnLabel.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag .

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

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