Record Class QuotaWarningProjection
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.QuotaWarningProjection
@Generated("copilot-sdk-codegen")
public record QuotaWarningProjection(String warningType, String message, String url)
extends Record
A pending session quota warning, consumed once by takeWarnings.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionQuotaWarningProjection(String warningType, String message, String url) Creates an instance of aQuotaWarningProjectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.Returns the value of thewarningTyperecord component.
-
Constructor Details
-
QuotaWarningProjection
Creates an instance of aQuotaWarningProjectionrecord class.- Parameters:
warningType- the value for thewarningTyperecord componentmessage- the value for themessagerecord componenturl- the value for theurlrecord 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). -
warningType
Returns the value of thewarningTyperecord component.- Returns:
- the value of the
warningTyperecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-