@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateAlarmModelRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateAlarmModelRequest() |
Modifier and Type | Method and Description |
---|---|
CreateAlarmModelRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
AlarmCapabilities |
getAlarmCapabilities()
Contains the configuration information of alarm state changes.
|
AlarmEventActions |
getAlarmEventActions()
Contains information about one or more alarm actions.
|
String |
getAlarmModelDescription()
A description that tells you what the alarm model detects.
|
String |
getAlarmModelName()
A unique name that helps you identify the alarm model.
|
AlarmNotification |
getAlarmNotification()
Contains information about one or more notification actions.
|
AlarmRule |
getAlarmRule()
Defines when your alarm is invoked.
|
String |
getKey()
An input attribute used as a key to create an alarm.
|
String |
getRoleArn()
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.
|
Integer |
getSeverity()
A non-negative integer that reflects the severity level of the alarm.
|
List<Tag> |
getTags()
A list of key-value pairs that contain metadata for the alarm model.
|
int |
hashCode() |
void |
setAlarmCapabilities(AlarmCapabilities alarmCapabilities)
Contains the configuration information of alarm state changes.
|
void |
setAlarmEventActions(AlarmEventActions alarmEventActions)
Contains information about one or more alarm actions.
|
void |
setAlarmModelDescription(String alarmModelDescription)
A description that tells you what the alarm model detects.
|
void |
setAlarmModelName(String alarmModelName)
A unique name that helps you identify the alarm model.
|
void |
setAlarmNotification(AlarmNotification alarmNotification)
Contains information about one or more notification actions.
|
void |
setAlarmRule(AlarmRule alarmRule)
Defines when your alarm is invoked.
|
void |
setKey(String key)
An input attribute used as a key to create an alarm.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.
|
void |
setSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs that contain metadata for the alarm model.
|
String |
toString()
Returns a string representation of this object.
|
CreateAlarmModelRequest |
withAlarmCapabilities(AlarmCapabilities alarmCapabilities)
Contains the configuration information of alarm state changes.
|
CreateAlarmModelRequest |
withAlarmEventActions(AlarmEventActions alarmEventActions)
Contains information about one or more alarm actions.
|
CreateAlarmModelRequest |
withAlarmModelDescription(String alarmModelDescription)
A description that tells you what the alarm model detects.
|
CreateAlarmModelRequest |
withAlarmModelName(String alarmModelName)
A unique name that helps you identify the alarm model.
|
CreateAlarmModelRequest |
withAlarmNotification(AlarmNotification alarmNotification)
Contains information about one or more notification actions.
|
CreateAlarmModelRequest |
withAlarmRule(AlarmRule alarmRule)
Defines when your alarm is invoked.
|
CreateAlarmModelRequest |
withKey(String key)
An input attribute used as a key to create an alarm.
|
CreateAlarmModelRequest |
withRoleArn(String roleArn)
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.
|
CreateAlarmModelRequest |
withSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
|
CreateAlarmModelRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs that contain metadata for the alarm model.
|
CreateAlarmModelRequest |
withTags(Tag... tags)
A list of key-value pairs that contain metadata for the alarm model.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAlarmModelName(String alarmModelName)
A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.
alarmModelName
- A unique name that helps you identify the alarm model. You can't change this name after you create the
alarm model.public String getAlarmModelName()
A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.
public CreateAlarmModelRequest withAlarmModelName(String alarmModelName)
A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.
alarmModelName
- A unique name that helps you identify the alarm model. You can't change this name after you create the
alarm model.public void setAlarmModelDescription(String alarmModelDescription)
A description that tells you what the alarm model detects.
alarmModelDescription
- A description that tells you what the alarm model detects.public String getAlarmModelDescription()
A description that tells you what the alarm model detects.
public CreateAlarmModelRequest withAlarmModelDescription(String alarmModelDescription)
A description that tells you what the alarm model detects.
alarmModelDescription
- A description that tells you what the alarm model detects.public void setRoleArn(String roleArn)
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
roleArn
- The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more
information, see Amazon Resource Names
(ARNs) in the AWS General Reference.public String getRoleArn()
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
public CreateAlarmModelRequest withRoleArn(String roleArn)
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.
roleArn
- The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more
information, see Amazon Resource Names
(ARNs) in the AWS General Reference.public List<Tag> getTags()
A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide.
You can create up to 50 tags for one alarm model.
You can create up to 50 tags for one alarm model.
public void setTags(Collection<Tag> tags)
A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide.
You can create up to 50 tags for one alarm model.
tags
- A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm
model. For more information, see Tagging your AWS
IoT Events resources in the AWS IoT Events Developer Guide.
You can create up to 50 tags for one alarm model.
public CreateAlarmModelRequest withTags(Tag... tags)
A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide.
You can create up to 50 tags for one alarm model.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm
model. For more information, see Tagging your AWS
IoT Events resources in the AWS IoT Events Developer Guide.
You can create up to 50 tags for one alarm model.
public CreateAlarmModelRequest withTags(Collection<Tag> tags)
A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide.
You can create up to 50 tags for one alarm model.
tags
- A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm
model. For more information, see Tagging your AWS
IoT Events resources in the AWS IoT Events Developer Guide.
You can create up to 50 tags for one alarm model.
public void setKey(String key)
An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
key
- An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with
this key to the alarm.public String getKey()
An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
public CreateAlarmModelRequest withKey(String key)
An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.
key
- An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with
this key to the alarm.public void setSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
severity
- A non-negative integer that reflects the severity level of the alarm.public Integer getSeverity()
A non-negative integer that reflects the severity level of the alarm.
public CreateAlarmModelRequest withSeverity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
severity
- A non-negative integer that reflects the severity level of the alarm.public void setAlarmRule(AlarmRule alarmRule)
Defines when your alarm is invoked.
alarmRule
- Defines when your alarm is invoked.public AlarmRule getAlarmRule()
Defines when your alarm is invoked.
public CreateAlarmModelRequest withAlarmRule(AlarmRule alarmRule)
Defines when your alarm is invoked.
alarmRule
- Defines when your alarm is invoked.public void setAlarmNotification(AlarmNotification alarmNotification)
Contains information about one or more notification actions.
alarmNotification
- Contains information about one or more notification actions.public AlarmNotification getAlarmNotification()
Contains information about one or more notification actions.
public CreateAlarmModelRequest withAlarmNotification(AlarmNotification alarmNotification)
Contains information about one or more notification actions.
alarmNotification
- Contains information about one or more notification actions.public void setAlarmEventActions(AlarmEventActions alarmEventActions)
Contains information about one or more alarm actions.
alarmEventActions
- Contains information about one or more alarm actions.public AlarmEventActions getAlarmEventActions()
Contains information about one or more alarm actions.
public CreateAlarmModelRequest withAlarmEventActions(AlarmEventActions alarmEventActions)
Contains information about one or more alarm actions.
alarmEventActions
- Contains information about one or more alarm actions.public void setAlarmCapabilities(AlarmCapabilities alarmCapabilities)
Contains the configuration information of alarm state changes.
alarmCapabilities
- Contains the configuration information of alarm state changes.public AlarmCapabilities getAlarmCapabilities()
Contains the configuration information of alarm state changes.
public CreateAlarmModelRequest withAlarmCapabilities(AlarmCapabilities alarmCapabilities)
Contains the configuration information of alarm state changes.
alarmCapabilities
- Contains the configuration information of alarm state changes.public String toString()
toString
in class Object
Object.toString()
public CreateAlarmModelRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()