Class Component
java.lang.Object
software.amazon.smithy.openapi.model.Component
- All Implemented Interfaces:
software.amazon.smithy.model.node.ToNode
- Direct Known Subclasses:
CallbackObject,ComponentsObject,EncodingObject,ExampleObject,ExternalDocumentation,InfoObject,LinkObject,MediaTypeObject,OpenApi,OperationObject,ParameterObject,PathItem,RequestBodyObject,ResponseObject,SecurityScheme,ServerObject,TagObject,XmlObject
Abstract class used for most OpenAPI model components.
This class provides the ability to add arbitrary key-value pairs to just about everything in the model. You'll need to ensure that "x-" is added to each key to ensure compliance. "x-" can be omitted if adding something that's built-in to the OpenAPI spec but not directly supported in this package (for example, "discriminator", "examples", etc).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classComponent.Builder<B extends Component.Builder,C extends Component> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract software.amazon.smithy.model.node.ObjectNode.Builderfinal booleanfinal Optional<software.amazon.smithy.model.node.Node>getExtension(String name) final inthashCode()final software.amazon.smithy.model.node.NodetoNode()
-
Constructor Details
-
Component
-
-
Method Details
-
getExtension
-
getExtensions
-
toNode
public final software.amazon.smithy.model.node.Node toNode()- Specified by:
toNodein interfacesoftware.amazon.smithy.model.node.ToNode
-
createNodeBuilder
protected abstract software.amazon.smithy.model.node.ObjectNode.Builder createNodeBuilder() -
equals
-
hashCode
public final int hashCode()
-