@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GitPullRequestFilter extends Object implements Serializable, Cloneable, StructuredPojo
The event criteria for the pull request trigger configuration, such as the lists of branches or file paths to include and exclude.
Constructor and Description |
---|
GitPullRequestFilter() |
Modifier and Type | Method and Description |
---|---|
GitPullRequestFilter |
clone() |
boolean |
equals(Object obj) |
GitBranchFilterCriteria |
getBranches()
The field that specifies to filter on branches for the pull request trigger configuration.
|
List<String> |
getEvents()
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.
|
GitFilePathFilterCriteria |
getFilePaths()
The field that specifies to filter on file paths for the pull request trigger configuration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBranches(GitBranchFilterCriteria branches)
The field that specifies to filter on branches for the pull request trigger configuration.
|
void |
setEvents(Collection<String> events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.
|
void |
setFilePaths(GitFilePathFilterCriteria filePaths)
The field that specifies to filter on file paths for the pull request trigger configuration.
|
String |
toString()
Returns a string representation of this object.
|
GitPullRequestFilter |
withBranches(GitBranchFilterCriteria branches)
The field that specifies to filter on branches for the pull request trigger configuration.
|
GitPullRequestFilter |
withEvents(Collection<String> events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.
|
GitPullRequestFilter |
withEvents(GitPullRequestEventType... events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.
|
GitPullRequestFilter |
withEvents(String... events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.
|
GitPullRequestFilter |
withFilePaths(GitFilePathFilterCriteria filePaths)
The field that specifies to filter on file paths for the pull request trigger configuration.
|
public List<String> getEvents()
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
GitPullRequestEventType
public void setEvents(Collection<String> events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
events
- The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.GitPullRequestEventType
public GitPullRequestFilter withEvents(String... events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
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 field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.GitPullRequestEventType
public GitPullRequestFilter withEvents(Collection<String> events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
events
- The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.GitPullRequestEventType
public GitPullRequestFilter withEvents(GitPullRequestEventType... events)
The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger configuration.
events
- The field that specifies which pull request events to filter on (opened, updated, closed) for the trigger
configuration.GitPullRequestEventType
public void setBranches(GitBranchFilterCriteria branches)
The field that specifies to filter on branches for the pull request trigger configuration.
branches
- The field that specifies to filter on branches for the pull request trigger configuration.public GitBranchFilterCriteria getBranches()
The field that specifies to filter on branches for the pull request trigger configuration.
public GitPullRequestFilter withBranches(GitBranchFilterCriteria branches)
The field that specifies to filter on branches for the pull request trigger configuration.
branches
- The field that specifies to filter on branches for the pull request trigger configuration.public void setFilePaths(GitFilePathFilterCriteria filePaths)
The field that specifies to filter on file paths for the pull request trigger configuration.
filePaths
- The field that specifies to filter on file paths for the pull request trigger configuration.public GitFilePathFilterCriteria getFilePaths()
The field that specifies to filter on file paths for the pull request trigger configuration.
public GitPullRequestFilter withFilePaths(GitFilePathFilterCriteria filePaths)
The field that specifies to filter on file paths for the pull request trigger configuration.
filePaths
- The field that specifies to filter on file paths for the pull request trigger configuration.public String toString()
toString
in class Object
Object.toString()
public GitPullRequestFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.