Class OnUsageUpdatedSubscription

    • Field Detail

      • OPERATION_DOCUMENT

        public static final java.lang.String OPERATION_DOCUMENT
        The minimized GraphQL document being sent to the server to save a few bytes. The un-minimized version is: subscription OnUsageUpdated { usageUpdated { __typename ...EntitlementUsageUpdated } } fragment UsageUpdatedFragment on UsageMeasurementUpdated { customerId resourceId featureId currentUsage nextResetDate } fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration { __typename ... on MonthlyResetPeriodConfig { monthlyAccordingTo } ... on WeeklyResetPeriodConfig { weeklyAccordingTo } } fragment FeatureFragment on EntitlementFeature { __typename featureType meterType featureUnits featureUnitsPlural description displayName refId } fragment EntitlementFragment on Entitlement { __typename isGranted accessDeniedReason customerId resourceId usageLimit hasUnlimitedUsage hasSoftLimit currentUsage requestedUsage entitlementUpdatedAt usageUpdatedAt nextResetDate resetPeriod resetPeriodConfiguration { __typename ...ResetPeriodConfigurationFragment } feature { __typename ...FeatureFragment } } fragment EntitlementUsageUpdated on UsageUpdated { usage { __typename ...UsageUpdatedFragment } entitlement { __typename ...EntitlementFragment } }
        See Also:
        Constant Field Values
    • Constructor Detail

      • OnUsageUpdatedSubscription

        public OnUsageUpdatedSubscription()
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • document

        public java.lang.String document()
        Specified by:
        document in interface com.apollographql.apollo3.api.Operation<OnUsageUpdatedSubscription.Data>
      • serializeVariables

        public void serializeVariables​(com.apollographql.apollo3.api.json.JsonWriter writer,
                                       com.apollographql.apollo3.api.CustomScalarAdapters customScalarAdapters)
                                throws java.io.IOException
        Specified by:
        serializeVariables in interface com.apollographql.apollo3.api.Executable<OnUsageUpdatedSubscription.Data>
        Specified by:
        serializeVariables in interface com.apollographql.apollo3.api.Operation<OnUsageUpdatedSubscription.Data>
        Throws:
        java.io.IOException