Interface Subscription.Builder

    • Method Detail

      • source

        Subscription.Builder source​(String source)

        The Region or Availability Zone that's the source for the subscription. For example, us-east-1.

        Parameters:
        source - The Region or Availability Zone that's the source for the subscription. For example, us-east-1.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destination

        Subscription.Builder destination​(String destination)

        The Region or Availability Zone that's the target for the subscription. For example, eu-west-1.

        Parameters:
        destination - The Region or Availability Zone that's the target for the subscription. For example, eu-west-1.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metric

        Subscription.Builder metric​(String metric)

        The metric used for the subscription.

        Parameters:
        metric - The metric used for the subscription.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MetricType, MetricType
      • metric

        Subscription.Builder metric​(MetricType metric)

        The metric used for the subscription.

        Parameters:
        metric - The metric used for the subscription.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MetricType, MetricType
      • statistic

        Subscription.Builder statistic​(String statistic)

        The statistic used for the subscription.

        Parameters:
        statistic - The statistic used for the subscription.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StatisticType, StatisticType
      • statistic

        Subscription.Builder statistic​(StatisticType statistic)

        The statistic used for the subscription.

        Parameters:
        statistic - The statistic used for the subscription.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        StatisticType, StatisticType
      • period

        Subscription.Builder period​(String period)

        The data aggregation time for the subscription.

        Parameters:
        period - The data aggregation time for the subscription.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PeriodType, PeriodType
      • period

        Subscription.Builder period​(PeriodType period)

        The data aggregation time for the subscription.

        Parameters:
        period - The data aggregation time for the subscription.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        PeriodType, PeriodType