Record Class UpdateTeamRequest
java.lang.Object
java.lang.Record
inha.git.team.api.controller.dto.request.UpdateTeamRequest
public record UpdateTeamRequest(@NotNull String name, @NotNull @Min(value=1L,message="\ud300 \uba64\ubc84 \uc218\ub294 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @Max(value=128L,message="\ud300 \uba64\ubc84 \uc218\ub294 128 \uc774\ud558\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694.") Integer maxMember)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateTeamRequest
(@NotNull String name, @NotNull @Min(value=1L,message="\ud300 \uba64\ubc84 \uc218\ub294 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @Max(value=128L,message="\ud300 \uba64\ubc84 \uc218\ub294 128 \uc774\ud558\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694.") Integer maxMember) Creates an instance of aUpdateTeamRequest
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull @Min(value=1L,message="\ud300 \uba64\ubc84 \uc218\ub294 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @Max(value=128L,message="\ud300 \uba64\ubc84 \uc218\ub294 128 \uc774\ud558\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694.") Integer
Returns the value of themaxMember
record component.@NotNull String
name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
UpdateTeamRequest
public UpdateTeamRequest(@NotNull @NotNull String name, @NotNull @Min(value=1L,message="\ud300 \uba64\ubc84 \uc218\ub294 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @Max(value=128L,message="\ud300 \uba64\ubc84 \uc218\ub294 128 \uc774\ud558\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694.") @NotNull @Min(value=1L,message="\ud300 \uba64\ubc84 \uc218\ub294 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @Max(value=128L,message="\ud300 \uba64\ubc84 \uc218\ub294 128 \uc774\ud558\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694.") Integer maxMember) Creates an instance of aUpdateTeamRequest
record class.- Parameters:
name
- the value for thename
record componentmaxMember
- the value for themaxMember
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
maxMember
@NotNull @Min(value=1L, message="\ud300 \uba64\ubc84 \uc218\ub294 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @Max(value=128L, message="\ud300 \uba64\ubc84 \uc218\ub294 128 \uc774\ud558\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694.") public @NotNull @Min(value=1L,message="\ud300 \uba64\ubc84 \uc218\ub294 1\uba85 \uc774\uc0c1\uc774\uc5b4\uc57c \ud569\ub2c8\ub2e4.") @Max(value=128L,message="\ud300 \uba64\ubc84 \uc218\ub294 128 \uc774\ud558\ub85c \uc785\ub825\ud574\uc8fc\uc138\uc694.") Integer maxMember()Returns the value of themaxMember
record component.- Returns:
- the value of the
maxMember
record component
-