Class ArtifactDefinitions.Builder
- java.lang.Object
-
- software.amazon.smithy.codegen.core.trace.ArtifactDefinitions.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ArtifactDefinitions>
- Enclosing class:
- ArtifactDefinitions
public static final class ArtifactDefinitions.Builder extends java.lang.Object implements SmithyBuilder<ArtifactDefinitions>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactDefinitions.Builder
addTag(java.lang.String name, java.lang.String description)
Adds the tag's key, value pair to the tags map.ArtifactDefinitions.Builder
addType(java.lang.String name, java.lang.String description)
Adds the type's key, value pair to the tags map.ArtifactDefinitions
build()
Creates an immutable object that is created from the properties that have been set on the builder.ArtifactDefinitions.Builder
tags(java.util.Map<java.lang.String,java.lang.String> tags)
ArtifactDefinitions.Builder
types(java.util.Map<java.lang.String,java.lang.String> types)
-
-
-
Method Detail
-
build
public ArtifactDefinitions 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<ArtifactDefinitions>
- Returns:
- Definitions object from this builder.
-
tags
public ArtifactDefinitions.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
-
types
public ArtifactDefinitions.Builder types(java.util.Map<java.lang.String,java.lang.String> types)
-
addTag
public ArtifactDefinitions.Builder addTag(java.lang.String name, java.lang.String description)
Adds the tag's key, value pair to the tags map.- Parameters:
name
- Name of tag.description
- Description of tag.- Returns:
- This builder.
-
addType
public ArtifactDefinitions.Builder addType(java.lang.String name, java.lang.String description)
Adds the type's key, value pair to the tags map.- Parameters:
name
- Key of type.description
- Value of type.- Returns:
- This builder.
-
-