Package io.voucherify.client.model
Class ValidationRuleAssignment
java.lang.Object
io.voucherify.client.model.ValidationRuleAssignment
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidationRuleAssignment
extends Object
This is an object representing a validation rule assignment.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the ID.static enumThe type of resource to which the validation rule was assigned. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic ValidationRuleAssignmentCreate an instance of ValidationRuleAssignment given an JSON stringTimestamp representing the date and time when the validation rule assignment was created.getId()Validation rule assignment ID.The type of the object represented by the ID.The resource ID to which the validation rule was assigned.The type of resource to which the validation rule was assigned.Validation rule ID.inthashCode()relatedObjectId(String relatedObjectId) relatedObjectType(ValidationRuleAssignment.RelatedObjectTypeEnum relatedObjectType) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetRelatedObjectId(String relatedObjectId) voidsetRelatedObjectType(ValidationRuleAssignment.RelatedObjectTypeEnum relatedObjectType) voidtoJson()Convert an instance of ValidationRuleAssignment to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_RULE_ID
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT_ID
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT_TYPE
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ValidationRuleAssignment
public ValidationRuleAssignment()
-
-
Method Details
-
id
-
getId
Validation rule assignment ID.- Returns:
- id
-
setId
-
ruleId
-
getRuleId
Validation rule ID.- Returns:
- ruleId
-
setRuleId
-
getRelatedObjectId
The resource ID to which the validation rule was assigned.- Returns:
- relatedObjectId
-
setRelatedObjectId
-
getRelatedObjectType
The type of resource to which the validation rule was assigned.- Returns:
- relatedObjectType
-
setRelatedObjectType
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the validation rule assignment was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
_object
-
getObject
The type of the object represented by the ID.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ValidationRuleAssignment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationRuleAssignment
- Throws:
IOException- if the JSON string is invalid with respect to ValidationRuleAssignment
-
toJson
Convert an instance of ValidationRuleAssignment to an JSON string- Returns:
- JSON string
-