Class ShapeLink.Builder

java.lang.Object
software.amazon.smithy.codegen.core.trace.ShapeLink.Builder
All Implemented Interfaces:
SmithyBuilder<ShapeLink>
Enclosing class:
ShapeLink

public static final class ShapeLink.Builder extends Object implements SmithyBuilder<ShapeLink>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public ShapeLink build()
      Description copied from interface: SmithyBuilder
      Creates an immutable object that is created from the properties that have been set on the builder.
      Specified by:
      build in interface SmithyBuilder<ShapeLink>
      Returns:
      an instance of T
    • type

      public ShapeLink.Builder type(String type)
    • id

      public ShapeLink.Builder id(String id)
    • tags

      public ShapeLink.Builder tags(List<String> tags)
      Sets tags list of a ShapeLink.
      Parameters:
      tags - list of tags.
      Returns:
      This builder.
    • addTag

      public ShapeLink.Builder addTag(String tag)
      Adds a tag to the tags list of a ShapeLink.
      Parameters:
      tag - tag to add.
      Returns:
      This builder.
    • file

      public ShapeLink.Builder file(String file)
      Sets File of a ShapeLink.
      Parameters:
      file - File.
      Returns:
      This builder.
    • line

      public ShapeLink.Builder line(Integer line)
      Sets line of a ShapeLink.
      Parameters:
      line - Line number in artifact file.
      Returns:
      This builder.
    • column

      public ShapeLink.Builder column(Integer column)
      Sets tags list of a ShapeLink.
      Parameters:
      column - Column number in artifact file.
      Returns:
      This builder.