Record Class CreateUpdatePortfolioDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.portfolio.CreateUpdatePortfolioDTO
- Record Components:
name- portfolio nameactive- is portfolio activedefaultPortfolio- is default
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdatePortfolioDTO(@NotBlank @Size(min=3,max=75) String name, @NotNull Boolean active, @NotNull Boolean defaultPortfolio) Creates an instance of aCreateUpdatePortfolioDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Booleanactive()Returns the value of theactiverecord component.@NotNull BooleanReturns the value of thedefaultPortfoliorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank @Size(min=3,max=75) Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateUpdatePortfolioDTO
public CreateUpdatePortfolioDTO(@NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String name, @NotNull @NotNull Boolean active, @NotNull @NotNull Boolean defaultPortfolio) Creates an instance of aCreateUpdatePortfolioDTOrecord class.- Parameters:
name- the value for thenamerecord componentactive- the value for theactiverecord componentdefaultPortfolio- the value for thedefaultPortfoliorecord 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). -
name
-
active
-
defaultPortfolio
Returns the value of thedefaultPortfoliorecord component.- Returns:
- the value of the
defaultPortfoliorecord component
-