public static final class ImmutableCatalogOptions.Builder extends Object
ImmutableCatalogOptions.
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 |
|---|---|
ImmutableCatalogOptions |
build()
Builds a new
ImmutableCatalogOptions. |
ImmutableCatalogOptions.Builder |
datacenter(com.google.common.base.Optional<String> datacenter)
Initializes the optional value
datacenter to datacenter. |
ImmutableCatalogOptions.Builder |
datacenter(String datacenter)
Initializes the optional value
datacenter to datacenter. |
ImmutableCatalogOptions.Builder |
from(CatalogOptions instance)
Fill a builder with attribute values from the provided
CatalogOptions instance. |
ImmutableCatalogOptions.Builder |
tag(com.google.common.base.Optional<String> tag)
Initializes the optional value
tag to tag. |
ImmutableCatalogOptions.Builder |
tag(String tag)
Initializes the optional value
tag to tag. |
public final ImmutableCatalogOptions.Builder from(CatalogOptions instance)
CatalogOptions instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableCatalogOptions.Builder datacenter(String datacenter)
datacenter to datacenter.datacenter - The value for datacenterthis builder for chained invocationpublic final ImmutableCatalogOptions.Builder datacenter(com.google.common.base.Optional<String> datacenter)
datacenter to datacenter.datacenter - The value for datacenterthis builder for use in a chained invocationpublic final ImmutableCatalogOptions.Builder tag(String tag)
tag to tag.tag - The value for tagthis builder for chained invocationpublic final ImmutableCatalogOptions.Builder tag(com.google.common.base.Optional<String> tag)
tag to tag.tag - The value for tagthis builder for use in a chained invocationpublic ImmutableCatalogOptions build()
ImmutableCatalogOptions.IllegalStateException - if any required attributes are missingCopyright © 2016. All rights reserved.