Class ExampleObject
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component
-
- software.amazon.smithy.openapi.model.ExampleObject
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<ExampleObject>
public final class ExampleObject extends Component implements ToSmithyBuilder<ExampleObject>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExampleObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExampleObject.Builder
builder()
protected ObjectNode.Builder
createNodeBuilder()
static ExampleObject
fromNode(Node exampleObject)
java.util.Optional<java.lang.String>
getDescription()
java.util.Optional<java.lang.String>
getExternalValue()
java.util.Optional<java.lang.String>
getSummary()
java.util.Optional<Node>
getValue()
ExampleObject.Builder
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.-
Methods inherited from class software.amazon.smithy.openapi.model.Component
equals, getExtension, getExtensions, hashCode, toNode
-
-
-
-
Method Detail
-
builder
public static ExampleObject.Builder builder()
-
getSummary
public java.util.Optional<java.lang.String> getSummary()
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
-
getValue
public java.util.Optional<Node> getValue()
-
getExternalValue
public java.util.Optional<java.lang.String> getExternalValue()
-
toBuilder
public ExampleObject.Builder toBuilder()
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<ExampleObject>
- Returns:
- a builder for type T
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilder
in classComponent
-
fromNode
public static ExampleObject fromNode(Node exampleObject)
-
-