public static final class CreateServiceInstanceRequest.Builder extends Object
CreateServiceInstanceRequest
.
Initialize attributes and then invoke the build()
method to create an
immutable instance.
Builder
is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
Modifier and Type | Method and Description |
---|---|
CreateServiceInstanceRequest.Builder |
addAllTags(Iterable<String> elements)
Adds elements to
tags list. |
CreateServiceInstanceRequest |
build()
Builds a new
CreateServiceInstanceRequest . |
CreateServiceInstanceRequest.Builder |
from(CreateServiceInstanceRequest instance)
Fill a builder with attribute values from the provided
CreateServiceInstanceRequest instance. |
CreateServiceInstanceRequest.Builder |
parameter(Map.Entry<String,? extends Object> entry)
Put one entry to the
parameters map. |
CreateServiceInstanceRequest.Builder |
parameter(String key,
Object value)
Put one entry to the
parameters map. |
CreateServiceInstanceRequest.Builder |
parameters(Map<String,? extends Object> parameters)
Sets or replaces all mappings from the specified map as entries for the
parameters map. |
CreateServiceInstanceRequest.Builder |
planName(String planName)
Initializes the value for the
planName attribute. |
CreateServiceInstanceRequest.Builder |
putAllParameters(Map<String,? extends Object> parameters)
Put all mappings from the specified map as entries to
parameters map. |
CreateServiceInstanceRequest.Builder |
serviceInstanceName(String serviceInstanceName)
Initializes the value for the
serviceInstanceName attribute. |
CreateServiceInstanceRequest.Builder |
serviceName(String serviceName)
Initializes the value for the
serviceName attribute. |
CreateServiceInstanceRequest.Builder |
tag(String... elements)
Adds elements to
tags list. |
CreateServiceInstanceRequest.Builder |
tag(String element)
Adds one element to
tags list. |
CreateServiceInstanceRequest.Builder |
tags(Iterable<String> elements)
Sets or replaces all elements for
tags list. |
public final CreateServiceInstanceRequest.Builder from(CreateServiceInstanceRequest instance)
CreateServiceInstanceRequest
instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance
- The instance from which to copy valuesthis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder parameter(String key, Object value)
parameters
map.key
- The key in the parameters mapvalue
- The associated value in the parameters mapthis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder parameter(Map.Entry<String,? extends Object> entry)
parameters
map. Nulls are not permittedentry
- The key and value entrythis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder parameters(Map<String,? extends Object> parameters)
parameters
map. Nulls are not permitted as keys or values, but parameter itself can be nullparameters
- The entries that will be added to the parameters mapthis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder putAllParameters(Map<String,? extends Object> parameters)
parameters
map. Nulls are not permittedparameters
- The entries that will be added to the parameters mapthis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder planName(String planName)
planName
attribute.planName
- The value for planNamethis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder serviceInstanceName(String serviceInstanceName)
serviceInstanceName
attribute.serviceInstanceName
- The value for serviceInstanceNamethis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder serviceName(String serviceName)
serviceName
attribute.serviceName
- The value for serviceNamethis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder tag(String element)
tags
list.element
- A tags elementthis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder tag(String... elements)
tags
list.elements
- An array of tags elementsthis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder tags(Iterable<String> elements)
tags
list.elements
- An iterable of tags elementsthis
builder for use in a chained invocationpublic final CreateServiceInstanceRequest.Builder addAllTags(Iterable<String> elements)
tags
list.elements
- An iterable of tags elementsthis
builder for use in a chained invocationpublic CreateServiceInstanceRequest build()
CreateServiceInstanceRequest
.IllegalStateException
- if any required attributes are missingCopyright © 2016 Pivotal Software, Inc.. All rights reserved.