Package io.voucherify.client.model
Class ValidationRulesAssignmentsCreateResponseBody
java.lang.Object
io.voucherify.client.model.ValidationRulesAssignmentsCreateResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidationRulesAssignmentsCreateResponseBody
extends Object
Response body for **POST** `v1/validation-rules/{validationRuleId}/assignments`.
-
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) booleanCreate an instance of ValidationRulesAssignmentsCreateResponseBody 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(ValidationRulesAssignmentsCreateResponseBody.RelatedObjectTypeEnum relatedObjectType) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetRelatedObjectId(String relatedObjectId) voidsetRelatedObjectType(ValidationRulesAssignmentsCreateResponseBody.RelatedObjectTypeEnum relatedObjectType) voidtoJson()Convert an instance of ValidationRulesAssignmentsCreateResponseBody 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
-
ValidationRulesAssignmentsCreateResponseBody
public ValidationRulesAssignmentsCreateResponseBody()
-
-
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
@Nullable public ValidationRulesAssignmentsCreateResponseBody.RelatedObjectTypeEnum getRelatedObjectType()The type of resource to which the validation rule was assigned.- Returns:
- relatedObjectType
-
setRelatedObjectType
public void setRelatedObjectType(ValidationRulesAssignmentsCreateResponseBody.RelatedObjectTypeEnum relatedObjectType) -
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
public ValidationRulesAssignmentsCreateResponseBody _object(ValidationRulesAssignmentsCreateResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by the ID.- Returns:
- _object
-
setObject
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ValidationRulesAssignmentsCreateResponseBody fromJson(String jsonString) throws IOException Create an instance of ValidationRulesAssignmentsCreateResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidationRulesAssignmentsCreateResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to ValidationRulesAssignmentsCreateResponseBody
-
toJson
Convert an instance of ValidationRulesAssignmentsCreateResponseBody to an JSON string- Returns:
- JSON string
-