public static final class DefaultTaskSpec.Builder
extends java.lang.Object
DefaultTaskSpec
builder static inner class.Modifier and Type | Method and Description |
---|---|
DefaultTaskSpec |
build()
Returns a
DefaultTaskSpec built from the parameters previously set. |
DefaultTaskSpec.Builder |
commandSpec(CommandSpec commandSpec)
Sets the
commandSpec and returns a reference to this Builder so that the methods can be
chained together. |
DefaultTaskSpec.Builder |
configFiles(java.util.Collection<ConfigFileSpec> configFiles)
Sets the
configFiles and returns a reference to this Builder so that the methods can be
chained together. |
DefaultTaskSpec.Builder |
discoverySpec(DiscoverySpec discoverySpec)
Sets the
discoverySpec and returns a reference to this Builder so that methods can be chained
together. |
DefaultTaskSpec.Builder |
essential(java.lang.Boolean essential)
Sets the
essential bit and returns a reference to this Builder so that the methods can be
chained together. |
DefaultTaskSpec.Builder |
goalState(GoalState goalState)
Sets the
goalState and returns a reference to this Builder so that the methods can be
chained together. |
DefaultTaskSpec.Builder |
healthCheckSpec(HealthCheckSpec healthCheckSpec)
Sets the
healthCheckSpec and returns a reference to this Builder so that the methods can be
chained together. |
DefaultTaskSpec.Builder |
name(java.lang.String name)
Sets the
name and returns a reference to this Builder so that the methods can be chained together. |
DefaultTaskSpec.Builder |
readinessCheckSpec(ReadinessCheckSpec readinessCheckSpec)
Sets the
readinessChecksSpec and returns a reference to this Builder so that the methods can be
chained together. |
DefaultTaskSpec.Builder |
resourceSet(ResourceSet resourceSet)
Sets the
resourceSet and returns a reference to this Builder so that the methods can be
chained together. |
DefaultTaskSpec.Builder |
setTransportEncryption(java.util.Collection<TransportEncryptionSpec> transportEncryption)
Sets the
transportEncryption and returns a reference to this Builder so that methods can be
chained together. |
DefaultTaskSpec.Builder |
taskKillGracePeriodSeconds(java.lang.Integer taskKillGracePeriodSeconds)
Sets the
taskKillGracePeriodSeconds and returns a reference to this Builder so that methods
can be chained together. |
public DefaultTaskSpec.Builder name(java.lang.String name)
name
and returns a reference to this Builder so that the methods can be chained together.name
- the name
to setpublic DefaultTaskSpec.Builder goalState(GoalState goalState)
goalState
and returns a reference to this Builder so that the methods can be
chained together.goalState
- the goalState
to setpublic DefaultTaskSpec.Builder essential(java.lang.Boolean essential)
essential
bit and returns a reference to this Builder so that the methods can be
chained together.essential
- whether relaunching this task relaunches all tasks in the podpublic DefaultTaskSpec.Builder resourceSet(ResourceSet resourceSet)
resourceSet
and returns a reference to this Builder so that the methods can be
chained together.resourceSet
- the resourceSet
to setpublic DefaultTaskSpec.Builder commandSpec(CommandSpec commandSpec)
commandSpec
and returns a reference to this Builder so that the methods can be
chained together.commandSpec
- the commandSpec
to setpublic DefaultTaskSpec.Builder healthCheckSpec(HealthCheckSpec healthCheckSpec)
healthCheckSpec
and returns a reference to this Builder so that the methods can be
chained together.healthCheckSpec
- the healthCheckSpec
to setpublic DefaultTaskSpec.Builder readinessCheckSpec(ReadinessCheckSpec readinessCheckSpec)
readinessChecksSpec
and returns a reference to this Builder so that the methods can be
chained together.readinessCheckSpec
- the readinessCheckSpec
to setpublic DefaultTaskSpec.Builder configFiles(java.util.Collection<ConfigFileSpec> configFiles)
configFiles
and returns a reference to this Builder so that the methods can be
chained together.configFiles
- the configFiles
to setpublic DefaultTaskSpec.Builder discoverySpec(DiscoverySpec discoverySpec)
discoverySpec
and returns a reference to this Builder so that methods can be chained
together.discoverySpec
- The DiscoverySpec
to setpublic DefaultTaskSpec.Builder taskKillGracePeriodSeconds(java.lang.Integer taskKillGracePeriodSeconds)
taskKillGracePeriodSeconds
and returns a reference to this Builder so that methods
can be chained together.taskKillGracePeriodSeconds
- The number of seconds to await the service to cleanly (gracefully)
shutdown following a SIGTERM signal. If the value is null or zero (0), the underlying service will be
sent a SIGKILL immediately.public DefaultTaskSpec build()
DefaultTaskSpec
built from the parameters previously set.DefaultTaskSpec
built with parameters of this DefaultTaskSpec.Builder
public DefaultTaskSpec.Builder setTransportEncryption(java.util.Collection<TransportEncryptionSpec> transportEncryption)
transportEncryption
and returns a reference to this Builder so that methods can be
chained together.transportEncryption
- The TransportEncryptionSpec
to set