|
|||||||
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 | |
---|---|
boolean |
equals(Object obj)
|
String |
getActionPrefix()
The action name prefix. |
String |
getAlarmNamePrefix()
The alarm name prefix. |
List<String> |
getAlarmNames()
A list of alarm names to retrieve information for. |
Integer |
getMaxRecords()
The maximum number of alarm descriptions to retrieve. |
String |
getNextToken()
The token returned by a previous call to indicate that there is more data available. |
String |
getStateValue()
The state value to be used in matching alarms. |
int |
hashCode()
|
void |
setActionPrefix(String actionPrefix)
The action name prefix. |
void |
setAlarmNamePrefix(String alarmNamePrefix)
The alarm name prefix. |
void |
setAlarmNames(Collection<String> alarmNames)
A list of alarm names to retrieve information for. |
void |
setMaxRecords(Integer maxRecords)
The maximum number of alarm descriptions to retrieve. |
void |
setNextToken(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(String stateValue)
The state value to be used in matching alarms. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
DescribeAlarmsRequest |
withActionPrefix(String actionPrefix)
The action name prefix. |
DescribeAlarmsRequest |
withAlarmNamePrefix(String alarmNamePrefix)
The alarm name prefix. |
DescribeAlarmsRequest |
withAlarmNames(Collection<String> alarmNames)
A list of alarm names to retrieve information for. |
DescribeAlarmsRequest |
withAlarmNames(String... alarmNames)
A list of alarm names to retrieve information for. |
DescribeAlarmsRequest |
withMaxRecords(Integer maxRecords)
The maximum number of alarm descriptions to retrieve. |
DescribeAlarmsRequest |
withNextToken(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(String stateValue)
The state value to be used in matching alarms. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DescribeAlarmsRequest()
Method Detail |
---|
public List<String> getAlarmNames()
Constraints:
Length: 0 - 100
public void setAlarmNames(Collection<String> alarmNames)
Constraints:
Length: 0 - 100
alarmNames
- A list of alarm names to retrieve information for.public DescribeAlarmsRequest withAlarmNames(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(Collection<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 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(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(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 String getStateValue()
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
StateValue
public void setStateValue(String stateValue)
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value to be used in matching alarms.StateValue
public DescribeAlarmsRequest withStateValue(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 void setStateValue(StateValue stateValue)
Constraints:
Allowed Values: OK, ALARM, INSUFFICIENT_DATA
stateValue
- The state value to be used in matching alarms.StateValue
public DescribeAlarmsRequest withStateValue(StateValue 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 String getActionPrefix()
Constraints:
Length: 1 - 1024
public void setActionPrefix(String actionPrefix)
Constraints:
Length: 1 - 1024
actionPrefix
- The action name prefix.public DescribeAlarmsRequest withActionPrefix(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 Integer getMaxRecords()
Constraints:
Range: 1 - 100
public void setMaxRecords(Integer maxRecords)
Constraints:
Range: 1 - 100
maxRecords
- The maximum number of alarm descriptions to retrieve.public DescribeAlarmsRequest withMaxRecords(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 String getNextToken()
public void setNextToken(String nextToken)
nextToken
- The token returned by a previous call to indicate that there is more
data available.public DescribeAlarmsRequest withNextToken(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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |