@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Mapping extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the mapping of data property keys.
Constructor and Description |
---|
Mapping() |
Modifier and Type | Method and Description |
---|---|
Mapping |
clone() |
boolean |
equals(Object obj) |
List<Mapping> |
getChildren()
Only applicable to nested data structures.
|
Boolean |
getDropped()
If true, then the column is removed.
|
List<String> |
getFromPath()
The table or column to be modified.
|
String |
getFromType()
The type of the data to be modified.
|
String |
getToKey()
After the apply mapping, what the name of the column should be.
|
String |
getToType()
The data type that the data is to be modified to.
|
int |
hashCode() |
Boolean |
isDropped()
If true, then the column is removed.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setChildren(Collection<Mapping> children)
Only applicable to nested data structures.
|
void |
setDropped(Boolean dropped)
If true, then the column is removed.
|
void |
setFromPath(Collection<String> fromPath)
The table or column to be modified.
|
void |
setFromType(String fromType)
The type of the data to be modified.
|
void |
setToKey(String toKey)
After the apply mapping, what the name of the column should be.
|
void |
setToType(String toType)
The data type that the data is to be modified to.
|
String |
toString()
Returns a string representation of this object.
|
Mapping |
withChildren(Collection<Mapping> children)
Only applicable to nested data structures.
|
Mapping |
withChildren(Mapping... children)
Only applicable to nested data structures.
|
Mapping |
withDropped(Boolean dropped)
If true, then the column is removed.
|
Mapping |
withFromPath(Collection<String> fromPath)
The table or column to be modified.
|
Mapping |
withFromPath(String... fromPath)
The table or column to be modified.
|
Mapping |
withFromType(String fromType)
The type of the data to be modified.
|
Mapping |
withToKey(String toKey)
After the apply mapping, what the name of the column should be.
|
Mapping |
withToType(String toType)
The data type that the data is to be modified to.
|
public void setToKey(String toKey)
After the apply mapping, what the name of the column should be. Can be the same as FromPath
.
toKey
- After the apply mapping, what the name of the column should be. Can be the same as FromPath
.public String getToKey()
After the apply mapping, what the name of the column should be. Can be the same as FromPath
.
FromPath
.public Mapping withToKey(String toKey)
After the apply mapping, what the name of the column should be. Can be the same as FromPath
.
toKey
- After the apply mapping, what the name of the column should be. Can be the same as FromPath
.public List<String> getFromPath()
The table or column to be modified.
public void setFromPath(Collection<String> fromPath)
The table or column to be modified.
fromPath
- The table or column to be modified.public Mapping withFromPath(String... fromPath)
The table or column to be modified.
NOTE: This method appends the values to the existing list (if any). Use
setFromPath(java.util.Collection)
or withFromPath(java.util.Collection)
if you want to override
the existing values.
fromPath
- The table or column to be modified.public Mapping withFromPath(Collection<String> fromPath)
The table or column to be modified.
fromPath
- The table or column to be modified.public void setFromType(String fromType)
The type of the data to be modified.
fromType
- The type of the data to be modified.public String getFromType()
The type of the data to be modified.
public Mapping withFromType(String fromType)
The type of the data to be modified.
fromType
- The type of the data to be modified.public void setToType(String toType)
The data type that the data is to be modified to.
toType
- The data type that the data is to be modified to.public String getToType()
The data type that the data is to be modified to.
public Mapping withToType(String toType)
The data type that the data is to be modified to.
toType
- The data type that the data is to be modified to.public void setDropped(Boolean dropped)
If true, then the column is removed.
dropped
- If true, then the column is removed.public Boolean getDropped()
If true, then the column is removed.
public Mapping withDropped(Boolean dropped)
If true, then the column is removed.
dropped
- If true, then the column is removed.public Boolean isDropped()
If true, then the column is removed.
public List<Mapping> getChildren()
Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping
, but its FromPath
will be the parent's FromPath
plus the FromPath
from this structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
Mapping
, but its
FromPath
will be the parent's FromPath
plus the FromPath
from this
structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
public void setChildren(Collection<Mapping> children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping
, but its FromPath
will be the parent's FromPath
plus the FromPath
from this structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
children
- Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping
, but its
FromPath
will be the parent's FromPath
plus the FromPath
from this
structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
public Mapping withChildren(Mapping... children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping
, but its FromPath
will be the parent's FromPath
plus the FromPath
from this structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
NOTE: This method appends the values to the existing list (if any). Use
setChildren(java.util.Collection)
or withChildren(java.util.Collection)
if you want to override
the existing values.
children
- Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping
, but its
FromPath
will be the parent's FromPath
plus the FromPath
from this
structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
public Mapping withChildren(Collection<Mapping> children)
Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping
, but its FromPath
will be the parent's FromPath
plus the FromPath
from this structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
children
- Only applicable to nested data structures. If you want to change the parent structure, but also one of its
children, you can fill out this data strucutre. It is also Mapping
, but its
FromPath
will be the parent's FromPath
plus the FromPath
from this
structure.
For the children part, suppose you have the structure:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
You can specify a Mapping
that looks like:
{ "FromPath": "OuterStructure", "ToKey": "OuterStructure", "ToType": "Struct", "Dropped": false, "Chidlren": [{ "FromPath": "inner", "ToKey": "inner", "ToType": "Double", "Dropped": false, }] }
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.