Package io.swagger.v3.oas.models
Class PathItem
- java.lang.Object
-
- io.swagger.v3.oas.models.PathItem
-
public class PathItem extends Object
PathItem- See Also:
- "https://github.com/OAI/OpenAPI-Specification/blob/3.0.4/versions/3.0.4.md#path-item-object", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.1/versions/3.1.1.md#path-item-object"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPathItem.HttpMethod
-
Constructor Summary
Constructors Constructor Description PathItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathItem$ref(String $ref)voidaddExtension(String name, Object value)voidaddExtension31(String name, Object value)PathItemaddParametersItem(Parameter parametersItem)PathItemaddServersItem(Server serversItem)PathItemdelete(Operation delete)PathItemdescription(String description)booleanequals(Object o)PathItemextensions(Map<String,Object> extensions)PathItemget(Operation get)Stringget$ref()returns the ref property from a PathItem instance.OperationgetDelete()returns the delete property from a PathItem instance.StringgetDescription()returns the description property from a PathItem instance.Map<String,Object>getExtensions()OperationgetGet()returns the get property from a PathItem instance.OperationgetHead()returns the head property from a PathItem instance.OperationgetOptions()returns the options property from a PathItem instance.List<Parameter>getParameters()returns the parameters property from a PathItem instance.OperationgetPatch()returns the patch property from a PathItem instance.OperationgetPost()returns the post property from a PathItem instance.OperationgetPut()returns the put property from a PathItem instance.List<Server>getServers()returns the servers property from a PathItem instance.StringgetSummary()returns the summary property from a PathItem instance.OperationgetTrace()returns the trace property from a PathItem instance.inthashCode()PathItemhead(Operation head)voidoperation(PathItem.HttpMethod method, Operation operation)PathItemoptions(Operation options)PathItemparameters(List<Parameter> parameters)PathItempatch(Operation patch)PathItempost(Operation post)PathItemput(Operation put)List<Operation>readOperations()Map<PathItem.HttpMethod,Operation>readOperationsMap()PathItemservers(List<Server> servers)voidset$ref(String $ref)voidsetDelete(Operation delete)voidsetDescription(String description)voidsetExtensions(Map<String,Object> extensions)voidsetGet(Operation get)voidsetHead(Operation head)voidsetOptions(Operation options)voidsetParameters(List<Parameter> parameters)voidsetPatch(Operation patch)voidsetPost(Operation post)voidsetPut(Operation put)voidsetServers(List<Server> servers)voidsetSummary(String summary)voidsetTrace(Operation trace)PathItemsummary(String summary)StringtoString()PathItemtrace(Operation trace)
-
-
-
Method Detail
-
getSummary
public String getSummary()
returns the summary property from a PathItem instance.- Returns:
- String summary
-
setSummary
public void setSummary(String summary)
-
getDescription
public String getDescription()
returns the description property from a PathItem instance.- Returns:
- String description
-
setDescription
public void setDescription(String description)
-
getGet
public Operation getGet()
returns the get property from a PathItem instance.- Returns:
- Operation get
-
setGet
public void setGet(Operation get)
-
getPut
public Operation getPut()
returns the put property from a PathItem instance.- Returns:
- Operation put
-
setPut
public void setPut(Operation put)
-
getPost
public Operation getPost()
returns the post property from a PathItem instance.- Returns:
- Operation post
-
setPost
public void setPost(Operation post)
-
getDelete
public Operation getDelete()
returns the delete property from a PathItem instance.- Returns:
- Operation delete
-
setDelete
public void setDelete(Operation delete)
-
getOptions
public Operation getOptions()
returns the options property from a PathItem instance.- Returns:
- Operation options
-
setOptions
public void setOptions(Operation options)
-
getHead
public Operation getHead()
returns the head property from a PathItem instance.- Returns:
- Operation head
-
setHead
public void setHead(Operation head)
-
getPatch
public Operation getPatch()
returns the patch property from a PathItem instance.- Returns:
- Operation patch
-
setPatch
public void setPatch(Operation patch)
-
getTrace
public Operation getTrace()
returns the trace property from a PathItem instance.- Returns:
- Operation trace
-
setTrace
public void setTrace(Operation trace)
-
operation
public void operation(PathItem.HttpMethod method, Operation operation)
-
readOperationsMap
public Map<PathItem.HttpMethod,Operation> readOperationsMap()
-
getServers
public List<Server> getServers()
returns the servers property from a PathItem instance.- Returns:
- List<Server> servers
-
getParameters
public List<Parameter> getParameters()
returns the parameters property from a PathItem instance.- Returns:
- List<Parameter> parameters
-
get$ref
public String get$ref()
returns the ref property from a PathItem instance.- Returns:
- String ref
-
set$ref
public void set$ref(String $ref)
-
-