Interface RepositoryTrigger.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RepositoryTrigger.Builder,RepositoryTrigger>,SdkBuilder<RepositoryTrigger.Builder,RepositoryTrigger>,SdkPojo
- Enclosing class:
- RepositoryTrigger
public static interface RepositoryTrigger.Builder extends SdkPojo, CopyableBuilder<RepositoryTrigger.Builder,RepositoryTrigger>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RepositoryTrigger.Builderbranches(String... branches)The branches to be included in the trigger configuration.RepositoryTrigger.Builderbranches(Collection<String> branches)The branches to be included in the trigger configuration.RepositoryTrigger.BuildercustomData(String customData)Any custom data associated with the trigger to be included in the information sent to the target of the trigger.RepositoryTrigger.BuilderdestinationArn(String destinationArn)The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).RepositoryTrigger.Builderevents(Collection<RepositoryTriggerEventEnum> events)The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.RepositoryTrigger.Builderevents(RepositoryTriggerEventEnum... events)The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.RepositoryTrigger.BuildereventsWithStrings(String... events)The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.RepositoryTrigger.BuildereventsWithStrings(Collection<String> events)The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.RepositoryTrigger.Buildername(String name)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
RepositoryTrigger.Builder name(String 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
RepositoryTrigger.Builder 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).
- 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
RepositoryTrigger.Builder customData(String 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
RepositoryTrigger.Builder branches(Collection<String> 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
RepositoryTrigger.Builder branches(String... 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
RepositoryTrigger.Builder 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 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
RepositoryTrigger.Builder eventsWithStrings(String... 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
RepositoryTrigger.Builder 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.
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
RepositoryTrigger.Builder events(RepositoryTriggerEventEnum... 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.
-
-