Record Class CreateUpdateStrategyImplementationDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.strategy.CreateUpdateStrategyImplementationDTO
- Record Components:
strategyUid- owning strategy uidimplementationType- implementation type codefileReference- repo-relative implementation file referenceactive- whether the implementation is active
public record CreateUpdateStrategyImplementationDTO(@NotBlank @Size(max=255) String strategyUid, @NotBlank @Size(max=255) String implementationType, @NotBlank @Size(max=255) String fileReference, Boolean active)
extends Record
Request object for creating and updating
StrategyImplementation entities.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdateStrategyImplementationDTO(@NotBlank @Size(max=255) String strategyUid, @NotBlank @Size(max=255) String implementationType, @NotBlank @Size(max=255) String fileReference, Boolean active) Creates an instance of aCreateUpdateStrategyImplementationDTOrecord 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.@NotBlank @Size(max=255) StringReturns the value of thestrategyUidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateUpdateStrategyImplementationDTO
public CreateUpdateStrategyImplementationDTO(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String strategyUid, @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 aCreateUpdateStrategyImplementationDTOrecord class.- Parameters:
strategyUid- the value for thestrategyUidrecord componentimplementationType- 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). -
strategyUid
Returns the value of thestrategyUidrecord component.- Returns:
- the value of the
strategyUidrecord component
-
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
-