ReplicationType Class

public final class ReplicationType
extends ExpandableStringEnum<ReplicationType>

Indicates whether the replication is cross zone or cross region.

Field Summary

Modifier and Type Field and Description
static final ReplicationType CROSS_REGION_REPLICATION

Cross region replication.

static final ReplicationType CROSS_ZONE_REPLICATION

Cross zone replication.

Constructor Summary

Constructor Description
ReplicationType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReplicationType value.

Method Summary

Modifier and Type Method and Description
static ReplicationType fromString(String name)

Creates or finds a ReplicationType from its string representation.

static Collection<ReplicationType> values()

Gets known ReplicationType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

CROSS_REGION_REPLICATION

public static final ReplicationType CROSS_REGION_REPLICATION

Cross region replication.

CROSS_ZONE_REPLICATION

public static final ReplicationType CROSS_ZONE_REPLICATION

Cross zone replication.

Constructor Details

ReplicationType

@Deprecated
public ReplicationType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ReplicationType value.

Method Details

fromString

public static ReplicationType fromString(String name)

Creates or finds a ReplicationType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ReplicationType.

values

public static Collection<ReplicationType> values()

Gets known ReplicationType values.

Returns:

known ReplicationType values.

Applies to