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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.static DocSettingsfromNode(ObjectNode pluginSettings) Load the settings from anObjectNode.final inthashCode()Returns a hash code value for this object.Returns the value of thereferencesrecord component.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
DocSettings
Settings for documentation generation. These can be set in thesmithy-build.jsonconfiguration 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- theObjectNodeto 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 theservicerecord component.- Returns:
 - the value of the 
servicerecord component 
 - 
format
Returns the value of theformatrecord component.- Returns:
 - the value of the 
formatrecord component 
 - 
references
Returns the value of thereferencesrecord component.- Returns:
 - the value of the 
referencesrecord component 
 
 -