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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.codeguruprofiler.model.CodeGuruProfilerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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.Builderavoiding the need to create one manually viaChannel.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-