Class EnumDefinition.Builder
- java.lang.Object
-
- software.amazon.smithy.model.traits.EnumDefinition.Builder
-
- All Implemented Interfaces:
SmithyBuilder<EnumDefinition>
- Enclosing class:
- EnumDefinition
public static final class EnumDefinition.Builder extends java.lang.Object implements SmithyBuilder<EnumDefinition>
Builds aEnumDefinition
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumDefinition.Builder
addTag(java.lang.String tag)
EnumDefinition
build()
Creates an immutable object that is created from the properties that have been set on the builder.EnumDefinition.Builder
clearTags()
EnumDefinition.Builder
deprecated(boolean deprecated)
EnumDefinition.Builder
documentation(java.lang.String documentation)
EnumDefinition.Builder
name(java.lang.String name)
EnumDefinition.Builder
tags(java.util.Collection<java.lang.String> tags)
EnumDefinition.Builder
value(java.lang.String value)
-
-
-
Method Detail
-
build
public EnumDefinition 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<EnumDefinition>
- Returns:
- an instance of T
-
value
public EnumDefinition.Builder value(java.lang.String value)
-
name
public EnumDefinition.Builder name(java.lang.String name)
-
documentation
public EnumDefinition.Builder documentation(java.lang.String documentation)
-
tags
public EnumDefinition.Builder tags(java.util.Collection<java.lang.String> tags)
-
addTag
public EnumDefinition.Builder addTag(java.lang.String tag)
-
clearTags
public EnumDefinition.Builder clearTags()
-
deprecated
public EnumDefinition.Builder deprecated(boolean deprecated)
-
-