/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the glue-2017-03-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Glue.Model
{
///
/// Specifies the mapping of data property keys.
///
public partial class Mapping
{
private List _children = new List();
private bool? _dropped;
private List _fromPath = new List();
private string _fromType;
private string _toKey;
private string _toType;
///
/// Gets and sets the property 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 List Children
{
get { return this._children; }
set { this._children = value; }
}
// Check to see if Children property is set
internal bool IsSetChildren()
{
return this._children != null && this._children.Count > 0;
}
///
/// Gets and sets the property Dropped.
///
/// If true, then the column is removed.
///
///
public bool Dropped
{
get { return this._dropped.GetValueOrDefault(); }
set { this._dropped = value; }
}
// Check to see if Dropped property is set
internal bool IsSetDropped()
{
return this._dropped.HasValue;
}
///
/// Gets and sets the property FromPath.
///
/// The table or column to be modified.
///
///
public List FromPath
{
get { return this._fromPath; }
set { this._fromPath = value; }
}
// Check to see if FromPath property is set
internal bool IsSetFromPath()
{
return this._fromPath != null && this._fromPath.Count > 0;
}
///
/// Gets and sets the property FromType.
///
/// The type of the data to be modified.
///
///
public string FromType
{
get { return this._fromType; }
set { this._fromType = value; }
}
// Check to see if FromType property is set
internal bool IsSetFromType()
{
return this._fromType != null;
}
///
/// Gets and sets the property ToKey.
///
/// After the apply mapping, what the name of the column should be. Can be the same as
/// FromPath
.
///
///
public string ToKey
{
get { return this._toKey; }
set { this._toKey = value; }
}
// Check to see if ToKey property is set
internal bool IsSetToKey()
{
return this._toKey != null;
}
///
/// Gets and sets the property ToType.
///
/// The data type that the data is to be modified to.
///
///
public string ToType
{
get { return this._toType; }
set { this._toType = value; }
}
// Check to see if ToType property is set
internal bool IsSetToType()
{
return this._toType != null;
}
}
}