Interface DescribeAlarmHistoryRequest.Builder

    • Method Detail

      • alarmName

        DescribeAlarmHistoryRequest.Builder alarmName​(String alarmName)

        The name of the alarm.

        Parameters:
        alarmName - The name of the alarm.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alarmTypesWithStrings

        DescribeAlarmHistoryRequest.Builder alarmTypesWithStrings​(Collection<String> alarmTypes)

        Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.

        Parameters:
        alarmTypes - Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alarmTypesWithStrings

        DescribeAlarmHistoryRequest.Builder alarmTypesWithStrings​(String... alarmTypes)

        Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.

        Parameters:
        alarmTypes - Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alarmTypes

        DescribeAlarmHistoryRequest.Builder alarmTypes​(Collection<AlarmType> alarmTypes)

        Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.

        Parameters:
        alarmTypes - Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alarmTypes

        DescribeAlarmHistoryRequest.Builder alarmTypes​(AlarmType... alarmTypes)

        Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.

        Parameters:
        alarmTypes - Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startDate

        DescribeAlarmHistoryRequest.Builder startDate​(Instant startDate)

        The starting date to retrieve alarm history.

        Parameters:
        startDate - The starting date to retrieve alarm history.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endDate

        DescribeAlarmHistoryRequest.Builder endDate​(Instant endDate)

        The ending date to retrieve alarm history.

        Parameters:
        endDate - The ending date to retrieve alarm history.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maxRecords

        DescribeAlarmHistoryRequest.Builder maxRecords​(Integer maxRecords)

        The maximum number of alarm history records to retrieve.

        Parameters:
        maxRecords - The maximum number of alarm history records to retrieve.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        DescribeAlarmHistoryRequest.Builder nextToken​(String nextToken)

        The token returned by a previous call to indicate that there is more data available.

        Parameters:
        nextToken - The token returned by a previous call to indicate that there is more data available.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • scanBy

        DescribeAlarmHistoryRequest.Builder scanBy​(String scanBy)

        Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest event history returned first, and specify TimestampAscending to have the oldest history returned first.

        Parameters:
        scanBy - Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest event history returned first, and specify TimestampAscending to have the oldest history returned first.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ScanBy, ScanBy
      • scanBy

        DescribeAlarmHistoryRequest.Builder scanBy​(ScanBy scanBy)

        Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest event history returned first, and specify TimestampAscending to have the oldest history returned first.

        Parameters:
        scanBy - Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest event history returned first, and specify TimestampAscending to have the oldest history returned first.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ScanBy, ScanBy