public static final class DefaultServiceSpec.Builder
extends java.lang.Object
DefaultServiceSpec builder static inner class.| Modifier and Type | Method and Description |
|---|---|
DefaultServiceSpec.Builder |
addPod(PodSpec pod)
Adds the
pod and returns a reference to this Builder so that the methods can be chained together. |
DefaultServiceSpec |
build()
Returns a
DefaultServiceSpec built from the parameters previously set. |
DefaultServiceSpec.Builder |
name(java.lang.String name)
Sets the
name and returns a reference to this Builder so that the methods can be chained together. |
DefaultServiceSpec.Builder |
pods(java.util.List<PodSpec> pods)
Sets the
pods and returns a reference to this Builder so that the methods can be chained together. |
DefaultServiceSpec.Builder |
principal(java.lang.String principal)
Sets the
principal and returns a reference to this Builder so that the methods can be chained
together. |
DefaultServiceSpec.Builder |
replacementFailurePolicy(ReplacementFailurePolicy replacementFailurePolicy)
Sets the
replacementFailurePolicy and returns a reference to this Builder so that the methods can be
chained together. |
DefaultServiceSpec.Builder |
role(java.lang.String role)
Sets the
role and returns a reference to this Builder so that the methods can be chained together. |
DefaultServiceSpec.Builder |
user(java.lang.String user)
Sets the
user and returns a reference to this Builder so that the methods can be chained
together. |
DefaultServiceSpec.Builder |
webUrl(java.lang.String webUrl)
Sets the advertised web UI URL for the service and returns a reference to this Builder so that the methods
can be chained together.
|
DefaultServiceSpec.Builder |
zookeeperConnection(java.lang.String zookeeperConnection)
Sets the
zookeeperConnection and returns a reference to this Builder so that the methods can be
chained together. |
public DefaultServiceSpec.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 DefaultServiceSpec.Builder role(java.lang.String role)
role and returns a reference to this Builder so that the methods can be chained together.role - the role to setpublic DefaultServiceSpec.Builder principal(java.lang.String principal)
principal and returns a reference to this Builder so that the methods can be chained
together.principal - the principal to setpublic DefaultServiceSpec.Builder webUrl(java.lang.String webUrl)
webUrl - the web URL to setpublic DefaultServiceSpec.Builder user(java.lang.String user)
user and returns a reference to this Builder so that the methods can be chained
together.user - the principal to setpublic DefaultServiceSpec.Builder zookeeperConnection(java.lang.String zookeeperConnection)
zookeeperConnection and returns a reference to this Builder so that the methods can be
chained together.zookeeperConnection - the zookeeperConnection to setpublic DefaultServiceSpec.Builder pods(java.util.List<PodSpec> pods)
pods and returns a reference to this Builder so that the methods can be chained together.pods - the pods to setpublic DefaultServiceSpec.Builder addPod(PodSpec pod)
pod and returns a reference to this Builder so that the methods can be chained together.pod - the pod to addpublic DefaultServiceSpec.Builder replacementFailurePolicy(ReplacementFailurePolicy replacementFailurePolicy)
replacementFailurePolicy and returns a reference to this Builder so that the methods can be
chained together.replacementFailurePolicy - the replacementFailurePolicy to setpublic DefaultServiceSpec build()
DefaultServiceSpec built from the parameters previously set.DefaultServiceSpec built with parameters of this DefaultServiceSpec.Builder