@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableArchivalExternalTarget extends Object implements ArchivalExternalTarget
ArchivalExternalTarget.
Use the builder to create immutable instances:
ImmutableArchivalExternalTarget.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableArchivalExternalTarget.Builder
Builds instances of type
ImmutableArchivalExternalTarget. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableArchivalExternalTarget.Builder |
builder()
Creates a builder for
ImmutableArchivalExternalTarget. |
static ImmutableArchivalExternalTarget |
copyOf(ArchivalExternalTarget instance)
Creates an immutable copy of a
ArchivalExternalTarget value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableArchivalExternalTarget that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
vaultId, vaultName, vaultType. |
String |
toString()
Prints the immutable value
ArchivalExternalTarget with attribute values. |
long |
vaultId()
Specifies the id of Archival Vault.
|
String |
vaultName()
Name of the Archival Vault.
|
VaultType |
vaultType()
Specifies the type of the Archival External Target such as 'CLOUD',
|
ImmutableArchivalExternalTarget |
withVaultId(long value)
Copy the current immutable object by setting a value for the
vaultId attribute. |
ImmutableArchivalExternalTarget |
withVaultName(String value)
Copy the current immutable object by setting a value for the
vaultName attribute. |
ImmutableArchivalExternalTarget |
withVaultType(VaultType value)
Copy the current immutable object by setting a value for the
vaultType attribute. |
public long vaultId()
vaultId in interface ArchivalExternalTargetpublic String vaultName()
vaultName in interface ArchivalExternalTargetpublic VaultType vaultType()
vaultType in interface ArchivalExternalTargetpublic final ImmutableArchivalExternalTarget withVaultId(long value)
vaultId attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for vaultIdthis objectpublic final ImmutableArchivalExternalTarget withVaultName(String value)
vaultName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for vaultNamethis objectpublic final ImmutableArchivalExternalTarget withVaultType(VaultType value)
vaultType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for vaultTypethis objectpublic boolean equals(@Nullable Object another)
ImmutableArchivalExternalTarget that have equal attribute values.public int hashCode()
vaultId, vaultName, vaultType.public String toString()
ArchivalExternalTarget with attribute values.public static ImmutableArchivalExternalTarget copyOf(ArchivalExternalTarget instance)
ArchivalExternalTarget value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableArchivalExternalTarget.Builder builder()
ImmutableArchivalExternalTarget.
ImmutableArchivalExternalTarget.builder()
.vaultId(long) // required vaultId
.vaultName(String) // required vaultName
.vaultType(com.iland.cohesity.iaas.backups.common.enums.VaultType) // required vaultType
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.