Class GetApproximateUsageRecordsRequest

    • Method Detail

      • granularity

        public final Granularity granularity()

        How granular you want the data to be. You can enable data at hourly or daily granularity.

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

        Returns:
        How granular you want the data to be. You can enable data at hourly or daily granularity.
        See Also:
        Granularity
      • granularityAsString

        public final String granularityAsString()

        How granular you want the data to be. You can enable data at hourly or daily granularity.

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

        Returns:
        How granular you want the data to be. You can enable data at hourly or daily granularity.
        See Also:
        Granularity
      • hasServices

        public final boolean hasServices()
        For responses, this returns true if the service returned a value for the Services property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • services

        public final List<String> services()

        The service metadata for the service or services you want to query. If not specified, all elements are returned.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasServices() method.

        Returns:
        The service metadata for the service or services you want to query. If not specified, all elements are returned.
      • approximationDimensionAsString

        public final String approximationDimensionAsString()

        The service to evaluate for the usage records. You can choose resource-level data at daily granularity, or hourly granularity with or without resource-level data.

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

        Returns:
        The service to evaluate for the usage records. You can choose resource-level data at daily granularity, or hourly granularity with or without resource-level data.
        See Also:
        ApproximationDimension
      • 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