@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSnapshotTargetSettings extends Object implements SnapshotTargetSettings
SnapshotTargetSettings
.
Use the builder to create immutable instances:
ImmutableSnapshotTargetSettings.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableSnapshotTargetSettings.Builder
Builds instances of type
ImmutableSnapshotTargetSettings . |
Modifier and Type | Method and Description |
---|---|
Optional<ArchivalExternalTarget> |
archivalTarget()
Specifies settings about the archival external target.
|
static ImmutableSnapshotTargetSettings.Builder |
builder()
Creates a builder for
ImmutableSnapshotTargetSettings . |
static ImmutableSnapshotTargetSettings |
copyOf(SnapshotTargetSettings instance)
Creates an immutable copy of a
SnapshotTargetSettings value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSnapshotTargetSettings that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
archivalTarget , replicationTarget , type . |
Optional<ReplicationTargetSettings> |
replicationTarget()
Specifies settings about the offsite backup replication target.
|
String |
toString()
Prints the immutable value
SnapshotTargetSettings with attribute values. |
SnapshotTargetType |
type()
Specifies the type of a snapshot target.
|
ImmutableSnapshotTargetSettings |
withArchivalTarget(ArchivalExternalTarget value)
Copy the current immutable object by setting a present value for the optional
archivalTarget attribute. |
ImmutableSnapshotTargetSettings |
withArchivalTarget(Optional<? extends ArchivalExternalTarget> optional)
Copy the current immutable object by setting an optional value for the
archivalTarget attribute. |
ImmutableSnapshotTargetSettings |
withReplicationTarget(Optional<? extends ReplicationTargetSettings> optional)
Copy the current immutable object by setting an optional value for the
replicationTarget attribute. |
ImmutableSnapshotTargetSettings |
withReplicationTarget(ReplicationTargetSettings value)
Copy the current immutable object by setting a present value for the optional
replicationTarget attribute. |
ImmutableSnapshotTargetSettings |
withType(SnapshotTargetType value)
Copy the current immutable object by setting a value for the
type attribute. |
public Optional<ArchivalExternalTarget> archivalTarget()
archivalTarget
in interface SnapshotTargetSettings
public Optional<ReplicationTargetSettings> replicationTarget()
replicationTarget
in interface SnapshotTargetSettings
public SnapshotTargetType type()
type
in interface SnapshotTargetSettings
public final ImmutableSnapshotTargetSettings withArchivalTarget(ArchivalExternalTarget value)
archivalTarget
attribute.value
- The value for archivalTargetthis
objectpublic final ImmutableSnapshotTargetSettings withArchivalTarget(Optional<? extends ArchivalExternalTarget> optional)
archivalTarget
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for archivalTargetthis
objectpublic final ImmutableSnapshotTargetSettings withReplicationTarget(ReplicationTargetSettings value)
replicationTarget
attribute.value
- The value for replicationTargetthis
objectpublic final ImmutableSnapshotTargetSettings withReplicationTarget(Optional<? extends ReplicationTargetSettings> optional)
replicationTarget
attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this
.optional
- A value for replicationTargetthis
objectpublic final ImmutableSnapshotTargetSettings withType(SnapshotTargetType value)
type
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for typethis
objectpublic boolean equals(@Nullable Object another)
ImmutableSnapshotTargetSettings
that have equal attribute values.public int hashCode()
archivalTarget
, replicationTarget
, type
.public String toString()
SnapshotTargetSettings
with attribute values.public static ImmutableSnapshotTargetSettings copyOf(SnapshotTargetSettings instance)
SnapshotTargetSettings
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 ImmutableSnapshotTargetSettings.Builder builder()
ImmutableSnapshotTargetSettings
.
ImmutableSnapshotTargetSettings.builder() .archivalTarget(com.iland.cohesity.iaas.backups.common.model.ArchivalExternalTarget) // optionalarchivalTarget
.replicationTarget(com.iland.cohesity.iaas.backups.common.model.ReplicationTargetSettings) // optionalreplicationTarget
.type(com.iland.cohesity.iaas.backups.common.enums.SnapshotTargetType) // requiredtype
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.