Interface Theme.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Theme.Builder,Theme>, SdkBuilder<Theme.Builder,Theme>, SdkPojo
Enclosing class:
Theme

@Mutable @NotThreadSafe public static interface Theme.Builder extends SdkPojo, CopyableBuilder<Theme.Builder,Theme>
  • Method Details

    • appId

      Theme.Builder appId(String appId)

      The unique ID for the Amplify app associated with the theme.

      Parameters:
      appId - The unique ID for the Amplify app associated with the theme.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentName

      Theme.Builder environmentName(String environmentName)

      The name of the backend environment that is a part of the Amplify app.

      Parameters:
      environmentName - The name of the backend environment that is a part of the Amplify app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • id

      The ID for the theme.

      Parameters:
      id - The ID for the theme.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Theme.Builder name(String name)

      The name of the theme.

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

      Theme.Builder createdAt(Instant createdAt)

      The time that the theme was created.

      Parameters:
      createdAt - The time that the theme was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modifiedAt

      Theme.Builder modifiedAt(Instant modifiedAt)

      The time that the theme was modified.

      Parameters:
      modifiedAt - The time that the theme was modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      A list of key-value pairs that defines the properties of the theme.

      Parameters:
      values - A list of key-value pairs that defines the properties of the theme.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      Theme.Builder values(ThemeValues... values)

      A list of key-value pairs that defines the properties of the theme.

      Parameters:
      values - A list of key-value pairs that defines the properties of the theme.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • values

      A list of key-value pairs that defines the properties of the theme.

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

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

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

      Theme.Builder overrides(Collection<ThemeValues> overrides)

      Describes the properties that can be overriden to customize a theme.

      Parameters:
      overrides - Describes the properties that can be overriden to customize a theme.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrides

      Theme.Builder overrides(ThemeValues... overrides)

      Describes the properties that can be overriden to customize a theme.

      Parameters:
      overrides - Describes the properties that can be overriden to customize a theme.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrides

      Theme.Builder overrides(Consumer<ThemeValues.Builder>... overrides)

      Describes the properties that can be overriden to customize a theme.

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

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

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

      One or more key-value pairs to use when tagging the theme.

      Parameters:
      tags - One or more key-value pairs to use when tagging the theme.
      Returns:
      Returns a reference to this object so that method calls can be chained together.