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 classExampleObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExampleObject.Builderbuilder()protected ObjectNode.BuildercreateNodeBuilder()static ExampleObjectfromNode(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.BuildertoBuilder()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:ToSmithyBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToSmithyBuilder<ExampleObject>- Returns:
- a builder for type T
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilderin classComponent
-
fromNode
public static ExampleObject fromNode(Node exampleObject)
-
-