Record Class SessionQuotaGetResult

java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionQuotaGetResult

@CopilotExperimental @Generated("copilot-sdk-codegen") public record SessionQuotaGetResult(Map<String, SessionQuotaSnapshot> snapshots, List<ProviderQuotaState> providerQuotas, Boolean isFreeUser, Boolean isTbbUser, SessionQuotaPlanTier planTier, Boolean premiumRequestsBillable, Boolean modelCostColumnVisible, Boolean delegateAvailable, Boolean canSignupForCopilotFree, Boolean dynamicWorkflowsEnabled, Boolean dynamicWorkflowsUiVisible, String upgradeUrl, SessionQuotaDelegateWarning delegateWarning) extends Record
The incumbent session-owned quota and account projection.
Since:
1.0.0
  • Constructor Details

    • SessionQuotaGetResult

      public SessionQuotaGetResult(Map<String, SessionQuotaSnapshot> snapshots, List<ProviderQuotaState> providerQuotas, Boolean isFreeUser, Boolean isTbbUser, SessionQuotaPlanTier planTier, Boolean premiumRequestsBillable, Boolean modelCostColumnVisible, Boolean delegateAvailable, Boolean canSignupForCopilotFree, Boolean dynamicWorkflowsEnabled, Boolean dynamicWorkflowsUiVisible, String upgradeUrl, SessionQuotaDelegateWarning delegateWarning)
      Creates an instance of a SessionQuotaGetResult record class.
      Parameters:
      snapshots - the value for the snapshots record component
      providerQuotas - the value for the providerQuotas record component
      isFreeUser - the value for the isFreeUser record component
      isTbbUser - the value for the isTbbUser record component
      planTier - the value for the planTier record component
      premiumRequestsBillable - the value for the premiumRequestsBillable record component
      modelCostColumnVisible - the value for the modelCostColumnVisible record component
      delegateAvailable - the value for the delegateAvailable record component
      canSignupForCopilotFree - the value for the canSignupForCopilotFree record component
      dynamicWorkflowsEnabled - the value for the dynamicWorkflowsEnabled record component
      dynamicWorkflowsUiVisible - the value for the dynamicWorkflowsUiVisible record component
      upgradeUrl - the value for the upgradeUrl record component
      delegateWarning - the value for the delegateWarning record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • snapshots

      public Map<String, SessionQuotaSnapshot> snapshots()
      Returns the value of the snapshots record component.
      Returns:
      the value of the snapshots record component
    • providerQuotas

      public List<ProviderQuotaState> providerQuotas()
      Returns the value of the providerQuotas record component.
      Returns:
      the value of the providerQuotas record component
    • isFreeUser

      public Boolean isFreeUser()
      Returns the value of the isFreeUser record component.
      Returns:
      the value of the isFreeUser record component
    • isTbbUser

      public Boolean isTbbUser()
      Returns the value of the isTbbUser record component.
      Returns:
      the value of the isTbbUser record component
    • planTier

      public SessionQuotaPlanTier planTier()
      Returns the value of the planTier record component.
      Returns:
      the value of the planTier record component
    • premiumRequestsBillable

      public Boolean premiumRequestsBillable()
      Returns the value of the premiumRequestsBillable record component.
      Returns:
      the value of the premiumRequestsBillable record component
    • modelCostColumnVisible

      public Boolean modelCostColumnVisible()
      Returns the value of the modelCostColumnVisible record component.
      Returns:
      the value of the modelCostColumnVisible record component
    • delegateAvailable

      public Boolean delegateAvailable()
      Returns the value of the delegateAvailable record component.
      Returns:
      the value of the delegateAvailable record component
    • canSignupForCopilotFree

      public Boolean canSignupForCopilotFree()
      Returns the value of the canSignupForCopilotFree record component.
      Returns:
      the value of the canSignupForCopilotFree record component
    • dynamicWorkflowsEnabled

      public Boolean dynamicWorkflowsEnabled()
      Returns the value of the dynamicWorkflowsEnabled record component.
      Returns:
      the value of the dynamicWorkflowsEnabled record component
    • dynamicWorkflowsUiVisible

      public Boolean dynamicWorkflowsUiVisible()
      Returns the value of the dynamicWorkflowsUiVisible record component.
      Returns:
      the value of the dynamicWorkflowsUiVisible record component
    • upgradeUrl

      public String upgradeUrl()
      Returns the value of the upgradeUrl record component.
      Returns:
      the value of the upgradeUrl record component
    • delegateWarning

      public SessionQuotaDelegateWarning delegateWarning()
      Returns the value of the delegateWarning record component.
      Returns:
      the value of the delegateWarning record component