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
Modifier and Type Method Description InfoObjectbuild()Creates an immutable object that is created from the properties that have been set on the builder.InfoObject.Buildercontact(ObjectNode contact)InfoObject.Builderdescription(java.lang.String description)InfoObject.Builderlicense(ObjectNode license)InfoObject.BuildertermsOfService(java.lang.String termsOfService)InfoObject.Buildertitle(java.lang.String title)InfoObject.Builderversion(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:SmithyBuilderCreates 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)
-
-