public final class Step
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Step() |
| Modifier and Type | Method and Description |
|---|---|
Step |
clone() |
List<String> |
getArgs()
Arguments to the entrypoint.
|
List<String> |
getCommand()
Entrypoint array.
|
List<EnvVar> |
getEnv()
List of environment variables to set in the container.
|
String |
getImage()
Docker image name.
|
String |
getName()
Name of the container specified as a DNS_LABEL.
|
String |
getOnError()
Optional.
|
List<Param> |
getParams()
Optional.
|
StepRef |
getRef()
Optional.
|
String |
getScript()
The contents of an executable file to execute.
|
SecurityContext |
getSecurityContext()
Optional.
|
String |
getTimeout()
Time after which the Step times out.
|
List<VolumeMount> |
getVolumeMounts()
Pod volumes to mount into the container's filesystem.
|
String |
getWorkingDir()
Container's working directory.
|
Step |
set(String fieldName,
Object value) |
Step |
setArgs(List<String> args)
Arguments to the entrypoint.
|
Step |
setCommand(List<String> command)
Entrypoint array.
|
Step |
setEnv(List<EnvVar> env)
List of environment variables to set in the container.
|
Step |
setImage(String image)
Docker image name.
|
Step |
setName(String name)
Name of the container specified as a DNS_LABEL.
|
Step |
setOnError(String onError)
Optional.
|
Step |
setParams(List<Param> params)
Optional.
|
Step |
setRef(StepRef ref)
Optional.
|
Step |
setScript(String script)
The contents of an executable file to execute.
|
Step |
setSecurityContext(SecurityContext securityContext)
Optional.
|
Step |
setTimeout(String timeout)
Time after which the Step times out.
|
Step |
setVolumeMounts(List<VolumeMount> volumeMounts)
Pod volumes to mount into the container's filesystem.
|
Step |
setWorkingDir(String workingDir)
Container's working directory.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Step setArgs(List<String> args)
args - args or null for nonepublic Step setCommand(List<String> command)
command - command or null for nonepublic List<EnvVar> getEnv()
null for nonepublic Step setEnv(List<EnvVar> env)
env - env or null for nonepublic String getImage()
null for nonepublic Step setImage(String image)
image - image or null for nonepublic String getName()
null for nonepublic Step setName(String name)
name - name or null for nonepublic String getOnError()
null for nonepublic Step setOnError(String onError)
onError - onError or null for nonepublic List<Param> getParams()
null for nonepublic Step setParams(List<Param> params)
params - params or null for nonepublic StepRef getRef()
null for nonepublic Step setRef(StepRef ref)
ref - ref or null for nonepublic String getScript()
null for nonepublic Step setScript(String script)
script - script or null for nonepublic SecurityContext getSecurityContext()
null for nonepublic Step setSecurityContext(SecurityContext securityContext)
securityContext - securityContext or null for nonepublic String getTimeout()
null for nonepublic Step setTimeout(String timeout)
timeout - timeout or null for nonepublic List<VolumeMount> getVolumeMounts()
null for nonepublic Step setVolumeMounts(List<VolumeMount> volumeMounts)
volumeMounts - volumeMounts or null for nonepublic String getWorkingDir()
null for nonepublic Step setWorkingDir(String workingDir)
workingDir - workingDir or null for nonepublic Step set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Step clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.