public static final class GatewayData.Builder extends Object
GatewayData.
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 |
|---|---|
GatewayData |
build()
Builds a new
GatewayData. |
GatewayData.Builder |
from(GatewayData instance)
Fill a builder with attribute values from the provided
GatewayData instance. |
GatewayData.Builder |
name(String name)
Initializes the value for the
name attribute. |
GatewayData.Builder |
option(Map.Entry<String,? extends String> entry)
Put one entry to the
options map. |
GatewayData.Builder |
option(String key,
String value)
Put one entry to the
options map. |
GatewayData.Builder |
options(Map<String,? extends String> options)
Sets or replaces all mappings from the specified map as entries for the
options map. |
GatewayData.Builder |
plan(String plan)
Initializes the value for the
plan attribute. |
GatewayData.Builder |
putAllOptions(Map<String,? extends String> options)
Put all mappings from the specified map as entries to
options map. |
public final GatewayData.Builder from(GatewayData instance)
GatewayData 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 GatewayData.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final GatewayData.Builder option(String key, String value)
options map.key - The key in the options mapvalue - The associated value in the options mapthis builder for use in a chained invocationpublic final GatewayData.Builder option(Map.Entry<String,? extends String> entry)
options map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final GatewayData.Builder options(Map<String,? extends String> options)
options map. Nulls are not permitted as keys or values, but parameter itself can be nulloptions - The entries that will be added to the options mapthis builder for use in a chained invocationpublic final GatewayData.Builder putAllOptions(Map<String,? extends String> options)
options map. Nulls are not permittedoptions - The entries that will be added to the options mapthis builder for use in a chained invocationpublic final GatewayData.Builder plan(String plan)
plan attribute.plan - The value for planthis builder for use in a chained invocationpublic GatewayData build()
GatewayData.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.