Package io.jpostman.schema.model
Class ApiBody
- java.lang.Object
-
- io.jpostman.schema.model.ApiBody
-
public class ApiBody extends Object
Represents the request body template or example body for an API operation.
-
-
Constructor Summary
Constructors Constructor Description ApiBody()Creates a new ApiBody instance.ApiBody(ApiBodyType type, String content)Creates a new ApiBody instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Returns the content.StringgetDescription()Returns the description.ApiBodyTypegetType()Returns the type.voidsetContent(String content)Sets the content.voidsetDescription(String description)Sets the description.voidsetType(ApiBodyType type)Sets the type.
-
-
-
Constructor Detail
-
ApiBody
public ApiBody()
Creates a new ApiBody instance.
-
ApiBody
public ApiBody(ApiBodyType type, String content)
Creates a new ApiBody instance.
-
-
Method Detail
-
getType
public ApiBodyType getType()
Returns the type.
-
setType
public void setType(ApiBodyType type)
Sets the type.
-
getContent
public String getContent()
Returns the content.
-
setContent
public void setContent(String content)
Sets the content.
-
getDescription
public String getDescription()
Returns the description.
-
setDescription
public void setDescription(String description)
Sets the description.
-
-