module Stratosphere.QuickSight.DataSet.CastColumnTypeOperationProperty (
        CastColumnTypeOperationProperty(..),
        mkCastColumnTypeOperationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CastColumnTypeOperationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-castcolumntypeoperation.html>
    CastColumnTypeOperationProperty {CastColumnTypeOperationProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-castcolumntypeoperation.html#cfn-quicksight-dataset-castcolumntypeoperation-columnname>
                                     CastColumnTypeOperationProperty -> Maybe (Value Text)
columnName :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-castcolumntypeoperation.html#cfn-quicksight-dataset-castcolumntypeoperation-format>
                                     CastColumnTypeOperationProperty -> Maybe (Value Text)
format :: (Prelude.Maybe (Value Prelude.Text)),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-castcolumntypeoperation.html#cfn-quicksight-dataset-castcolumntypeoperation-newcolumntype>
                                     CastColumnTypeOperationProperty -> Value Text
newColumnType :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dataset-castcolumntypeoperation.html#cfn-quicksight-dataset-castcolumntypeoperation-subtype>
                                     CastColumnTypeOperationProperty -> Maybe (Value Text)
subType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty -> Bool
(CastColumnTypeOperationProperty
 -> CastColumnTypeOperationProperty -> Bool)
-> (CastColumnTypeOperationProperty
    -> CastColumnTypeOperationProperty -> Bool)
-> Eq CastColumnTypeOperationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty -> Bool
== :: CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty -> Bool
$c/= :: CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty -> Bool
/= :: CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty -> Bool
Prelude.Eq, Int -> CastColumnTypeOperationProperty -> ShowS
[CastColumnTypeOperationProperty] -> ShowS
CastColumnTypeOperationProperty -> String
(Int -> CastColumnTypeOperationProperty -> ShowS)
-> (CastColumnTypeOperationProperty -> String)
-> ([CastColumnTypeOperationProperty] -> ShowS)
-> Show CastColumnTypeOperationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CastColumnTypeOperationProperty -> ShowS
showsPrec :: Int -> CastColumnTypeOperationProperty -> ShowS
$cshow :: CastColumnTypeOperationProperty -> String
show :: CastColumnTypeOperationProperty -> String
$cshowList :: [CastColumnTypeOperationProperty] -> ShowS
showList :: [CastColumnTypeOperationProperty] -> ShowS
Prelude.Show)
mkCastColumnTypeOperationProperty ::
  Value Prelude.Text -> CastColumnTypeOperationProperty
mkCastColumnTypeOperationProperty :: Value Text -> CastColumnTypeOperationProperty
mkCastColumnTypeOperationProperty Value Text
newColumnType
  = CastColumnTypeOperationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), newColumnType :: Value Text
newColumnType = Value Text
newColumnType,
       columnName :: Maybe (Value Text)
columnName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, format :: Maybe (Value Text)
format = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       subType :: Maybe (Value Text)
subType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CastColumnTypeOperationProperty where
  toResourceProperties :: CastColumnTypeOperationProperty -> ResourceProperties
toResourceProperties CastColumnTypeOperationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CastColumnTypeOperationProperty -> ()
columnName :: CastColumnTypeOperationProperty -> Maybe (Value Text)
format :: CastColumnTypeOperationProperty -> Maybe (Value Text)
newColumnType :: CastColumnTypeOperationProperty -> Value Text
subType :: CastColumnTypeOperationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::DataSet.CastColumnTypeOperation",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"NewColumnType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
newColumnType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
columnName,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Format" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
format,
                               Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SubType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
subType]))}
instance JSON.ToJSON CastColumnTypeOperationProperty where
  toJSON :: CastColumnTypeOperationProperty -> Value
toJSON CastColumnTypeOperationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CastColumnTypeOperationProperty -> ()
columnName :: CastColumnTypeOperationProperty -> Maybe (Value Text)
format :: CastColumnTypeOperationProperty -> Maybe (Value Text)
newColumnType :: CastColumnTypeOperationProperty -> Value Text
subType :: CastColumnTypeOperationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"NewColumnType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
newColumnType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
columnName,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Format" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
format,
                  Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SubType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
subType])))
instance Property "ColumnName" CastColumnTypeOperationProperty where
  type PropertyType "ColumnName" CastColumnTypeOperationProperty = Value Prelude.Text
  set :: PropertyType "ColumnName" CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
set PropertyType "ColumnName" CastColumnTypeOperationProperty
newValue CastColumnTypeOperationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CastColumnTypeOperationProperty -> ()
columnName :: CastColumnTypeOperationProperty -> Maybe (Value Text)
format :: CastColumnTypeOperationProperty -> Maybe (Value Text)
newColumnType :: CastColumnTypeOperationProperty -> Value Text
subType :: CastColumnTypeOperationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
    = CastColumnTypeOperationProperty
        {columnName :: Maybe (Value Text)
columnName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColumnName" CastColumnTypeOperationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
haddock_workaround_ :: ()
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
instance Property "Format" CastColumnTypeOperationProperty where
  type PropertyType "Format" CastColumnTypeOperationProperty = Value Prelude.Text
  set :: PropertyType "Format" CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
set PropertyType "Format" CastColumnTypeOperationProperty
newValue CastColumnTypeOperationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CastColumnTypeOperationProperty -> ()
columnName :: CastColumnTypeOperationProperty -> Maybe (Value Text)
format :: CastColumnTypeOperationProperty -> Maybe (Value Text)
newColumnType :: CastColumnTypeOperationProperty -> Value Text
subType :: CastColumnTypeOperationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
    = CastColumnTypeOperationProperty
        {format :: Maybe (Value Text)
format = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Format" CastColumnTypeOperationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
instance Property "NewColumnType" CastColumnTypeOperationProperty where
  type PropertyType "NewColumnType" CastColumnTypeOperationProperty = Value Prelude.Text
  set :: PropertyType "NewColumnType" CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
set PropertyType "NewColumnType" CastColumnTypeOperationProperty
newValue CastColumnTypeOperationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CastColumnTypeOperationProperty -> ()
columnName :: CastColumnTypeOperationProperty -> Maybe (Value Text)
format :: CastColumnTypeOperationProperty -> Maybe (Value Text)
newColumnType :: CastColumnTypeOperationProperty -> Value Text
subType :: CastColumnTypeOperationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
    = CastColumnTypeOperationProperty {newColumnType :: Value Text
newColumnType = PropertyType "NewColumnType" CastColumnTypeOperationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
subType :: Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
subType :: Maybe (Value Text)
..}
instance Property "SubType" CastColumnTypeOperationProperty where
  type PropertyType "SubType" CastColumnTypeOperationProperty = Value Prelude.Text
  set :: PropertyType "SubType" CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
-> CastColumnTypeOperationProperty
set PropertyType "SubType" CastColumnTypeOperationProperty
newValue CastColumnTypeOperationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: CastColumnTypeOperationProperty -> ()
columnName :: CastColumnTypeOperationProperty -> Maybe (Value Text)
format :: CastColumnTypeOperationProperty -> Maybe (Value Text)
newColumnType :: CastColumnTypeOperationProperty -> Value Text
subType :: CastColumnTypeOperationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
subType :: Maybe (Value Text)
..}
    = CastColumnTypeOperationProperty
        {subType :: Maybe (Value Text)
subType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SubType" CastColumnTypeOperationProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
haddock_workaround_ :: ()
columnName :: Maybe (Value Text)
format :: Maybe (Value Text)
newColumnType :: Value Text
..}