@Generated(value="software.amazon.awssdk:codegen") public final class Mapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Mapping.Builder,Mapping>
Specifies the mapping of data property keys.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Mapping.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Mapping.Builder |
builder() |
List<Mapping> |
children()
Only applicable to nested data structures.
|
Boolean |
dropped()
If true, then the column is removed.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
fromPath()
The table or column to be modified.
|
String |
fromType()
The type of the data to be modified.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChildren()
For responses, this returns true if the service returned a value for the Children property.
|
boolean |
hasFromPath()
For responses, this returns true if the service returned a value for the FromPath property.
|
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Mapping.Builder> |
serializableBuilderClass() |
Mapping.Builder |
toBuilder() |
String |
toKey()
After the apply mapping, what the name of the column should be.
|
String |
toString()
Returns a string representation of this object.
|
String |
toType()
The data type that the data is to be modified to.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String toKey()
After the apply mapping, what the name of the column should be. Can be the same as FromPath.
FromPath.public final boolean hasFromPath()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<String> fromPath()
The table or column to be modified.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasFromPath() method.
public final String fromType()
The type of the data to be modified.
public final String toType()
The data type that the data is to be modified to.
public final Boolean dropped()
If true, then the column is removed.
public final boolean hasChildren()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<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, }] }
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasChildren() method.
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.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Mapping.Builder,Mapping>public static Mapping.Builder builder()
public static Class<? extends Mapping.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.