Class RepositoryTrigger
- All Implemented Interfaces:
Serializable
,Cloneable
Information about a trigger for a repository.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The branches that will be included in the trigger configuration.Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.The ARN of the resource that is the target for a trigger.The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).getName()
The name of the trigger.int
hashCode()
void
setBranches
(Collection<String> branches) The branches that will be included in the trigger configuration.void
setCustomData
(String customData) Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.void
setDestinationArn
(String destinationArn) The ARN of the resource that is the target for a trigger.void
setEvents
(Collection<String> events) The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).void
The name of the trigger.toString()
Returns a string representation of this object; useful for testing and debugging.withBranches
(String... branches) The branches that will be included in the trigger configuration.withBranches
(Collection<String> branches) The branches that will be included in the trigger configuration.withCustomData
(String customData) Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.withDestinationArn
(String destinationArn) The ARN of the resource that is the target for a trigger.withEvents
(RepositoryTriggerEventEnum... events) The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).withEvents
(String... events) The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).withEvents
(Collection<String> events) The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS).The name of the trigger.
-
Constructor Details
-
RepositoryTrigger
public RepositoryTrigger()
-
-
Method Details
-
setName
The name of the trigger.
- Parameters:
name
- The name of the trigger.
-
getName
The name of the trigger.
- Returns:
- The name of the trigger.
-
withName
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.
-
setDestinationArn
The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
- Parameters:
destinationArn
- The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
-
getDestinationArn
The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
- Returns:
- The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
-
withDestinationArn
The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
- Parameters:
destinationArn
- The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCustomData
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
- Parameters:
customData
- Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
-
getCustomData
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
- Returns:
- Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
-
withCustomData
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
- Parameters:
customData
- Any custom data associated with the trigger that will 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.
-
getBranches
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
- Returns:
- The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
-
setBranches
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
- Parameters:
branches
- The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
-
withBranches
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
NOTE: This method appends the values to the existing list (if any). Use
setBranches(java.util.Collection)
orwithBranches(java.util.Collection)
if you want to override the existing values.- Parameters:
branches
- The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withBranches
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
- Parameters:
branches
- The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEvents
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.
- Returns:
- The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.
- See Also:
-
setEvents
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.
- Parameters:
events
- The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.- See Also:
-
withEvents
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.
NOTE: This method appends the values to the existing list (if any). Use
setEvents(java.util.Collection)
orwithEvents(java.util.Collection)
if you want to override the existing values.- Parameters:
events
- The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withEvents
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.
- Parameters:
events
- The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
withEvents
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.
- Parameters:
events
- The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-