Class Component
java.lang.Object
software.amazon.smithy.openapi.model.Component
- All Implemented Interfaces:
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
Modifier and TypeClassDescriptionstatic class
Component.Builder<B extends Component.Builder,
C extends Component> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectNode.Builder
final boolean
getExtension
(String name) final int
hashCode()
final Node
toNode()
Converts a value to aNode
.