Interface AddNotificationChannelsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CodeGuruProfilerRequest.Builder
,CopyableBuilder<AddNotificationChannelsRequest.Builder,
,AddNotificationChannelsRequest> SdkBuilder<AddNotificationChannelsRequest.Builder,
,AddNotificationChannelsRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
AddNotificationChannelsRequest
public static interface AddNotificationChannelsRequest.Builder
extends CodeGuruProfilerRequest.Builder, SdkPojo, CopyableBuilder<AddNotificationChannelsRequest.Builder,AddNotificationChannelsRequest>
-
Method Summary
Modifier and TypeMethodDescriptionchannels
(Collection<Channel> channels) One or 2 channels to report to when anomalies are detected.channels
(Consumer<Channel.Builder>... channels) One or 2 channels to report to when anomalies are detected.One or 2 channels to report to when anomalies are detected.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.profilingGroupName
(String profilingGroupName) The name of the profiling group that we are setting up notifications for.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.codeguruprofiler.model.CodeGuruProfilerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
channels
One or 2 channels to report to when anomalies are detected.
- Parameters:
channels
- One or 2 channels to report to when anomalies are detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channels
One or 2 channels to report to when anomalies are detected.
- Parameters:
channels
- One or 2 channels to report to when anomalies are detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
channels
One or 2 channels to report to when anomalies are detected.
This is a convenience method that creates an instance of theChannel.Builder
avoiding the need to create one manually viaChannel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochannels(List<Channel>)
.- Parameters:
channels
- a consumer that will call methods onChannel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
profilingGroupName
The name of the profiling group that we are setting up notifications for.
- Parameters:
profilingGroupName
- The name of the profiling group that we are setting up notifications for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
AddNotificationChannelsRequest.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
AddNotificationChannelsRequest.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.
-