Interface RepositoryTrigger.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RepositoryTrigger.Builder,
,RepositoryTrigger> SdkBuilder<RepositoryTrigger.Builder,
,RepositoryTrigger> SdkPojo
- Enclosing class:
RepositoryTrigger
-
Method Summary
Modifier and TypeMethodDescriptionThe branches to be included in the trigger configuration.branches
(Collection<String> branches) The branches to be included in the trigger configuration.customData
(String customData) Any custom data associated with the trigger to be included in the information sent to the target of the trigger.destinationArn
(String destinationArn) The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).events
(Collection<RepositoryTriggerEventEnum> events) The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.events
(RepositoryTriggerEventEnum... events) The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.eventsWithStrings
(String... events) The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.eventsWithStrings
(Collection<String> events) The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.The name of the trigger.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
-
name
The name of the trigger.
- Parameters:
name
- The name of the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationArn
The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
- Parameters:
destinationArn
- The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customData
Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
- Parameters:
customData
- Any custom data associated with the trigger to be included in the information sent to the target of the trigger.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branches
The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
Although no content is required in the array, you must include the array itself.
- Parameters:
branches
- The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.Although no content is required in the array, you must include the array itself.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branches
The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.
Although no content is required in the array, you must include the array itself.
- Parameters:
branches
- The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.Although no content is required in the array, you must include the array itself.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventsWithStrings
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
The valid value "all" cannot be used with any other values.
- Parameters:
events
- The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.The valid value "all" cannot be used with any other values.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventsWithStrings
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
The valid value "all" cannot be used with any other values.
- Parameters:
events
- The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.The valid value "all" cannot be used with any other values.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
The valid value "all" cannot be used with any other values.
- Parameters:
events
- The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.The valid value "all" cannot be used with any other values.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
events
The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.
The valid value "all" cannot be used with any other values.
- Parameters:
events
- The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.The valid value "all" cannot be used with any other values.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-