@NotThreadSafe public static final class ImmutableArchivalExternalTarget.Builder extends Object
ImmutableArchivalExternalTarget.
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 |
|---|---|
ImmutableArchivalExternalTarget |
build()
Builds a new
ImmutableArchivalExternalTarget. |
ImmutableArchivalExternalTarget.Builder |
from(ArchivalExternalTarget instance)
Fill a builder with attribute values from the provided
ArchivalExternalTarget instance. |
ImmutableArchivalExternalTarget.Builder |
vaultId(long vaultId)
Initializes the value for the
vaultId attribute. |
ImmutableArchivalExternalTarget.Builder |
vaultName(String vaultName)
Initializes the value for the
vaultName attribute. |
ImmutableArchivalExternalTarget.Builder |
vaultType(VaultType vaultType)
Initializes the value for the
vaultType attribute. |
public final ImmutableArchivalExternalTarget.Builder from(ArchivalExternalTarget instance)
ArchivalExternalTarget 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 ImmutableArchivalExternalTarget.Builder vaultId(long vaultId)
vaultId attribute.vaultId - The value for vaultIdthis builder for use in a chained invocationpublic final ImmutableArchivalExternalTarget.Builder vaultName(String vaultName)
vaultName attribute.vaultName - The value for vaultNamethis builder for use in a chained invocationpublic final ImmutableArchivalExternalTarget.Builder vaultType(VaultType vaultType)
vaultType attribute.vaultType - The value for vaultTypethis builder for use in a chained invocationpublic ImmutableArchivalExternalTarget build()
ImmutableArchivalExternalTarget.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.