Class InfoObject
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component
-
- software.amazon.smithy.openapi.model.InfoObject
-
- All Implemented Interfaces:
ToNode
,ToSmithyBuilder<InfoObject>
public final class InfoObject extends Component implements ToSmithyBuilder<InfoObject>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InfoObject.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InfoObject.Builder
builder()
protected ObjectNode.Builder
createNodeBuilder()
java.util.Optional<ObjectNode>
getContact()
java.util.Optional<java.lang.String>
getDescription()
java.util.Optional<ObjectNode>
getLicense()
java.util.Optional<java.lang.String>
getTermsOfService()
java.lang.String
getTitle()
java.lang.String
getVersion()
InfoObject.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 InfoObject.Builder builder()
-
getTitle
public java.lang.String getTitle()
-
getVersion
public java.lang.String getVersion()
-
getDescription
public java.util.Optional<java.lang.String> getDescription()
-
getTermsOfService
public java.util.Optional<java.lang.String> getTermsOfService()
-
getLicense
public java.util.Optional<ObjectNode> getLicense()
-
getContact
public java.util.Optional<ObjectNode> getContact()
-
toBuilder
public InfoObject.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<InfoObject>
- Returns:
- a builder for type T
-
createNodeBuilder
protected ObjectNode.Builder createNodeBuilder()
- Specified by:
createNodeBuilder
in classComponent
-
-