public class DescribeAlarmsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Retrieves alarms with the specified names. If no name is specified, all alarms for the user are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.
Constructor and Description |
---|
DescribeAlarmsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionPrefix()
The action name prefix.
|
java.lang.String |
getAlarmNamePrefix()
The alarm name prefix.
|
java.util.List<java.lang.String> |
getAlarmNames()
A list of alarm names to retrieve information for.
|
java.lang.Integer |
getMaxRecords()
The maximum number of alarm descriptions to retrieve.
|
java.lang.String |
getNextToken()
The token returned by a previous call to indicate that there is more data
available.
|
java.lang.String |
getStateValue()
The state value to be used in matching alarms.
|
int |
hashCode() |
void |
setActionPrefix(java.lang.String actionPrefix)
The action name prefix.
|
void |
setAlarmNamePrefix(java.lang.String alarmNamePrefix)
The alarm name prefix.
|
void |
setAlarmNames(java.util.Collection<java.lang.String> alarmNames)
A list of alarm names to retrieve information for.
|
void |
setMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm descriptions to retrieve.
|
void |
setNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
void |
setStateValue(StateValue stateValue)
The state value to be used in matching alarms.
|
void |
setStateValue(java.lang.String stateValue)
The state value to be used in matching alarms.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeAlarmsRequest |
withActionPrefix(java.lang.String actionPrefix)
The action name prefix.
|
DescribeAlarmsRequest |
withAlarmNamePrefix(java.lang.String alarmNamePrefix)
The alarm name prefix.
|
DescribeAlarmsRequest |
withAlarmNames(java.util.Collection<java.lang.String> alarmNames)
A list of alarm names to retrieve information for.
|
DescribeAlarmsRequest |
withAlarmNames(java.lang.String... alarmNames)
A list of alarm names to retrieve information for.
|
DescribeAlarmsRequest |
withMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm descriptions to retrieve.
|
DescribeAlarmsRequest |
withNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data
available.
|
DescribeAlarmsRequest |
withStateValue(StateValue stateValue)
The state value to be used in matching alarms.
|
DescribeAlarmsRequest |
withStateValue(java.lang.String stateValue)
The state value to be used in matching alarms.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<java.lang.String> getAlarmNames()
A list of alarm names to retrieve information for.
A list of alarm names to retrieve information for.
public void setAlarmNames(java.util.Collection<java.lang.String> alarmNames)
A list of alarm names to retrieve information for.
alarmNames
- A list of alarm names to retrieve information for.
public DescribeAlarmsRequest withAlarmNames(java.lang.String... alarmNames)
A list of alarm names to retrieve information for.
Returns a reference to this object so that method calls can be chained together.
alarmNames
- A list of alarm names to retrieve information for.
public DescribeAlarmsRequest withAlarmNames(java.util.Collection<java.lang.String> alarmNames)
A list of alarm names to retrieve information for.
Returns a reference to this object so that method calls can be chained together.
alarmNames
- A list of alarm names to retrieve information for.
public java.lang.String getAlarmNamePrefix()
The alarm name prefix. AlarmNames
cannot be specified if
this parameter is specified.
Constraints:
Length: 1 - 255
The alarm name prefix. AlarmNames
cannot be
specified if this parameter is specified.
public void setAlarmNamePrefix(java.lang.String alarmNamePrefix)
The alarm name prefix. AlarmNames
cannot be specified if
this parameter is specified.
Constraints:
Length: 1 - 255
alarmNamePrefix
-
The alarm name prefix. AlarmNames
cannot be
specified if this parameter is specified.
public DescribeAlarmsRequest withAlarmNamePrefix(java.lang.String alarmNamePrefix)
The alarm name prefix. AlarmNames
cannot be specified if
this parameter is specified.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
alarmNamePrefix
-
The alarm name prefix. AlarmNames
cannot be
specified if this parameter is specified.
public java.lang.String getStateValue()
The state value to be used in matching alarms.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
The state value to be used in matching alarms.
StateValue
public void setStateValue(java.lang.String stateValue)
The state value to be used in matching alarms.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value to be used in matching alarms.
StateValue
public DescribeAlarmsRequest withStateValue(java.lang.String stateValue)
The state value to be used in matching alarms.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value to be used in matching alarms.
StateValue
public void setStateValue(StateValue stateValue)
The state value to be used in matching alarms.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value to be used in matching alarms.
StateValue
public DescribeAlarmsRequest withStateValue(StateValue stateValue)
The state value to be used in matching alarms.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value to be used in matching alarms.
StateValue
public java.lang.String getActionPrefix()
The action name prefix.
Constraints:
Length: 1 - 1024
The action name prefix.
public void setActionPrefix(java.lang.String actionPrefix)
The action name prefix.
Constraints:
Length: 1 - 1024
actionPrefix
- The action name prefix.
public DescribeAlarmsRequest withActionPrefix(java.lang.String actionPrefix)
The action name prefix.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
actionPrefix
- The action name prefix.
public java.lang.Integer getMaxRecords()
The maximum number of alarm descriptions to retrieve.
Constraints:
Range: 1 - 100
The maximum number of alarm descriptions to retrieve.
public void setMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm descriptions to retrieve.
Constraints:
Range: 1 - 100
maxRecords
- The maximum number of alarm descriptions to retrieve.
public DescribeAlarmsRequest withMaxRecords(java.lang.Integer maxRecords)
The maximum number of alarm descriptions to retrieve.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 100
maxRecords
- The maximum number of alarm descriptions to retrieve.
public java.lang.String getNextToken()
The token returned by a previous call to indicate that there is more data available.
Constraints:
Length: 0 - 1024
The token returned by a previous call to indicate that there is more data available.
public void setNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data available.
Constraints:
Length: 0 - 1024
nextToken
- The token returned by a previous call to indicate that there is more data available.
public DescribeAlarmsRequest withNextToken(java.lang.String nextToken)
The token returned by a previous call to indicate that there is more data available.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
nextToken
- The token returned by a previous call to indicate that there is more data available.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.