Interface ComponentChild.Builder

  • Method Details

    • componentType

      ComponentChild.Builder componentType(String componentType)

      The type of the child component.

      Parameters:
      componentType - The type of the child component.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the child component.

      Parameters:
      name - The name of the child component.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • properties

      Describes the properties of the child component. You can't specify tags as a valid property for properties.

      Parameters:
      properties - Describes the properties of the child component. You can't specify tags as a valid property for properties.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • children

      The list of ComponentChild instances for this component.

      Parameters:
      children - The list of ComponentChild instances for this component.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • children

      ComponentChild.Builder children(ComponentChild... children)

      The list of ComponentChild instances for this component.

      Parameters:
      children - The list of ComponentChild instances for this component.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • children

      The list of ComponentChild instances for this component.

      This is a convenience method that creates an instance of the ComponentChild.Builder avoiding the need to create one manually via ComponentChild.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to children(List<ComponentChild>).

      Parameters:
      children - a consumer that will call methods on ComponentChild.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • events

      Describes the events that can be raised on the child component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.

      Parameters:
      events - Describes the events that can be raised on the child component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceId

      ComponentChild.Builder sourceId(String sourceId)

      The unique ID of the child component in its original source system, such as Figma.

      Parameters:
      sourceId - The unique ID of the child component in its original source system, such as Figma.
      Returns:
      Returns a reference to this object so that method calls can be chained together.