Record Class CreateUpdateAccountDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.CreateUpdateAccountDTO
- Record Components:
active- is account activebalance- account balancename- account namenumber- account numbercurrency- account currencytype- account typebroker- account brokertradePlatform- account trade platformisDefault- is default accountisLegacy- is legacy accountaccountOpenTime- account open timeaccountCloseTime- account close timestrategyUid- optional assigned strategy uid
public record CreateUpdateAccountDTO(@NotNull Boolean active, @NotNull @PositiveOrZero @DecimalMax("999999999") Double balance, @NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=75) String number, @NotBlank @Size(max=255) String currency, @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) String broker, @NotBlank @Size(max=255) String tradePlatform, @NotNull Boolean isDefault, @NotNull Boolean isLegacy, @Size(max=255) String accountOpenTime, @Size(max=255) String accountCloseTime, @Size(max=255) String strategyUid)
extends Record
Request object for creating and updating
Accounts.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdateAccountDTO(@NotNull Boolean active, @NotNull @PositiveOrZero @DecimalMax("999999999") Double balance, @NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=75) String number, @NotBlank @Size(max=255) String currency, @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) String broker, @NotBlank @Size(max=255) String tradePlatform, @NotNull Boolean isDefault, @NotNull Boolean isLegacy, @Size(max=255) String accountOpenTime, @Size(max=255) String accountCloseTime, @Size(max=255) String strategyUid) Creates an instance of aCreateUpdateAccountDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@Size(max=255) StringReturns the value of theaccountCloseTimerecord component.@Size(max=255) StringReturns the value of theaccountOpenTimerecord component.@NotNull Booleanactive()Returns the value of theactiverecord component.@NotNull @PositiveOrZero @DecimalMax("999999999") Doublebalance()Returns the value of thebalancerecord component.@NotBlank @Size(max=255) Stringbroker()Returns the value of thebrokerrecord component.@NotBlank @Size(max=255) Stringcurrency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull BooleanReturns the value of theisDefaultrecord component.@NotNull BooleanisLegacy()Returns the value of theisLegacyrecord component.@NotBlank @Size(min=3,max=75) Stringname()Returns the value of thenamerecord component.@NotBlank @Size(max=75) Stringnumber()Returns the value of thenumberrecord component.@Size(max=255) StringReturns the value of thestrategyUidrecord component.final StringtoString()Returns a string representation of this record class.@NotBlank @Size(max=255) StringReturns the value of thetradePlatformrecord component.@NotBlank @Size(max=255) Stringtype()Returns the value of thetyperecord component.
-
Constructor Details
-
CreateUpdateAccountDTO
public CreateUpdateAccountDTO(@NotNull @NotNull Boolean active, @NotNull @PositiveOrZero @DecimalMax("999999999") @NotNull @PositiveOrZero @DecimalMax("999999999") Double balance, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=75) @NotBlank @Size(max=75) String number, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String currency, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String broker, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String tradePlatform, @NotNull @NotNull Boolean isDefault, @NotNull @NotNull Boolean isLegacy, @Size(max=255) @Size(max=255) String accountOpenTime, @Size(max=255) @Size(max=255) String accountCloseTime, @Size(max=255) @Size(max=255) String strategyUid) Creates an instance of aCreateUpdateAccountDTOrecord class.- Parameters:
active- the value for theactiverecord componentbalance- the value for thebalancerecord componentname- the value for thenamerecord componentnumber- the value for thenumberrecord componentcurrency- the value for thecurrencyrecord componenttype- the value for thetyperecord componentbroker- the value for thebrokerrecord componenttradePlatform- the value for thetradePlatformrecord componentisDefault- the value for theisDefaultrecord componentisLegacy- the value for theisLegacyrecord componentaccountOpenTime- the value for theaccountOpenTimerecord componentaccountCloseTime- the value for theaccountCloseTimerecord componentstrategyUid- the value for thestrategyUidrecord 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). -
active
-
balance
-
name
-
number
-
currency
-
type
-
broker
-
tradePlatform
Returns the value of thetradePlatformrecord component.- Returns:
- the value of the
tradePlatformrecord component
-
isDefault
-
isLegacy
-
accountOpenTime
Returns the value of theaccountOpenTimerecord component.- Returns:
- the value of the
accountOpenTimerecord component
-
accountCloseTime
Returns the value of theaccountCloseTimerecord component.- Returns:
- the value of the
accountCloseTimerecord component
-
strategyUid
Returns the value of thestrategyUidrecord component.- Returns:
- the value of the
strategyUidrecord component
-