Package io.voucherify.client.model
Class SegmentsCreateResponseBody
java.lang.Object
io.voucherify.client.model.SegmentsCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SegmentsCreateResponseBody
extends Object
Response body schema for **POST** `v1/segments`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets initialSyncStatusstatic enumThe type of the object represented by JSON.static enumDescribes whether the segment is dynamic (customers come in and leave based on set criteria) or static (manually selected customers). -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic SegmentsCreateResponseBodyCreate an instance of SegmentsCreateResponseBody given an JSON stringTimestamp representing the date and time when the segment was created.Defines a set of criteria for an `auto-update` segment type.getId()Unique segment ID.Get initialSyncStatusgetName()Segment name.The type of the object represented by JSON.getType()Describes whether the segment is dynamic (customers come in and leave based on set criteria) or static (manually selected customers).inthashCode()initialSyncStatus(SegmentsCreateResponseBody.InitialSyncStatusEnum initialSyncStatus) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetInitialSyncStatus(SegmentsCreateResponseBody.InitialSyncStatusEnum initialSyncStatus) voidvoidvoidtoJson()Convert an instance of SegmentsCreateResponseBody to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_FILTER
- See Also:
-
SERIALIZED_NAME_INITIAL_SYNC_STATUS
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SegmentsCreateResponseBody
public SegmentsCreateResponseBody()
-
-
Method Details
-
id
-
getId
Unique segment ID.- Returns:
- id
-
setId
-
name
-
getName
Segment name.- Returns:
- name
-
setName
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the segment was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
type
-
getType
Describes whether the segment is dynamic (customers come in and leave based on set criteria) or static (manually selected customers).- Returns:
- type
-
setType
-
filter
-
getFilter
Defines a set of criteria for an `auto-update` segment type.- Returns:
- filter
-
setFilter
-
initialSyncStatus
public SegmentsCreateResponseBody initialSyncStatus(SegmentsCreateResponseBody.InitialSyncStatusEnum initialSyncStatus) -
getInitialSyncStatus
Get initialSyncStatus- Returns:
- initialSyncStatus
-
setInitialSyncStatus
public void setInitialSyncStatus(SegmentsCreateResponseBody.InitialSyncStatusEnum initialSyncStatus) -
_object
-
getObject
The type of the object represented by JSON. This object stores information about the customer segment.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of SegmentsCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SegmentsCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to SegmentsCreateResponseBody
-
toJson
Convert an instance of SegmentsCreateResponseBody to an JSON string- Returns:
- JSON string
-