Class QuotaContextInfo

    • Method Detail

      • contextScope

        public final QuotaContextScope contextScope()

        Specifies whether the quota applies to an Amazon Web Services account, or to a resource.

        If the service returns an enum value that is not available in the current SDK version, contextScope will return QuotaContextScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from contextScopeAsString().

        Returns:
        Specifies whether the quota applies to an Amazon Web Services account, or to a resource.
        See Also:
        QuotaContextScope
      • contextScopeAsString

        public final String contextScopeAsString()

        Specifies whether the quota applies to an Amazon Web Services account, or to a resource.

        If the service returns an enum value that is not available in the current SDK version, contextScope will return QuotaContextScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from contextScopeAsString().

        Returns:
        Specifies whether the quota applies to an Amazon Web Services account, or to a resource.
        See Also:
        QuotaContextScope
      • contextScopeType

        public final String contextScopeType()

        When the ContextScope is RESOURCE, then this specifies the resource type of the specified resource.

        Returns:
        When the ContextScope is RESOURCE, then this specifies the resource type of the specified resource.
      • contextId

        public final String contextId()

        Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.

        Returns:
        Specifies the Amazon Web Services account or resource to which the quota applies. The value in this field depends on the context scope associated with the specified service quota.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)