Class SnippetFile
java.lang.Object
software.amazon.smithy.codegen.core.docs.SnippetFile
- All Implemented Interfaces:
ToSmithyBuilder<SnippetFile>
Represents a single file that is part of a snippet. This could be a config file, a source code file,
or some logically differentiated file type.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic SnippetFile.Builderbuilder()booleanGets the language used by the file.inthashCode()Take this object and create a builder that contains all of the current property values of this object.
-
Method Details
-
getLanguage
Gets the language used by the file.This will be used for syntax highlighting.
- Returns:
- Returns a string representation of the file's language.
-
getFilename
- Returns:
- Returns the name of the file.
-
getContent
- Returns:
- Returns the content of the file.
-
equals
-
hashCode
public int hashCode() -
toBuilder
Description copied from interface:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<SnippetFile>- Returns:
- a builder for type T
-
builder
- Returns:
- Returns a new SnippetFile builder.
-