Class OperationMetricSpecification


  • public final class OperationMetricSpecification
    extends Object
    Details about an operation related to metrics.
    • Constructor Detail

      • OperationMetricSpecification

        public OperationMetricSpecification()
    • Method Detail

      • name

        public String name()
        Get the name property: The name of the metric.
        Returns:
        the name value.
      • withName

        public OperationMetricSpecification withName​(String name)
        Set the name property: The name of the metric.
        Parameters:
        name - the name value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • displayName

        public String displayName()
        Get the displayName property: Localized display name of the metric.
        Returns:
        the displayName value.
      • withDisplayName

        public OperationMetricSpecification withDisplayName​(String displayName)
        Set the displayName property: Localized display name of the metric.
        Parameters:
        displayName - the displayName value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • displayDescription

        public String displayDescription()
        Get the displayDescription property: The description of the metric.
        Returns:
        the displayDescription value.
      • withDisplayDescription

        public OperationMetricSpecification withDisplayDescription​(String displayDescription)
        Set the displayDescription property: The description of the metric.
        Parameters:
        displayDescription - the displayDescription value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • unit

        public String unit()
        Get the unit property: The unit that the metric is measured in.
        Returns:
        the unit value.
      • withUnit

        public OperationMetricSpecification withUnit​(String unit)
        Set the unit property: The unit that the metric is measured in.
        Parameters:
        unit - the unit value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • aggregationType

        public String aggregationType()
        Get the aggregationType property: The type of metric aggregation.
        Returns:
        the aggregationType value.
      • withAggregationType

        public OperationMetricSpecification withAggregationType​(String aggregationType)
        Set the aggregationType property: The type of metric aggregation.
        Parameters:
        aggregationType - the aggregationType value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • enableRegionalMdmAccount

        public String enableRegionalMdmAccount()
        Get the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.
        Returns:
        the enableRegionalMdmAccount value.
      • withEnableRegionalMdmAccount

        public OperationMetricSpecification withEnableRegionalMdmAccount​(String enableRegionalMdmAccount)
        Set the enableRegionalMdmAccount property: Whether or not the service is using regional MDM accounts.
        Parameters:
        enableRegionalMdmAccount - the enableRegionalMdmAccount value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • sourceMdmAccount

        public String sourceMdmAccount()
        Get the sourceMdmAccount property: The name of the MDM account.
        Returns:
        the sourceMdmAccount value.
      • withSourceMdmAccount

        public OperationMetricSpecification withSourceMdmAccount​(String sourceMdmAccount)
        Set the sourceMdmAccount property: The name of the MDM account.
        Parameters:
        sourceMdmAccount - the sourceMdmAccount value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • sourceMdmNamespace

        public String sourceMdmNamespace()
        Get the sourceMdmNamespace property: The name of the MDM namespace.
        Returns:
        the sourceMdmNamespace value.
      • withSourceMdmNamespace

        public OperationMetricSpecification withSourceMdmNamespace​(String sourceMdmNamespace)
        Set the sourceMdmNamespace property: The name of the MDM namespace.
        Parameters:
        sourceMdmNamespace - the sourceMdmNamespace value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • availabilities

        public List<OperationMetricAvailability> availabilities()
        Get the availabilities property: Defines how often data for metrics becomes available.
        Returns:
        the availabilities value.
      • withAvailabilities

        public OperationMetricSpecification withAvailabilities​(List<OperationMetricAvailability> availabilities)
        Set the availabilities property: Defines how often data for metrics becomes available.
        Parameters:
        availabilities - the availabilities value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • dimensions

        public List<OperationMetricDimension> dimensions()
        Get the dimensions property: Defines the metric dimension.
        Returns:
        the dimensions value.
      • withDimensions

        public OperationMetricSpecification withDimensions​(List<OperationMetricDimension> dimensions)
        Set the dimensions property: Defines the metric dimension.
        Parameters:
        dimensions - the dimensions value to set.
        Returns:
        the OperationMetricSpecification object itself.
      • validate

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