Package io.voucherify.client.model
Class SegmentsGetResponseBody
java.lang.Object
io.voucherify.client.model.SegmentsGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SegmentsGetResponseBody
extends Object
Response body schema for **GET** `v1/v1/segments/{segmentId}`.
-
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 SegmentsGetResponseBodyCreate an instance of SegmentsGetResponseBody 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(SegmentsGetResponseBody.InitialSyncStatusEnum initialSyncStatus) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetInitialSyncStatus(SegmentsGetResponseBody.InitialSyncStatusEnum initialSyncStatus) voidvoidvoidtoJson()Convert an instance of SegmentsGetResponseBody 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
-
SegmentsGetResponseBody
public SegmentsGetResponseBody()
-
-
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 SegmentsGetResponseBody initialSyncStatus(SegmentsGetResponseBody.InitialSyncStatusEnum initialSyncStatus) -
getInitialSyncStatus
Get initialSyncStatus- Returns:
- initialSyncStatus
-
setInitialSyncStatus
-
_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 SegmentsGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SegmentsGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to SegmentsGetResponseBody
-
toJson
Convert an instance of SegmentsGetResponseBody to an JSON string- Returns:
- JSON string
-