module Stratosphere.KinesisAnalyticsV2.ApplicationReferenceDataSource.RecordColumnProperty ( RecordColumnProperty(..), mkRecordColumnProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data RecordColumnProperty = -- | See: RecordColumnProperty {haddock_workaround_ :: (), -- | See: mapping :: (Prelude.Maybe (Value Prelude.Text)), -- | See: name :: (Value Prelude.Text), -- | See: sqlType :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkRecordColumnProperty :: Value Prelude.Text -> Value Prelude.Text -> RecordColumnProperty mkRecordColumnProperty name sqlType = RecordColumnProperty {haddock_workaround_ = (), name = name, sqlType = sqlType, mapping = Prelude.Nothing} instance ToResourceProperties RecordColumnProperty where toResourceProperties RecordColumnProperty {..} = ResourceProperties {awsType = "AWS::KinesisAnalyticsV2::ApplicationReferenceDataSource.RecordColumn", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["Name" JSON..= name, "SqlType" JSON..= sqlType] (Prelude.catMaybes [(JSON..=) "Mapping" Prelude.<$> mapping]))} instance JSON.ToJSON RecordColumnProperty where toJSON RecordColumnProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["Name" JSON..= name, "SqlType" JSON..= sqlType] (Prelude.catMaybes [(JSON..=) "Mapping" Prelude.<$> mapping]))) instance Property "Mapping" RecordColumnProperty where type PropertyType "Mapping" RecordColumnProperty = Value Prelude.Text set newValue RecordColumnProperty {..} = RecordColumnProperty {mapping = Prelude.pure newValue, ..} instance Property "Name" RecordColumnProperty where type PropertyType "Name" RecordColumnProperty = Value Prelude.Text set newValue RecordColumnProperty {..} = RecordColumnProperty {name = newValue, ..} instance Property "SqlType" RecordColumnProperty where type PropertyType "SqlType" RecordColumnProperty = Value Prelude.Text set newValue RecordColumnProperty {..} = RecordColumnProperty {sqlType = newValue, ..}