Package io.voucherify.client.model
Class ProductsListResponseBody
java.lang.Object
io.voucherify.client.model.ProductsListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ProductsListResponseBody
extends Object
Response body schema for **GET** `v1/products`.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddProductsItem(Product productsItem) booleanstatic ProductsListResponseBodyCreate an instance of ProductsListResponseBody given an JSON stringIdentifies the name of the attribute that contains the array of product objects.The type of the object represented by JSON.Contains array of product objects.getTotal()Total number of product objects.inthashCode()voidsetDataRef(String dataRef) voidvoidsetProducts(List<Product> products) voidtoJson()Convert an instance of ProductsListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_PRODUCTS
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ProductsListResponseBody
public ProductsListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about products in a dictionary.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the attribute that contains the array of product objects.- Returns:
- dataRef
-
setDataRef
-
products
-
addProductsItem
-
getProducts
Contains array of product objects.- Returns:
- products
-
setProducts
-
total
-
getTotal
Total number of product objects.- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ProductsListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ProductsListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ProductsListResponseBody
-
toJson
Convert an instance of ProductsListResponseBody to an JSON string- Returns:
- JSON string
-