Record Class CreateStrategyImplementationDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.strategy.CreateStrategyImplementationDTO
- Record Components:
implementationType- implementation type codefileReference- repo-relative implementation file referenceactive- whether the implementation is active
public record CreateStrategyImplementationDTO(@NotBlank @Size(max=255) String implementationType, @NotBlank @Size(max=255) String fileReference, Boolean active)
extends Record
Request object for creating initial
StrategyImplementation entities alongside a strategy.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateStrategyImplementationDTO(@NotBlank @Size(max=255) String implementationType, @NotBlank @Size(max=255) String fileReference, Boolean active) Creates an instance of aCreateStrategyImplementationDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactive()Returns the value of theactiverecord component.final booleanIndicates whether some other object is "equal to" this one.@NotBlank @Size(max=255) StringReturns the value of thefileReferencerecord component.final inthashCode()Returns a hash code value for this object.@NotBlank @Size(max=255) StringReturns the value of theimplementationTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateStrategyImplementationDTO
public CreateStrategyImplementationDTO(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String implementationType, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String fileReference, Boolean active) Creates an instance of aCreateStrategyImplementationDTOrecord class.- Parameters:
implementationType- the value for theimplementationTyperecord componentfileReference- the value for thefileReferencerecord componentactive- the value for theactiverecord 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). -
implementationType
Returns the value of theimplementationTyperecord component.- Returns:
- the value of the
implementationTyperecord component
-
fileReference
Returns the value of thefileReferencerecord component.- Returns:
- the value of the
fileReferencerecord component
-
active
-