@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.instance - The instance from which to copy valuesthis 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 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 invocationpublic ImmutableCatalogRegistration build()
ImmutableCatalogRegistration.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.