@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableReplicationTargetSettings extends Object implements ReplicationTargetSettings
ReplicationTargetSettings
.
Use the builder to create immutable instances:
ImmutableReplicationTargetSettings.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableReplicationTargetSettings.Builder
Builds instances of type
ImmutableReplicationTargetSettings . |
Modifier and Type | Method and Description |
---|---|
static ImmutableReplicationTargetSettings.Builder |
builder()
Creates a builder for
ImmutableReplicationTargetSettings . |
long |
clusterId()
Specifies the id of the Remote Cluster.
|
static ImmutableReplicationTargetSettings |
copyOf(ReplicationTargetSettings instance)
Creates an immutable copy of a
ReplicationTargetSettings value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableReplicationTargetSettings that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
clusterId . |
String |
toString()
Prints the immutable value
ReplicationTargetSettings with attribute values. |
ImmutableReplicationTargetSettings |
withClusterId(long value)
Copy the current immutable object by setting a value for the
clusterId attribute. |
public long clusterId()
clusterId
in interface ReplicationTargetSettings
public final ImmutableReplicationTargetSettings withClusterId(long value)
clusterId
attribute.
A value equality check is used to prevent copying of the same value by returning this
.value
- A new value for clusterIdthis
objectpublic boolean equals(@Nullable Object another)
ImmutableReplicationTargetSettings
that have equal attribute values.public int hashCode()
clusterId
.public String toString()
ReplicationTargetSettings
with attribute values.public static ImmutableReplicationTargetSettings copyOf(ReplicationTargetSettings instance)
ReplicationTargetSettings
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 ImmutableReplicationTargetSettings.Builder builder()
ImmutableReplicationTargetSettings
.
ImmutableReplicationTargetSettings.builder()
.clusterId(long) // required clusterId
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.