Record Class ModelBillingPromo
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ModelBillingPromo
-
Constructor Summary
ConstructorsConstructorDescriptionModelBillingPromo(String id, Double discountPercent, String endsAt, String message) Creates an instance of aModelBillingPromorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediscountPercentrecord component.endsAt()Returns the value of theendsAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelBillingPromo
Creates an instance of aModelBillingPromorecord class.- Parameters:
id- the value for theidrecord componentdiscountPercent- the value for thediscountPercentrecord componentendsAt- the value for theendsAtrecord componentmessage- the value for themessagerecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
discountPercent
Returns the value of thediscountPercentrecord component.- Returns:
- the value of the
discountPercentrecord component
-
endsAt
Returns the value of theendsAtrecord component.- Returns:
- the value of the
endsAtrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-