Class MetadataTrait.Builder

All Implemented Interfaces:
SmithyBuilder<MetadataTrait>
Enclosing class:
MetadataTrait

public static final class MetadataTrait.Builder extends AbstractTraitBuilder<MetadataTrait,MetadataTrait.Builder>
  • Method Details

    • key

      public MetadataTrait.Builder key(String key)
      Sets the metadata key that this trait defines a type for.
      Parameters:
      key - The metadata key. Required.
      Returns:
      Returns the builder.
    • build

      public MetadataTrait build()
      Description copied from interface: SmithyBuilder
      Creates an immutable object that is created from the properties that have been set on the builder.
      Returns:
      an instance of T