@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NotificationAction extends Object implements Serializable, Cloneable, StructuredPojo
Contains the notification settings of an alarm model. The settings apply to all alarms that were created based on this alarm model.
Constructor and Description |
---|
NotificationAction() |
Modifier and Type | Method and Description |
---|---|
NotificationAction |
clone() |
boolean |
equals(Object obj) |
NotificationTargetActions |
getAction()
Specifies an AWS Lambda function to manage alarm notifications.
|
List<EmailConfiguration> |
getEmailConfigurations()
Contains the configuration information of email notifications.
|
List<SMSConfiguration> |
getSmsConfigurations()
Contains the configuration information of SMS notifications.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(NotificationTargetActions action)
Specifies an AWS Lambda function to manage alarm notifications.
|
void |
setEmailConfigurations(Collection<EmailConfiguration> emailConfigurations)
Contains the configuration information of email notifications.
|
void |
setSmsConfigurations(Collection<SMSConfiguration> smsConfigurations)
Contains the configuration information of SMS notifications.
|
String |
toString()
Returns a string representation of this object.
|
NotificationAction |
withAction(NotificationTargetActions action)
Specifies an AWS Lambda function to manage alarm notifications.
|
NotificationAction |
withEmailConfigurations(Collection<EmailConfiguration> emailConfigurations)
Contains the configuration information of email notifications.
|
NotificationAction |
withEmailConfigurations(EmailConfiguration... emailConfigurations)
Contains the configuration information of email notifications.
|
NotificationAction |
withSmsConfigurations(Collection<SMSConfiguration> smsConfigurations)
Contains the configuration information of SMS notifications.
|
NotificationAction |
withSmsConfigurations(SMSConfiguration... smsConfigurations)
Contains the configuration information of SMS notifications.
|
public void setAction(NotificationTargetActions action)
Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function provided by AWS IoT Events.
action
- Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function
provided by AWS IoT Events.public NotificationTargetActions getAction()
Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function provided by AWS IoT Events.
public NotificationAction withAction(NotificationTargetActions action)
Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function provided by AWS IoT Events.
action
- Specifies an AWS Lambda function to manage alarm notifications. You can create one or use the AWS Lambda function
provided by AWS IoT Events.public List<SMSConfiguration> getSmsConfigurations()
Contains the configuration information of SMS notifications.
public void setSmsConfigurations(Collection<SMSConfiguration> smsConfigurations)
Contains the configuration information of SMS notifications.
smsConfigurations
- Contains the configuration information of SMS notifications.public NotificationAction withSmsConfigurations(SMSConfiguration... smsConfigurations)
Contains the configuration information of SMS notifications.
NOTE: This method appends the values to the existing list (if any). Use
setSmsConfigurations(java.util.Collection)
or withSmsConfigurations(java.util.Collection)
if
you want to override the existing values.
smsConfigurations
- Contains the configuration information of SMS notifications.public NotificationAction withSmsConfigurations(Collection<SMSConfiguration> smsConfigurations)
Contains the configuration information of SMS notifications.
smsConfigurations
- Contains the configuration information of SMS notifications.public List<EmailConfiguration> getEmailConfigurations()
Contains the configuration information of email notifications.
public void setEmailConfigurations(Collection<EmailConfiguration> emailConfigurations)
Contains the configuration information of email notifications.
emailConfigurations
- Contains the configuration information of email notifications.public NotificationAction withEmailConfigurations(EmailConfiguration... emailConfigurations)
Contains the configuration information of email notifications.
NOTE: This method appends the values to the existing list (if any). Use
setEmailConfigurations(java.util.Collection)
or withEmailConfigurations(java.util.Collection)
if you want to override the existing values.
emailConfigurations
- Contains the configuration information of email notifications.public NotificationAction withEmailConfigurations(Collection<EmailConfiguration> emailConfigurations)
Contains the configuration information of email notifications.
emailConfigurations
- Contains the configuration information of email notifications.public String toString()
toString
in class Object
Object.toString()
public NotificationAction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.