Interface CreateNotificationRuleRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CodestarNotificationsRequest.Builder,CopyableBuilder<CreateNotificationRuleRequest.Builder,CreateNotificationRuleRequest>,SdkBuilder<CreateNotificationRuleRequest.Builder,CreateNotificationRuleRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateNotificationRuleRequest
public static interface CreateNotificationRuleRequest.Builder extends CodestarNotificationsRequest.Builder, SdkPojo, CopyableBuilder<CreateNotificationRuleRequest.Builder,CreateNotificationRuleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateNotificationRuleRequest.BuilderclientRequestToken(String clientRequestToken)A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter.CreateNotificationRuleRequest.BuilderdetailType(String detailType)The level of detail to include in the notifications for this resource.CreateNotificationRuleRequest.BuilderdetailType(DetailType detailType)The level of detail to include in the notifications for this resource.CreateNotificationRuleRequest.BuildereventTypeIds(String... eventTypeIds)A list of event types associated with this notification rule.CreateNotificationRuleRequest.BuildereventTypeIds(Collection<String> eventTypeIds)A list of event types associated with this notification rule.CreateNotificationRuleRequest.Buildername(String name)The name for the notification rule.CreateNotificationRuleRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateNotificationRuleRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateNotificationRuleRequest.Builderresource(String resource)The Amazon Resource Name (ARN) of the resource to associate with the notification rule.CreateNotificationRuleRequest.Builderstatus(String status)The status of the notification rule.CreateNotificationRuleRequest.Builderstatus(NotificationRuleStatus status)The status of the notification rule.CreateNotificationRuleRequest.Buildertags(Map<String,String> tags)A list of tags to apply to this notification rule.CreateNotificationRuleRequest.Buildertargets(Collection<Target> targets)A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.CreateNotificationRuleRequest.Buildertargets(Consumer<Target.Builder>... targets)A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.CreateNotificationRuleRequest.Buildertargets(Target... targets)A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.codestarnotifications.model.CodestarNotificationsRequest.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 Detail
-
name
CreateNotificationRuleRequest.Builder name(String name)
The name for the notification rule. Notification rule names must be unique in your Amazon Web Services account.
- Parameters:
name- The name for the notification rule. Notification rule names must be unique in your Amazon Web Services account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTypeIds
CreateNotificationRuleRequest.Builder eventTypeIds(Collection<String> eventTypeIds)
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.
- Parameters:
eventTypeIds- A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventTypeIds
CreateNotificationRuleRequest.Builder eventTypeIds(String... eventTypeIds)
A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.
- Parameters:
eventTypeIds- A list of event types associated with this notification rule. For a list of allowed events, see EventTypeSummary.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
CreateNotificationRuleRequest.Builder resource(String resource)
The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.
- Parameters:
resource- The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in CodePipeline, repositories in CodeCommit, and build projects in CodeBuild.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
CreateNotificationRuleRequest.Builder targets(Collection<Target> targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
- Parameters:
targets- A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
CreateNotificationRuleRequest.Builder targets(Target... targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
- Parameters:
targets- A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targets
CreateNotificationRuleRequest.Builder targets(Consumer<Target.Builder>... targets)
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and Chatbot clients to associate with the notification rule.
This is a convenience method that creates an instance of theTarget.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#targets(List.) - Parameters:
targets- a consumer that will call methods onTarget.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#targets(java.util.Collection)
-
detailType
CreateNotificationRuleRequest.Builder detailType(String detailType)
The level of detail to include in the notifications for this resource.
BASICwill include only the contents of the event as it would appear in Amazon CloudWatch.FULLwill include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.- Parameters:
detailType- The level of detail to include in the notifications for this resource.BASICwill include only the contents of the event as it would appear in Amazon CloudWatch.FULLwill include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DetailType,DetailType
-
detailType
CreateNotificationRuleRequest.Builder detailType(DetailType detailType)
The level of detail to include in the notifications for this resource.
BASICwill include only the contents of the event as it would appear in Amazon CloudWatch.FULLwill include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.- Parameters:
detailType- The level of detail to include in the notifications for this resource.BASICwill include only the contents of the event as it would appear in Amazon CloudWatch.FULLwill include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DetailType,DetailType
-
clientRequestToken
CreateNotificationRuleRequest.Builder clientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request with the same parameters is received and a token is included, the request returns information about the initial request that used that token.
The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
- Parameters:
clientRequestToken- A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request with the same parameters is received and a token is included, the request returns information about the initial request that used that token.The Amazon Web Services SDKs prepopulate client request tokens. If you are using an Amazon Web Services SDK, an idempotency token is created for you.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateNotificationRuleRequest.Builder tags(Map<String,String> tags)
A list of tags to apply to this notification rule. Key names cannot start with "
aws".- Parameters:
tags- A list of tags to apply to this notification rule. Key names cannot start with "aws".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
CreateNotificationRuleRequest.Builder status(String status)
The status of the notification rule. The default value is
ENABLED. If the status is set toDISABLED, notifications aren't sent for the notification rule.- Parameters:
status- The status of the notification rule. The default value isENABLED. If the status is set toDISABLED, notifications aren't sent for the notification rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NotificationRuleStatus,NotificationRuleStatus
-
status
CreateNotificationRuleRequest.Builder status(NotificationRuleStatus status)
The status of the notification rule. The default value is
ENABLED. If the status is set toDISABLED, notifications aren't sent for the notification rule.- Parameters:
status- The status of the notification rule. The default value isENABLED. If the status is set toDISABLED, notifications aren't sent for the notification rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NotificationRuleStatus,NotificationRuleStatus
-
overrideConfiguration
CreateNotificationRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateNotificationRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-