Interface CreateAlarmModelRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAlarmModelRequest.Builder,CreateAlarmModelRequest>,IotEventsRequest.Builder,SdkBuilder<CreateAlarmModelRequest.Builder,CreateAlarmModelRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAlarmModelRequest
public static interface CreateAlarmModelRequest.Builder extends IotEventsRequest.Builder, SdkPojo, CopyableBuilder<CreateAlarmModelRequest.Builder,CreateAlarmModelRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CreateAlarmModelRequest.BuilderalarmCapabilities(Consumer<AlarmCapabilities.Builder> alarmCapabilities)Contains the configuration information of alarm state changes.CreateAlarmModelRequest.BuilderalarmCapabilities(AlarmCapabilities alarmCapabilities)Contains the configuration information of alarm state changes.default CreateAlarmModelRequest.BuilderalarmEventActions(Consumer<AlarmEventActions.Builder> alarmEventActions)Contains information about one or more alarm actions.CreateAlarmModelRequest.BuilderalarmEventActions(AlarmEventActions alarmEventActions)Contains information about one or more alarm actions.CreateAlarmModelRequest.BuilderalarmModelDescription(String alarmModelDescription)A description that tells you what the alarm model detects.CreateAlarmModelRequest.BuilderalarmModelName(String alarmModelName)A unique name that helps you identify the alarm model.default CreateAlarmModelRequest.BuilderalarmNotification(Consumer<AlarmNotification.Builder> alarmNotification)Contains information about one or more notification actions.CreateAlarmModelRequest.BuilderalarmNotification(AlarmNotification alarmNotification)Contains information about one or more notification actions.default CreateAlarmModelRequest.BuilderalarmRule(Consumer<AlarmRule.Builder> alarmRule)Defines when your alarm is invoked.CreateAlarmModelRequest.BuilderalarmRule(AlarmRule alarmRule)Defines when your alarm is invoked.CreateAlarmModelRequest.Builderkey(String key)An input attribute used as a key to create an alarm.CreateAlarmModelRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateAlarmModelRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateAlarmModelRequest.BuilderroleArn(String roleArn)The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.CreateAlarmModelRequest.Builderseverity(Integer severity)A non-negative integer that reflects the severity level of the alarm.CreateAlarmModelRequest.Buildertags(Collection<Tag> tags)A list of key-value pairs that contain metadata for the alarm model.CreateAlarmModelRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of key-value pairs that contain metadata for the alarm model.CreateAlarmModelRequest.Buildertags(Tag... tags)A list of key-value pairs that contain metadata for the alarm model.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.iotevents.model.IotEventsRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
alarmModelName
CreateAlarmModelRequest.Builder alarmModelName(String alarmModelName)
A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.
- Parameters:
alarmModelName- A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmModelDescription
CreateAlarmModelRequest.Builder alarmModelDescription(String alarmModelDescription)
A description that tells you what the alarm model detects.
- Parameters:
alarmModelDescription- A description that tells you what the alarm model detects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
CreateAlarmModelRequest.Builder roleArn(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAlarmModelRequest.Builder tags(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAlarmModelRequest.Builder tags(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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateAlarmModelRequest.Builder tags(Consumer<Tag.Builder>... 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.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
key
CreateAlarmModelRequest.Builder key(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.
- Parameters:
key- An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
CreateAlarmModelRequest.Builder severity(Integer severity)
A non-negative integer that reflects the severity level of the alarm.
- Parameters:
severity- A non-negative integer that reflects the severity level of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmRule
CreateAlarmModelRequest.Builder alarmRule(AlarmRule alarmRule)
Defines when your alarm is invoked.
- Parameters:
alarmRule- Defines when your alarm is invoked.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmRule
default CreateAlarmModelRequest.Builder alarmRule(Consumer<AlarmRule.Builder> alarmRule)
Defines when your alarm is invoked.
This is a convenience method that creates an instance of theAlarmRule.Builderavoiding the need to create one manually viaAlarmRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalarmRule(AlarmRule).- Parameters:
alarmRule- a consumer that will call methods onAlarmRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
alarmRule(AlarmRule)
-
alarmNotification
CreateAlarmModelRequest.Builder alarmNotification(AlarmNotification alarmNotification)
Contains information about one or more notification actions.
- Parameters:
alarmNotification- Contains information about one or more notification actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmNotification
default CreateAlarmModelRequest.Builder alarmNotification(Consumer<AlarmNotification.Builder> alarmNotification)
Contains information about one or more notification actions.
This is a convenience method that creates an instance of theAlarmNotification.Builderavoiding the need to create one manually viaAlarmNotification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalarmNotification(AlarmNotification).- Parameters:
alarmNotification- a consumer that will call methods onAlarmNotification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
alarmNotification(AlarmNotification)
-
alarmEventActions
CreateAlarmModelRequest.Builder alarmEventActions(AlarmEventActions alarmEventActions)
Contains information about one or more alarm actions.
- Parameters:
alarmEventActions- Contains information about one or more alarm actions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmEventActions
default CreateAlarmModelRequest.Builder alarmEventActions(Consumer<AlarmEventActions.Builder> alarmEventActions)
Contains information about one or more alarm actions.
This is a convenience method that creates an instance of theAlarmEventActions.Builderavoiding the need to create one manually viaAlarmEventActions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalarmEventActions(AlarmEventActions).- Parameters:
alarmEventActions- a consumer that will call methods onAlarmEventActions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
alarmEventActions(AlarmEventActions)
-
alarmCapabilities
CreateAlarmModelRequest.Builder alarmCapabilities(AlarmCapabilities alarmCapabilities)
Contains the configuration information of alarm state changes.
- Parameters:
alarmCapabilities- Contains the configuration information of alarm state changes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alarmCapabilities
default CreateAlarmModelRequest.Builder alarmCapabilities(Consumer<AlarmCapabilities.Builder> alarmCapabilities)
Contains the configuration information of alarm state changes.
This is a convenience method that creates an instance of theAlarmCapabilities.Builderavoiding the need to create one manually viaAlarmCapabilities.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalarmCapabilities(AlarmCapabilities).- Parameters:
alarmCapabilities- a consumer that will call methods onAlarmCapabilities.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
alarmCapabilities(AlarmCapabilities)
-
overrideConfiguration
CreateAlarmModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAlarmModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-