public static final class DefaultPodSpec.Builder
extends java.lang.Object
DefaultPodSpec builder static inner class.| Modifier and Type | Method and Description |
|---|---|
DefaultPodSpec.Builder |
addTask(TaskSpec task)
Adds the
task and returns a reference to this Builder so that the methods can be chained together. |
DefaultPodSpec.Builder |
addUri(java.net.URI uri)
Adds the
uris and returns a reference to this Builder so that the methods can be chained together. |
DefaultPodSpec.Builder |
allowDecommission(java.lang.Boolean allowDecommission)
Sets whether the
count(Integer) for this pod can ever be decreased in a config update. |
DefaultPodSpec |
build()
Returns a
DefaultPodSpec built from the parameters previously set. |
DefaultPodSpec.Builder |
count(java.lang.Integer count)
Sets the
count and returns a reference to this Builder so that the methods can be chained together. |
DefaultPodSpec.Builder |
image(java.lang.String image)
Sets the
image and returns a reference to this Builder so that the methods can be
chained together. |
DefaultPodSpec.Builder |
networks(java.util.Collection<NetworkSpec> networks)
Sets the
networks and returns a reference to this Builder so that the methods can be
chained together. |
DefaultPodSpec.Builder |
placementRule(PlacementRule placementRule)
Sets the
placementRule and returns a reference to this Builder so that the methods can be chained
together. |
DefaultPodSpec.Builder |
preReservedRole(java.lang.String preReservedRole)
Sets the
pre-reserved-role and returns a reference to this Builder so that the methods can be
chained together. |
DefaultPodSpec.Builder |
rlimits(java.util.Collection<RLimitSpec> rlimits)
Sets the
rlimits and returns a reference to this Builder so that the methods can be
chained together. |
DefaultPodSpec.Builder |
secrets(java.util.Collection<SecretSpec> secrets)
Sets the
secrets and returns a reference to this Builder so that the methods can be
chained together. |
DefaultPodSpec.Builder |
sharePidNamespace(java.lang.Boolean sharePidNamespace)
Sets whether tasks in this pod share a pid namespace and returns a reference to this Builder so that the
methods can be chained together.
|
DefaultPodSpec.Builder |
tasks(java.util.List<TaskSpec> tasks)
Sets the
tasks and returns a reference to this Builder so that the methods can be chained together. |
DefaultPodSpec.Builder |
type(java.lang.String type)
Sets the
type and returns a reference to this Builder so that the methods can be chained together. |
DefaultPodSpec.Builder |
uris(java.util.Collection<java.net.URI> uris)
Sets the
uris and returns a reference to this Builder so that the methods can be chained together. |
DefaultPodSpec.Builder |
user(java.lang.String user)
Sets the
user and returns a reference to this Builder so that the methods can be chained together. |
DefaultPodSpec.Builder |
volumes(java.util.Collection<VolumeSpec> volumes)
Sets the
volumes and returns a reference to this Builder so that the methods can be
chained together. |
public DefaultPodSpec.Builder type(java.lang.String type)
type and returns a reference to this Builder so that the methods can be chained together.type - the type to setpublic DefaultPodSpec.Builder user(java.lang.String user)
user and returns a reference to this Builder so that the methods can be chained together.user - the user to setpublic DefaultPodSpec.Builder count(java.lang.Integer count)
count and returns a reference to this Builder so that the methods can be chained together.count - the count to setpublic DefaultPodSpec.Builder allowDecommission(java.lang.Boolean allowDecommission)
count(Integer) for this pod can ever be decreased in a config update.allowDecommission - whether the count can be decreased in a config updatepublic DefaultPodSpec.Builder image(java.lang.String image)
image and returns a reference to this Builder so that the methods can be
chained together.image - the image to setpublic DefaultPodSpec.Builder networks(java.util.Collection<NetworkSpec> networks)
networks and returns a reference to this Builder so that the methods can be
chained together.networks - the networks to setpublic DefaultPodSpec.Builder rlimits(java.util.Collection<RLimitSpec> rlimits)
rlimits and returns a reference to this Builder so that the methods can be
chained together.rlimits - the rlimits to setpublic DefaultPodSpec.Builder uris(java.util.Collection<java.net.URI> uris)
uris and returns a reference to this Builder so that the methods can be chained together.uris - the uris to setpublic DefaultPodSpec.Builder addUri(java.net.URI uri)
uris and returns a reference to this Builder so that the methods can be chained together.uri - the uri to addpublic DefaultPodSpec.Builder tasks(java.util.List<TaskSpec> tasks)
tasks and returns a reference to this Builder so that the methods can be chained together.tasks - the tasks to setpublic DefaultPodSpec.Builder addTask(TaskSpec task)
task and returns a reference to this Builder so that the methods can be chained together.task - the task to addpublic DefaultPodSpec.Builder placementRule(PlacementRule placementRule)
placementRule and returns a reference to this Builder so that the methods can be chained
together.placementRule - the placementRule to setpublic DefaultPodSpec.Builder volumes(java.util.Collection<VolumeSpec> volumes)
volumes and returns a reference to this Builder so that the methods can be
chained together.volumes - the volumes to setpublic DefaultPodSpec.Builder preReservedRole(java.lang.String preReservedRole)
pre-reserved-role and returns a reference to this Builder so that the methods can be
chained together.preReservedRole - the preReservedRole to setpublic DefaultPodSpec.Builder secrets(java.util.Collection<SecretSpec> secrets)
secrets and returns a reference to this Builder so that the methods can be
chained together.secrets - the secrets to setpublic DefaultPodSpec.Builder sharePidNamespace(java.lang.Boolean sharePidNamespace)
sharePidNamespace - whether tasks in this pod share a pid namespacepublic DefaultPodSpec build()
DefaultPodSpec built from the parameters previously set.DefaultPodSpec built with parameters of this DefaultPodSpec.Builder