@Generated(value="software.amazon.awssdk:codegen") public final class CreateAlarmModelRequest extends IotEventsRequest implements ToCopyableBuilder<CreateAlarmModelRequest.Builder,CreateAlarmModelRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateAlarmModelRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AlarmCapabilities |
alarmCapabilities()
Contains the configuration information of alarm state changes.
|
AlarmEventActions |
alarmEventActions()
Contains information about one or more alarm actions.
|
String |
alarmModelDescription()
A description that tells you what the alarm model detects.
|
String |
alarmModelName()
A unique name that helps you identify the alarm model.
|
AlarmNotification |
alarmNotification()
Contains information about one or more notification actions.
|
AlarmRule |
alarmRule()
Defines when your alarm is invoked.
|
static CreateAlarmModelRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
String |
key()
An input attribute used as a key to create an alarm.
|
String |
roleArn()
The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateAlarmModelRequest.Builder> |
serializableBuilderClass() |
Integer |
severity()
A non-negative integer that reflects the severity level of the alarm.
|
List<Tag> |
tags()
A list of key-value pairs that contain metadata for the alarm model.
|
CreateAlarmModelRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String alarmModelName()
A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.
public final String alarmModelDescription()
A description that tells you what the alarm model detects.
public final 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.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
You can create up to 50 tags for one alarm model.
public final 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.
public final Integer severity()
A non-negative integer that reflects the severity level of the alarm.
public final AlarmRule alarmRule()
Defines when your alarm is invoked.
public final AlarmNotification alarmNotification()
Contains information about one or more notification actions.
public final AlarmEventActions alarmEventActions()
Contains information about one or more alarm actions.
public final AlarmCapabilities alarmCapabilities()
Contains the configuration information of alarm state changes.
public CreateAlarmModelRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateAlarmModelRequest.Builder,CreateAlarmModelRequest>toBuilder in class IotEventsRequestpublic static CreateAlarmModelRequest.Builder builder()
public static Class<? extends CreateAlarmModelRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2022. All rights reserved.