Class ResponseInner


  • public final class ResponseInner
    extends Object
    The response to a metrics query.
    • Constructor Detail

      • ResponseInner

        public ResponseInner()
    • Method Detail

      • cost

        public Integer cost()
        Get the cost property: The integer value representing the relative cost of the query.
        Returns:
        the cost value.
      • withCost

        public ResponseInner withCost​(Integer cost)
        Set the cost property: The integer value representing the relative cost of the query.
        Parameters:
        cost - the cost value to set.
        Returns:
        the ResponseInner object itself.
      • timespan

        public String timespan()
        Get the timespan property: The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
        Returns:
        the timespan value.
      • withTimespan

        public ResponseInner withTimespan​(String timespan)
        Set the timespan property: The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.
        Parameters:
        timespan - the timespan value to set.
        Returns:
        the ResponseInner object itself.
      • interval

        public Duration interval()
        Get the interval property: The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
        Returns:
        the interval value.
      • withInterval

        public ResponseInner withInterval​(Duration interval)
        Set the interval property: The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
        Parameters:
        interval - the interval value to set.
        Returns:
        the ResponseInner object itself.
      • namespace

        public String namespace()
        Get the namespace property: The namespace of the metrics being queried.
        Returns:
        the namespace value.
      • withNamespace

        public ResponseInner withNamespace​(String namespace)
        Set the namespace property: The namespace of the metrics being queried.
        Parameters:
        namespace - the namespace value to set.
        Returns:
        the ResponseInner object itself.
      • resourceRegion

        public String resourceRegion()
        Get the resourceRegion property: The region of the resource being queried for metrics.
        Returns:
        the resourceRegion value.
      • withResourceRegion

        public ResponseInner withResourceRegion​(String resourceRegion)
        Set the resourceRegion property: The region of the resource being queried for metrics.
        Parameters:
        resourceRegion - the resourceRegion value to set.
        Returns:
        the ResponseInner object itself.
      • value

        public List<MetricInner> value()
        Get the value property: the value of the collection.
        Returns:
        the value value.
      • withValue

        public ResponseInner withValue​(List<MetricInner> value)
        Set the value property: the value of the collection.
        Parameters:
        value - the value value to set.
        Returns:
        the ResponseInner object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.