Package io.voucherify.client.model
Class LoyaltiesEarningRulesCreateRequestBodyItemSegment
java.lang.Object
io.voucherify.client.model.LoyaltiesEarningRulesCreateRequestBodyItemSegment
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesEarningRulesCreateRequestBodyItemSegment
extends Object
Contains the ID of a customer segment. **Required** for the `customer.segment.entered` option in `event`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesEarningRulesCreateRequestBodyItemSegment given an JSON stringgetId()Contains a unique identifier of a customer segment.inthashCode()voidtoJson()Convert an instance of LoyaltiesEarningRulesCreateRequestBodyItemSegment to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesEarningRulesCreateRequestBodyItemSegment
public LoyaltiesEarningRulesCreateRequestBodyItemSegment()
-
-
Method Details
-
id
-
getId
Contains a unique identifier of a customer segment. Assigned by the Voucherify API.- Returns:
- id
-
setId
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesEarningRulesCreateRequestBodyItemSegment fromJson(String jsonString) throws IOException Create an instance of LoyaltiesEarningRulesCreateRequestBodyItemSegment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesEarningRulesCreateRequestBodyItemSegment
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesEarningRulesCreateRequestBodyItemSegment
-
toJson
Convert an instance of LoyaltiesEarningRulesCreateRequestBodyItemSegment to an JSON string- Returns:
- JSON string
-