Package io.voucherify.client.model
Class SegmentsCreateRequestBody
java.lang.Object
io.voucherify.client.model.SegmentsCreateRequestBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SegmentsCreateRequestBody
extends Object
SegmentsCreateRequestBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets type -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomersItem(String customersItem) booleanstatic SegmentsCreateRequestBodyCreate an instance of SegmentsCreateRequestBody given an JSON stringArray of customer IDs.Defines a set of criteria for an `auto-update` segment type.getName()Segment name.getType()Get typeinthashCode()voidsetCustomers(List<String> customers) voidvoidvoidtoJson()Convert an instance of SegmentsCreateRequestBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_CUSTOMERS
- See Also:
-
SERIALIZED_NAME_FILTER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SegmentsCreateRequestBody
public SegmentsCreateRequestBody()
-
-
Method Details
-
name
-
getName
Segment name.- Returns:
- name
-
setName
-
type
-
getType
Get type- Returns:
- type
-
setType
-
customers
-
addCustomersItem
-
getCustomers
Array of customer IDs.- Returns:
- customers
-
setCustomers
-
filter
-
getFilter
Defines a set of criteria for an `auto-update` segment type.- Returns:
- filter
-
setFilter
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of SegmentsCreateRequestBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SegmentsCreateRequestBody
- Throws:
IOException- if the JSON string is invalid with respect to SegmentsCreateRequestBody
-
toJson
Convert an instance of SegmentsCreateRequestBody to an JSON string- Returns:
- JSON string
-