public class PathItemObjectBuilder extends Object
Constructor and Description |
---|
PathItemObjectBuilder() |
Modifier and Type | Method and Description |
---|---|
PathItemObject |
build() |
static PathItemObjectBuilder |
pathItemObject()
Creates a builder for a
PathItemObject |
PathItemObjectBuilder |
withDescription(String description) |
PathItemObjectBuilder |
withOperations(Map<String,OperationObject> operations) |
PathItemObjectBuilder |
withParameters(List<ParameterObject> parameters) |
PathItemObjectBuilder |
withServers(List<ServerObject> servers) |
PathItemObjectBuilder |
withSummary(String summary) |
public PathItemObjectBuilder withSummary(String summary)
summary
- An optional, string summary, intended to apply to all operations in this path.public PathItemObjectBuilder withDescription(String description)
description
- An optional, string description, intended to apply to all operations in this path.
CommonMark syntax MAY be used for rich text representation.public PathItemObjectBuilder withOperations(Map<String,OperationObject> operations)
operations
- The operations allowed on this path, where the keys to the map are GET
, POST
etc.public PathItemObjectBuilder withServers(List<ServerObject> servers)
servers
- An alternative server array to service all operations in this path.public PathItemObjectBuilder withParameters(List<ParameterObject> parameters)
parameters
- A list of parameters that are applicable for all the operations described under this path.
These parameters can be overridden at the operation level, but cannot be removed there. The
list MUST NOT include duplicated parameters. A unique parameter is defined by a combination
of a name and location.public PathItemObject build()
public static PathItemObjectBuilder pathItemObject()
PathItemObject
Copyright © 2017–2019. All rights reserved.