public final class BuildTrigger
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Build API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
BuildTrigger() |
Modifier and Type | Method and Description |
---|---|
BuildTrigger |
clone() |
Build |
getBuild()
Contents of the build template.
|
java.lang.String |
getCreateTime()
Output only.
|
java.lang.String |
getDescription()
Human-readable description of this trigger.
|
java.lang.Boolean |
getDisabled()
If true, the trigger will never result in a build.
|
java.lang.String |
getFilename()
Path, from the source root, to a file whose contents is used for the template.
|
GitHubEventsConfig |
getGithub()
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a
GitHub event is received.
|
java.lang.String |
getId()
Output only.
|
java.util.List<java.lang.String> |
getIgnoredFiles()
ignored_files and included_files are file glob matches using
https://golang.org/pkg/path/filepath/#Match extended with support for "**".
|
java.util.List<java.lang.String> |
getIncludedFiles()
If any of the files altered in the commit pass the ignored_files filter and included_files is
empty, then as far as this filter is concerned, we should trigger the build.
|
java.lang.String |
getName()
User-assigned name of the trigger.
|
java.util.Map<java.lang.String,java.lang.String> |
getSubstitutions()
Substitutions for Build resource.
|
java.util.List<java.lang.String> |
getTags()
Tags for annotation of a `BuildTrigger`
|
RepoSource |
getTriggerTemplate()
Template describing the types of source changes to trigger a build.
|
BuildTrigger |
set(java.lang.String fieldName,
java.lang.Object value) |
BuildTrigger |
setBuild(Build build)
Contents of the build template.
|
BuildTrigger |
setCreateTime(java.lang.String createTime)
Output only.
|
BuildTrigger |
setDescription(java.lang.String description)
Human-readable description of this trigger.
|
BuildTrigger |
setDisabled(java.lang.Boolean disabled)
If true, the trigger will never result in a build.
|
BuildTrigger |
setFilename(java.lang.String filename)
Path, from the source root, to a file whose contents is used for the template.
|
BuildTrigger |
setGithub(GitHubEventsConfig github)
GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a
GitHub event is received.
|
BuildTrigger |
setId(java.lang.String id)
Output only.
|
BuildTrigger |
setIgnoredFiles(java.util.List<java.lang.String> ignoredFiles)
ignored_files and included_files are file glob matches using
https://golang.org/pkg/path/filepath/#Match extended with support for "**".
|
BuildTrigger |
setIncludedFiles(java.util.List<java.lang.String> includedFiles)
If any of the files altered in the commit pass the ignored_files filter and included_files is
empty, then as far as this filter is concerned, we should trigger the build.
|
BuildTrigger |
setName(java.lang.String name)
User-assigned name of the trigger.
|
BuildTrigger |
setSubstitutions(java.util.Map<java.lang.String,java.lang.String> substitutions)
Substitutions for Build resource.
|
BuildTrigger |
setTags(java.util.List<java.lang.String> tags)
Tags for annotation of a `BuildTrigger`
|
BuildTrigger |
setTriggerTemplate(RepoSource triggerTemplate)
Template describing the types of source changes to trigger a build.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Build getBuild()
null
for nonepublic BuildTrigger setBuild(Build build)
build
- build or null
for nonepublic java.lang.String getCreateTime()
null
for nonepublic BuildTrigger setCreateTime(java.lang.String createTime)
createTime
- createTime or null
for nonepublic java.lang.String getDescription()
null
for nonepublic BuildTrigger setDescription(java.lang.String description)
description
- description or null
for nonepublic java.lang.Boolean getDisabled()
null
for nonepublic BuildTrigger setDisabled(java.lang.Boolean disabled)
disabled
- disabled or null
for nonepublic java.lang.String getFilename()
null
for nonepublic BuildTrigger setFilename(java.lang.String filename)
filename
- filename or null
for nonepublic GitHubEventsConfig getGithub()
null
for nonepublic BuildTrigger setGithub(GitHubEventsConfig github)
github
- github or null
for nonepublic java.lang.String getId()
null
for nonepublic BuildTrigger setId(java.lang.String id)
id
- id or null
for nonepublic java.util.List<java.lang.String> getIgnoredFiles()
null
for nonepublic BuildTrigger setIgnoredFiles(java.util.List<java.lang.String> ignoredFiles)
ignoredFiles
- ignoredFiles or null
for nonepublic java.util.List<java.lang.String> getIncludedFiles()
null
for nonepublic BuildTrigger setIncludedFiles(java.util.List<java.lang.String> includedFiles)
includedFiles
- includedFiles or null
for nonepublic java.lang.String getName()
null
for nonepublic BuildTrigger setName(java.lang.String name)
name
- name or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getSubstitutions()
null
for nonepublic BuildTrigger setSubstitutions(java.util.Map<java.lang.String,java.lang.String> substitutions)
substitutions
- substitutions or null
for nonepublic java.util.List<java.lang.String> getTags()
null
for nonepublic BuildTrigger setTags(java.util.List<java.lang.String> tags)
tags
- tags or null
for nonepublic RepoSource getTriggerTemplate()
null
for nonepublic BuildTrigger setTriggerTemplate(RepoSource triggerTemplate)
triggerTemplate
- triggerTemplate or null
for nonepublic BuildTrigger set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public BuildTrigger clone()
clone
in class com.google.api.client.json.GenericJson