Interface AddNotificationChannelRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<AddNotificationChannelRequest.Builder,
,AddNotificationChannelRequest> DevOpsGuruRequest.Builder
,SdkBuilder<AddNotificationChannelRequest.Builder,
,AddNotificationChannelRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AddNotificationChannelRequest
public static interface AddNotificationChannelRequest.Builder
extends DevOpsGuruRequest.Builder, SdkPojo, CopyableBuilder<AddNotificationChannelRequest.Builder,AddNotificationChannelRequest>
-
Method Summary
Modifier and TypeMethodDescriptionANotificationChannelConfig
object that specifies what type of notification channel to add.config
(NotificationChannelConfig config) ANotificationChannelConfig
object that specifies what type of notification channel to add.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.devopsguru.model.DevOpsGuruRequest.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 Details
-
config
A
NotificationChannelConfig
object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).- Parameters:
config
- ANotificationChannelConfig
object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
config
default AddNotificationChannelRequest.Builder config(Consumer<NotificationChannelConfig.Builder> config) A
This is a convenience method that creates an instance of theNotificationChannelConfig
object that specifies what type of notification channel to add. The one supported notification channel is Amazon Simple Notification Service (Amazon SNS).NotificationChannelConfig.Builder
avoiding the need to create one manually viaNotificationChannelConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfig(NotificationChannelConfig)
.- Parameters:
config
- a consumer that will call methods onNotificationChannelConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
AddNotificationChannelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
AddNotificationChannelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-