|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudwatch.model.DescribeAlarmsRequest
public class DescribeAlarmsRequest
Container for the parameters to the DescribeAlarms operation
.
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.
AmazonCloudWatch.describeAlarms(DescribeAlarmsRequest)
Constructor Summary | |
---|---|
DescribeAlarmsRequest()
|
Method Summary | |
---|---|
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. |
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(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(java.lang.String stateValue)
The state value to be used in matching alarms. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DescribeAlarmsRequest()
Method Detail |
---|
public java.util.List<java.lang.String> getAlarmNames()
Constraints:
Length: 0 - 100
public void setAlarmNames(java.util.Collection<java.lang.String> alarmNames)
Constraints:
Length: 0 - 100
alarmNames
- A list of alarm names to retrieve information for.public DescribeAlarmsRequest withAlarmNames(java.lang.String... alarmNames)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
alarmNames
- A list of alarm names to retrieve information for.
public DescribeAlarmsRequest withAlarmNames(java.util.Collection<java.lang.String> alarmNames)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
alarmNames
- A list of alarm names to retrieve information for.
public java.lang.String getAlarmNamePrefix()
AlarmNames
cannot be specified if
this parameter is specified.
Constraints:
Length: 1 - 255
AlarmNames
cannot be specified if
this parameter is specified.public void setAlarmNamePrefix(java.lang.String alarmNamePrefix)
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)
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()
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
StateValue
public void setStateValue(java.lang.String stateValue)
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)
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()
Constraints:
Length: 1 - 1024
public void setActionPrefix(java.lang.String actionPrefix)
Constraints:
Length: 1 - 1024
actionPrefix
- The action name prefix.public DescribeAlarmsRequest withActionPrefix(java.lang.String actionPrefix)
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()
Constraints:
Range: 1 - 100
public void setMaxRecords(java.lang.Integer maxRecords)
Constraints:
Range: 1 - 100
maxRecords
- The maximum number of alarm descriptions to retrieve.public DescribeAlarmsRequest withMaxRecords(java.lang.Integer maxRecords)
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()
public void setNextToken(java.lang.String nextToken)
nextToken
- The token returned by a previous call to indicate that there is more
data available.public DescribeAlarmsRequest withNextToken(java.lang.String nextToken)
Returns a reference to this object so that method calls can be chained together.
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()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |