public static final class DefaultResourceSpec.Builder
extends java.lang.Object
DefaultResourceSpec builder static inner class.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
preReservedRole |
| Modifier and Type | Method and Description |
|---|---|
DefaultResourceSpec |
build()
Returns a
DefaultResourceSpec built from the parameters previously set. |
DefaultResourceSpec.Builder |
name(java.lang.String name)
Sets the
name and returns a reference to this Builder so that the methods can be chained together. |
DefaultResourceSpec.Builder |
preReservedRole(java.lang.String preReservedRole) |
DefaultResourceSpec.Builder |
principal(java.lang.String principal)
Sets the
principal and returns a reference to this Builder so that the methods can be chained
together. |
DefaultResourceSpec.Builder |
role(java.lang.String role)
Sets the
role and returns a reference to this Builder so that the methods can be chained together. |
DefaultResourceSpec.Builder |
value(Protos.Value value)
Sets the
value and returns a reference to this Builder so that the methods can be chained together. |
public DefaultResourceSpec.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 DefaultResourceSpec.Builder value(Protos.Value value)
value and returns a reference to this Builder so that the methods can be chained together.value - the value to setpublic DefaultResourceSpec.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 DefaultResourceSpec.Builder preReservedRole(java.lang.String preReservedRole)
public DefaultResourceSpec.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 DefaultResourceSpec build()
DefaultResourceSpec built from the parameters previously set.DefaultResourceSpec built with parameters of this
DefaultResourceSpec.Builder