Class SnippetFile.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • build

      public SnippetFile 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<SnippetFile>
      Returns:
      an instance of T
    • language

      public SnippetFile.Builder language(String language)
      Sets the language of the snippet file.
      Parameters:
      language - The language of the snippet file.
      Returns:
      Returns the builder.
    • filename

      public SnippetFile.Builder filename(String filename)
      Sets the name of the snippet file.
      Parameters:
      filename - The file name of the snippet.
      Returns:
      Returns the builder.
    • content

      public SnippetFile.Builder content(String content)
      Sets the content of the snippet file.
      Parameters:
      content - The snippet file contents.
      Returns:
      Returns the builder.