@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RepositoryTrigger extends Object implements Serializable, Cloneable, StructuredPojo
Information about a trigger for a repository.
Constructor and Description |
---|
RepositoryTrigger() |
Modifier and Type | Method and Description |
---|---|
RepositoryTrigger |
clone() |
boolean |
equals(Object obj) |
List<String> |
getBranches()
The branches that will be included in the trigger configuration.
|
String |
getCustomData()
Any custom data associated with the trigger that will be included in the information sent to the target of the
trigger.
|
String |
getDestinationArn()
The ARN of the resource that is the target for a trigger.
|
List<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).
|
String |
getName()
The name of the trigger.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
setName(String name)
The name of the trigger.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RepositoryTrigger |
withBranches(Collection<String> branches)
The branches that will be included in the trigger configuration.
|
RepositoryTrigger |
withBranches(String... branches)
The branches that will be included in the trigger configuration.
|
RepositoryTrigger |
withCustomData(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(String destinationArn)
The ARN of the resource that is the target for a trigger.
|
RepositoryTrigger |
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).
|
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(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(String name)
The name of the trigger.
|
public void setName(String name)
The name of the trigger.
name
- The name of the trigger.public String getName()
The name of the trigger.
public RepositoryTrigger withName(String name)
The name of the trigger.
name
- The name of the trigger.public void setDestinationArn(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 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(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(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 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(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 List<String> getBranches()
The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will apply to all branches.
While no content is required in the array, you must include the array itself.
While no content is required in the array, you must include the array itself.
public void setBranches(Collection<String> branches)
The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will apply to all branches.
While no content is required in the array, you must include the array itself.
branches
- The branches that will be included in the trigger configuration. If you specify an empty array, the
trigger will apply to all branches. While no content is required in the array, you must include the array itself.
public RepositoryTrigger withBranches(String... branches)
The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will apply to all branches.
While no content is required in the array, you must include the array itself.
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 you specify an empty array, the
trigger will apply to all branches. While no content is required in the array, you must include the array itself.
public RepositoryTrigger withBranches(Collection<String> branches)
The branches that will be included in the trigger configuration. If you specify an empty array, the trigger will apply to all branches.
While no content is required in the array, you must include the array itself.
branches
- The branches that will be included in the trigger configuration. If you specify an empty array, the
trigger will apply to all branches. While no content is required in the array, you must include the array itself.
public List<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).
The valid value "all" cannot be used with any other values.
The valid value "all" cannot be used with any other values.
RepositoryTriggerEventEnum
public 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).
The valid value "all" cannot be used with any other 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). The valid value "all" cannot be used with any other values.
RepositoryTriggerEventEnum
public RepositoryTrigger 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).
The valid value "all" cannot be used with any other values.
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). The valid value "all" cannot be used with any other values.
RepositoryTriggerEventEnum
public RepositoryTrigger 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 valid value "all" cannot be used with any other 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). The valid value "all" cannot be used with any other values.
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).
The valid value "all" cannot be used with any other 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). The valid value "all" cannot be used with any other values.
RepositoryTriggerEventEnum
public String toString()
toString
in class Object
Object.toString()
public RepositoryTrigger clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.