Record Class IssueFeatureRequestDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.system.IssueFeatureRequestDTO
- Record Components:
email- email of the reportertitleOfFeatureOrIssue- title of issue or requestdescription- description of issue or requestseverity- severity, if less than 1 this is considered a feature request
public record IssueFeatureRequestDTO(@NotBlank @Email @Size(max=255) String email, @NotBlank @Size(max=255) String titleOfFeatureOrIssue, @NotBlank String description, @NotNull @Min(0L) @Max(4L) Integer severity)
extends Record
Request object for requesting a feature or notifying of an issue.
- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionIssueFeatureRequestDTO(@NotBlank @Email @Size(max=255) String email, @NotBlank @Size(max=255) String titleOfFeatureOrIssue, @NotBlank String description, @NotNull @Min(0L) @Max(4L) Integer severity) Creates an instance of aIssueFeatureRequestDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank StringReturns the value of thedescriptionrecord component.@NotBlank @Email @Size(max=255) Stringemail()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull @Min(0L) @Max(4L) Integerseverity()Returns the value of theseverityrecord component.@NotBlank @Size(max=255) StringReturns the value of thetitleOfFeatureOrIssuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IssueFeatureRequestDTO
public IssueFeatureRequestDTO(@NotBlank @Email @Size(max=255) @NotBlank @Email @Size(max=255) String email, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String titleOfFeatureOrIssue, @NotBlank @NotBlank String description, @NotNull @Min(0L) @Max(4L) @NotNull @Min(0L) @Max(4L) Integer severity) Creates an instance of aIssueFeatureRequestDTOrecord class.- Parameters:
email- the value for theemailrecord componenttitleOfFeatureOrIssue- the value for thetitleOfFeatureOrIssuerecord componentdescription- the value for thedescriptionrecord componentseverity- the value for theseverityrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
email
-
titleOfFeatureOrIssue
Returns the value of thetitleOfFeatureOrIssuerecord component.- Returns:
- the value of the
titleOfFeatureOrIssuerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
severity
-