Package io.swagger.v3.oas.models.servers
Class Server
- java.lang.Object
-
- io.swagger.v3.oas.models.servers.Server
-
public class Server extends Object
Server- See Also:
- "https://github.com/OAI/OpenAPI-Specification/blob/3.0.4/versions/3.0.4.md#server-object", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.1/versions/3.1.1.md#server-object"
-
-
Constructor Summary
Constructors Constructor Description Server()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtension(String name, Object value)voidaddExtension31(String name, Object value)Serverdescription(String description)booleanequals(Object o)Serverextensions(Map<String,Object> extensions)StringgetDescription()returns the description property from a Server instance.Map<String,Object>getExtensions()StringgetUrl()returns the url property from a Server instance.ServerVariablesgetVariables()returns the variables property from a Server instance.inthashCode()voidsetDescription(String description)voidsetExtensions(Map<String,Object> extensions)voidsetUrl(String url)voidsetVariables(ServerVariables variables)StringtoString()Serverurl(String url)Servervariables(ServerVariables variables)
-
-
-
Method Detail
-
getUrl
public String getUrl()
returns the url property from a Server instance.- Returns:
- String url
-
setUrl
public void setUrl(String url)
-
getDescription
public String getDescription()
returns the description property from a Server instance.- Returns:
- String description
-
setDescription
public void setDescription(String description)
-
getVariables
public ServerVariables getVariables()
returns the variables property from a Server instance.- Returns:
- ServerVariables variables
-
setVariables
public void setVariables(ServerVariables variables)
-
variables
public Server variables(ServerVariables variables)
-
-