Package software.amazon.smithy.docgen
Record Class DocSettings
java.lang.Object
java.lang.Record
software.amazon.smithy.docgen.DocSettings
- Record Components:
service
- The shape id of the service to generate documentation for.format
- The format to generate documentation in. The default is markdown.references
- A mapping of external resources to their documentation URIs, used when generating links for the references trait for resources that are not contained within the model.
public record DocSettings(ShapeId service, String format, Map<ShapeId,String> references)
extends Record
Settings for documentation generation. These can be set in the
smithy-build.json
configuration for this plugin.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.static DocSettings
fromNode
(ObjectNode pluginSettings) Load the settings from anObjectNode
.final int
hashCode()
Returns a hash code value for this object.Returns the value of thereferences
record component.service()
Returns the value of theservice
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DocSettings
Settings for documentation generation. These can be set in thesmithy-build.json
configuration for this plugin.- Parameters:
service
- The shape id of the service to generate documentation for.format
- The format to generate documentation in. The default is markdown.
-
-
Method Details
-
fromNode
Load the settings from anObjectNode
.- Parameters:
pluginSettings
- theObjectNode
to load settings from.- Returns:
- loaded settings based on the given node.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
service
Returns the value of theservice
record component.- Returns:
- the value of the
service
record component
-
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
references
Returns the value of thereferences
record component.- Returns:
- the value of the
references
record component
-