Interface CreateAlarmModelRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateAlarmModelRequest.Builder,,CreateAlarmModelRequest> IotEventsRequest.Builder,SdkBuilder<CreateAlarmModelRequest.Builder,,CreateAlarmModelRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAlarmModelRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateAlarmModelRequest.BuilderalarmCapabilities(Consumer<AlarmCapabilities.Builder> alarmCapabilities) Contains the configuration information of alarm state changes.alarmCapabilities(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.alarmEventActions(AlarmEventActions alarmEventActions) Contains information about one or more alarm actions.alarmModelDescription(String alarmModelDescription) A description that tells you what the alarm model detects.alarmModelName(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.alarmNotification(AlarmNotification alarmNotification) Contains information about one or more notification actions.default CreateAlarmModelRequest.BuilderalarmRule(Consumer<AlarmRule.Builder> alarmRule) Defines when your alarm is invoked.Defines when your alarm is invoked.An input attribute used as a key to create an alarm.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The ARN of the IAM role that allows the alarm to perform actions and access AWS resources.A non-negative integer that reflects the severity level of the alarm.tags(Collection<Tag> tags) A list of key-value pairs that contain metadata for the alarm model.tags(Consumer<Tag.Builder>... tags) A list of key-value pairs that contain metadata for the alarm model.A list of key-value pairs that contain metadata for the alarm model.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.iotevents.model.IotEventsRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
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
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 totags(List<Tag>).- 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:
-
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
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
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
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:
-
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:
-
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:
-
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:
-
overrideConfiguration
CreateAlarmModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAlarmModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-