Record Class CreateUpdateStrategyDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.strategy.CreateUpdateStrategyDTO
- Record Components:
referenceCode- strategy reference codename- strategy namedescription- optional strategy descriptionenabled- whether the strategy is enabledimplementations- optional strategy implementations. Required on strategy creation.
public record CreateUpdateStrategyDTO(@NotBlank @Size(max=75) String referenceCode, @NotBlank @Size(min=3,max=75) String name, @Size(max=500) String description, Boolean enabled, @Valid List<@NotNull CreateStrategyImplementationDTO> implementations)
extends Record
Request object for creating and updating
Strategy entities.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdateStrategyDTO(@NotBlank @Size(max=75) String referenceCode, @NotBlank @Size(min=3,max=75) String name, @Size(max=500) String description, Boolean enabled, @Valid List<@NotNull CreateStrategyImplementationDTO> implementations) Creates an instance of aCreateUpdateStrategyDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@Size(max=500) StringReturns the value of thedescriptionrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Valid List<@NotNull CreateStrategyImplementationDTO> Returns the value of theimplementationsrecord component.@NotBlank @Size(min=3,max=75) Stringname()Returns the value of thenamerecord component.@NotBlank @Size(max=75) StringReturns the value of thereferenceCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateUpdateStrategyDTO
public CreateUpdateStrategyDTO(@NotBlank @Size(max=75) @NotBlank @Size(max=75) String referenceCode, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String name, @Size(max=500) @Size(max=500) String description, Boolean enabled, @Valid @Valid List<@NotNull CreateStrategyImplementationDTO> implementations) Creates an instance of aCreateUpdateStrategyDTOrecord class.- Parameters:
referenceCode- the value for thereferenceCoderecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentenabled- the value for theenabledrecord componentimplementations- the value for theimplementationsrecord 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). -
referenceCode
Returns the value of thereferenceCoderecord component.- Returns:
- the value of the
referenceCoderecord component
-
name
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
enabled
-
implementations
Returns the value of theimplementationsrecord component.- Returns:
- the value of the
implementationsrecord component
-