Class InfoObject.Builder
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component.Builder<InfoObject.Builder,InfoObject>
-
- software.amazon.smithy.openapi.model.InfoObject.Builder
-
- All Implemented Interfaces:
SmithyBuilder<InfoObject>
- Enclosing class:
- InfoObject
public static final class InfoObject.Builder extends Component.Builder<InfoObject.Builder,InfoObject>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InfoObject
build()
Creates an immutable object that is created from the properties that have been set on the builder.InfoObject.Builder
contact(ObjectNode contact)
InfoObject.Builder
description(java.lang.String description)
InfoObject.Builder
license(ObjectNode license)
InfoObject.Builder
termsOfService(java.lang.String termsOfService)
InfoObject.Builder
title(java.lang.String title)
InfoObject.Builder
version(java.lang.String version)
-
Methods inherited from class software.amazon.smithy.openapi.model.Component.Builder
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
-
-
-
-
Method Detail
-
build
public InfoObject build()
Description copied from interface:SmithyBuilder
Creates an immutable object that is created from the properties that have been set on the builder.- Returns:
- an instance of T
-
title
public InfoObject.Builder title(java.lang.String title)
-
version
public InfoObject.Builder version(java.lang.String version)
-
description
public InfoObject.Builder description(java.lang.String description)
-
termsOfService
public InfoObject.Builder termsOfService(java.lang.String termsOfService)
-
license
public InfoObject.Builder license(ObjectNode license)
-
contact
public InfoObject.Builder contact(ObjectNode contact)
-
-