Class ResponseObject.Builder
- java.lang.Object
-
- software.amazon.smithy.openapi.model.Component.Builder<ResponseObject.Builder,ResponseObject>
-
- software.amazon.smithy.openapi.model.ResponseObject.Builder
-
- All Implemented Interfaces:
SmithyBuilder<ResponseObject>
- Enclosing class:
- ResponseObject
public static final class ResponseObject.Builder extends Component.Builder<ResponseObject.Builder,ResponseObject>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseObject
build()
Creates an immutable object that is created from the properties that have been set on the builder.ResponseObject.Builder
content(java.util.Map<java.lang.String,MediaTypeObject> content)
ResponseObject.Builder
description(java.lang.String description)
ResponseObject.Builder
headers(java.util.Map<java.lang.String,Ref<ParameterObject>> headers)
ResponseObject.Builder
links(java.util.Map<java.lang.String,Ref<LinkObject>> links)
ResponseObject.Builder
putContent(java.lang.String name, MediaTypeObject mediaTypeObject)
ResponseObject.Builder
putHeader(java.lang.String name, Ref<ParameterObject> header)
ResponseObject.Builder
putLink(java.lang.String name, LinkObject link)
ResponseObject.Builder
putLink(java.lang.String name, Ref<LinkObject> link)
-
Methods inherited from class software.amazon.smithy.openapi.model.Component.Builder
extensions, extensions, getExtensions, putExtension, putExtension, putExtension, putExtension, removeExtension
-
-
-
-
Method Detail
-
build
public ResponseObject 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
-
description
public ResponseObject.Builder description(java.lang.String description)
-
putHeader
public ResponseObject.Builder putHeader(java.lang.String name, Ref<ParameterObject> header)
-
headers
public ResponseObject.Builder headers(java.util.Map<java.lang.String,Ref<ParameterObject>> headers)
-
putContent
public ResponseObject.Builder putContent(java.lang.String name, MediaTypeObject mediaTypeObject)
-
content
public ResponseObject.Builder content(java.util.Map<java.lang.String,MediaTypeObject> content)
-
putLink
public ResponseObject.Builder putLink(java.lang.String name, Ref<LinkObject> link)
-
putLink
public ResponseObject.Builder putLink(java.lang.String name, LinkObject link)
-
links
public ResponseObject.Builder links(java.util.Map<java.lang.String,Ref<LinkObject>> links)
-
-