Package io.voucherify.client.model
Class CustomersSegmentsListResponseBody
java.lang.Object
io.voucherify.client.model.CustomersSegmentsListResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CustomersSegmentsListResponseBody
extends Object
Response body schema for **GET** `v1/customers/{customerId}/segments`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDataItem(SimpleSegment dataItem) data(List<SimpleSegment> data) booleanCreate an instance of CustomersSegmentsListResponseBody given an JSON stringgetData()A dictionary that contains an array of segment IDs and names.Identifies the name of the JSON property that contains the array of segment IDs.The type of the object represented by JSON.getTotal()Total number of segments the customer belongs to.inthashCode()voidsetData(List<SimpleSegment> data) voidsetDataRef(String dataRef) voidvoidtoJson()Convert an instance of CustomersSegmentsListResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATA_REF
- See Also:
-
SERIALIZED_NAME_DATA
- See Also:
-
SERIALIZED_NAME_TOTAL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CustomersSegmentsListResponseBody
public CustomersSegmentsListResponseBody()
-
-
Method Details
-
_object
-
getObject
The type of the object represented by JSON. This object stores information about customer segments.- Returns:
- _object
-
setObject
-
dataRef
-
getDataRef
Identifies the name of the JSON property that contains the array of segment IDs.- Returns:
- dataRef
-
setDataRef
-
data
-
addDataItem
-
getData
A dictionary that contains an array of segment IDs and names.- Returns:
- data
-
setData
-
total
-
getTotal
Total number of segments the customer belongs to.- Returns:
- total
-
setTotal
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of CustomersSegmentsListResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CustomersSegmentsListResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to CustomersSegmentsListResponseBody
-
toJson
Convert an instance of CustomersSegmentsListResponseBody to an JSON string- Returns:
- JSON string
-