public static class ConfigUpgradeChangeDefinition.Transfer extends ConfigUpgradeChangeDefinition.Masked
transfer
element will copy, move, or delete the value of one type/key to another type/key.Modifier and Type | Field and Description |
---|---|
TransferCoercionType |
coerceTo
A data type to convert the configuration value to when the action is
TransferOperation.COPY . |
String |
defaultValue
A default value to use when the configurations don't contain the
fromKey . |
String |
deleteKey
The configuration key to delete, or "*" for all.
|
String |
fromKey
The key to copy or move the configuration from.
|
String |
fromType
The configuration type to copy or move from.
|
List<String> |
keepKeys
The keys to keep when the action is
TransferOperation.DELETE . |
TransferOperation |
operation
The type of operation, such as COPY or DELETE.
|
boolean |
preserveEdits
If
true , this will ensure that any changed properties are not
removed during a TransferOperation.DELETE . |
String |
toKey
The key to copy the configuration value to.
|
mask
ifKey, ifKeyState, ifType, ifValue, ifValueMatchType, ifValueNotMatched
Constructor and Description |
---|
Transfer() |
public TransferOperation operation
public String fromType
public String fromKey
public String toKey
public String deleteKey
public boolean preserveEdits
true
, this will ensure that any changed properties are not
removed during a TransferOperation.DELETE
.public String defaultValue
fromKey
.public TransferCoercionType coerceTo
TransferOperation.COPY
.public List<String> keepKeys
TransferOperation.DELETE
.Copyright © 2022 Apache Software Foundation. All rights reserved.