@NotThreadSafe public static final class ImmutableCatalogRegistration.Builder extends Object
ImmutableCatalogRegistration.
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.
@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder from(CatalogRegistration instance)
CatalogRegistration 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 invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder id(String id)
id to id.id - The value for idthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder id(Optional<String> id)
id to id.id - The value for idthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder datacenter(String datacenter)
datacenter to datacenter.datacenter - The value for datacenterthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder datacenter(Optional<String> datacenter)
datacenter to datacenter.datacenter - The value for datacenterthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder node(String node)
node attribute.node - The value for nodethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder address(String address)
address attribute.address - The value for addressthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder putNodeMeta(String key, String value)
nodeMeta map.key - The key in the nodeMeta mapvalue - The associated value in the nodeMeta mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder putNodeMeta(Map.Entry<String,? extends String> entry)
nodeMeta map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder nodeMeta(Map<String,? extends String> entries)
nodeMeta map. Nulls are not permittedentries - The entries that will be added to the nodeMeta mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder putAllNodeMeta(Map<String,? extends String> entries)
nodeMeta map. Nulls are not permittedentries - The entries that will be added to the nodeMeta mapthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder taggedAddresses(TaggedAddresses taggedAddresses)
taggedAddresses to taggedAddresses.taggedAddresses - The value for taggedAddressesthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder taggedAddresses(Optional<? extends TaggedAddresses> taggedAddresses)
taggedAddresses to taggedAddresses.taggedAddresses - The value for taggedAddressesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder service(Service service)
service to service.service - The value for servicethis builder for chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder service(Optional<? extends Service> service)
service to service.service - The value for servicethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder check(Check check)
check to check.check - The value for checkthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder check(Optional<? extends Check> check)
check to check.check - The value for checkthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder writeRequest(WriteRequest writeRequest)
writeRequest to writeRequest.writeRequest - The value for writeRequestthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder writeRequest(Optional<? extends WriteRequest> writeRequest)
writeRequest to writeRequest.writeRequest - The value for writeRequestthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder skipNodeUpdate(boolean skipNodeUpdate)
skipNodeUpdate to skipNodeUpdate.skipNodeUpdate - The value for skipNodeUpdatethis builder for chained invocation@CanIgnoreReturnValue public final ImmutableCatalogRegistration.Builder skipNodeUpdate(Optional<Boolean> skipNodeUpdate)
skipNodeUpdate to skipNodeUpdate.skipNodeUpdate - The value for skipNodeUpdatethis builder for use in a chained invocationpublic ImmutableCatalogRegistration build()
ImmutableCatalogRegistration.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.