public class RepositoryTrigger
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about a trigger for a repository.
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
branches
The branches that will be included in the trigger configuration.
|
private java.lang.String |
customData
Any custom data associated with the trigger that will be included in the
information sent to the target of the trigger.
|
private java.lang.String |
destinationArn
The ARN of the resource that is the target for a trigger.
|
private java.util.List<java.lang.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).
|
private java.lang.String |
name
The name of the trigger.
|
Constructor and Description |
---|
RepositoryTrigger() |
Modifier and Type | Method and Description |
---|---|
RepositoryTrigger |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getBranches()
The branches that will be included in the trigger configuration.
|
java.lang.String |
getCustomData()
Any custom data associated with the trigger that will be included in the
information sent to the target of the trigger.
|
java.lang.String |
getDestinationArn()
The ARN of the resource that is the target for a trigger.
|
java.util.List<java.lang.String> |
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).
|
java.lang.String |
getName()
The name of the trigger.
|
int |
hashCode() |
void |
setBranches(java.util.Collection<java.lang.String> branches)
The branches that will be included in the trigger configuration.
|
void |
setCustomData(java.lang.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(java.lang.String destinationArn)
The ARN of the resource that is the target for a trigger.
|
void |
setEvents(java.util.Collection<java.lang.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 |
setName(java.lang.String name)
The name of the trigger.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RepositoryTrigger |
withBranches(java.util.Collection<java.lang.String> branches)
The branches that will be included in the trigger configuration.
|
RepositoryTrigger |
withBranches(java.lang.String... branches)
The branches that will be included in the trigger configuration.
|
RepositoryTrigger |
withCustomData(java.lang.String customData)
Any custom data associated with the trigger that will be included in the
information sent to the target of the trigger.
|
RepositoryTrigger |
withDestinationArn(java.lang.String destinationArn)
The ARN of the resource that is the target for a trigger.
|
RepositoryTrigger |
withEvents(java.util.Collection<java.lang.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).
|
RepositoryTrigger |
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).
|
RepositoryTrigger |
withEvents(java.lang.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).
|
RepositoryTrigger |
withName(java.lang.String name)
The name of the trigger.
|
private java.lang.String name
The name of the trigger.
private java.lang.String 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).
private java.lang.String customData
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
private java.util.List<java.lang.String> branches
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
private java.util.List<java.lang.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). If no events are specified, the trigger will run for all repository events.
public void setName(java.lang.String name)
The name of the trigger.
name
- The name of the trigger.public java.lang.String getName()
The name of the trigger.
public RepositoryTrigger withName(java.lang.String name)
The name of the trigger.
name
- The name of the trigger.public void setDestinationArn(java.lang.String 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).
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).public java.lang.String 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).
public RepositoryTrigger withDestinationArn(java.lang.String 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).
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).public void setCustomData(java.lang.String customData)
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
customData
- Any custom data associated with the trigger that will be included
in the information sent to the target of the trigger.public java.lang.String getCustomData()
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
public RepositoryTrigger withCustomData(java.lang.String customData)
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
customData
- Any custom data associated with the trigger that will be included
in the information sent to the target of the trigger.public java.util.List<java.lang.String> getBranches()
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
public void setBranches(java.util.Collection<java.lang.String> branches)
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
branches
- The branches that will be included in the trigger configuration.
If no branches are specified, the trigger will apply to all
branches.public RepositoryTrigger withBranches(java.lang.String... branches)
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)
or
withBranches(java.util.Collection)
if you want to override the
existing values.
branches
- The branches that will be included in the trigger configuration.
If no branches are specified, the trigger will apply to all
branches.public RepositoryTrigger withBranches(java.util.Collection<java.lang.String> branches)
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
branches
- The branches that will be included in the trigger configuration.
If no branches are specified, the trigger will apply to all
branches.public java.util.List<java.lang.String> 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.
RepositoryTriggerEventEnum
public void setEvents(java.util.Collection<java.lang.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). If no events are specified, the trigger will run for all repository events.
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.RepositoryTriggerEventEnum
public RepositoryTrigger withEvents(java.lang.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). 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)
or
withEvents(java.util.Collection)
if you want to override the
existing values.
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.RepositoryTriggerEventEnum
public RepositoryTrigger withEvents(java.util.Collection<java.lang.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). If no events are specified, the trigger will run for all repository events.
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.RepositoryTriggerEventEnum
public RepositoryTrigger 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). If no events are specified, the trigger will run for all repository events.
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.RepositoryTriggerEventEnum
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RepositoryTrigger clone()
clone
in class java.lang.Object