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 java.lang.Object implements SmithyBuilder<ShapeLink>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShapeLink.Builder
addTag(java.lang.String tag)
Adds a tag to the tags list of a ShapeLink.ShapeLink
build()
Creates an immutable object that is created from the properties that have been set on the builder.ShapeLink.Builder
column(java.lang.Integer column)
Sets tags list of a ShapeLink.ShapeLink.Builder
file(java.lang.String file)
Sets File of a ShapeLink.ShapeLink.Builder
id(java.lang.String id)
ShapeLink.Builder
line(java.lang.Integer line)
Sets line of a ShapeLink.ShapeLink.Builder
tags(java.util.List<java.lang.String> tags)
Sets tags list of a ShapeLink.ShapeLink.Builder
type(java.lang.String type)
-
-
-
Method Detail
-
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 interfaceSmithyBuilder<ShapeLink>
- Returns:
- an instance of T
-
type
public ShapeLink.Builder type(java.lang.String type)
-
id
public ShapeLink.Builder id(java.lang.String id)
-
tags
public ShapeLink.Builder tags(java.util.List<java.lang.String> tags)
Sets tags list of a ShapeLink.- Parameters:
tags
- list of tags.- Returns:
- This builder.
-
addTag
public ShapeLink.Builder addTag(java.lang.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(java.lang.String file)
Sets File of a ShapeLink.- Parameters:
file
- File.- Returns:
- This builder.
-
line
public ShapeLink.Builder line(java.lang.Integer line)
Sets line of a ShapeLink.- Parameters:
line
- Line number in artifact file.- Returns:
- This builder.
-
column
public ShapeLink.Builder column(java.lang.Integer column)
Sets tags list of a ShapeLink.- Parameters:
column
- Column number in artifact file.- Returns:
- This builder.
-
-