Class SnippetFile.Builder
java.lang.Object
software.amazon.smithy.codegen.core.docs.SnippetFile.Builder
- All Implemented Interfaces:
SmithyBuilder<SnippetFile>
- Enclosing class:
- SnippetFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutable object that is created from the properties that have been set on the builder.Sets the content of the snippet file.Sets the name of the snippet file.Sets the language of the snippet file.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Description copied from interface:SmithyBuilderCreates an immutable object that is created from the properties that have been set on the builder.- Specified by:
buildin interfaceSmithyBuilder<SnippetFile>- Returns:
- an instance of T
-
language
Sets the language of the snippet file.- Parameters:
language- The language of the snippet file.- Returns:
- Returns the builder.
-
filename
Sets the name of the snippet file.- Parameters:
filename- The file name of the snippet.- Returns:
- Returns the builder.
-
content
Sets the content of the snippet file.- Parameters:
content- The snippet file contents.- Returns:
- Returns the builder.
-