{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.QuickSight.Types.ColumnGroupColumnSchema where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ColumnGroupColumnSchema = ColumnGroupColumnSchema'
{
ColumnGroupColumnSchema -> Maybe Text
name :: Prelude.Maybe Prelude.Text
}
deriving (ColumnGroupColumnSchema -> ColumnGroupColumnSchema -> Bool
(ColumnGroupColumnSchema -> ColumnGroupColumnSchema -> Bool)
-> (ColumnGroupColumnSchema -> ColumnGroupColumnSchema -> Bool)
-> Eq ColumnGroupColumnSchema
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ColumnGroupColumnSchema -> ColumnGroupColumnSchema -> Bool
$c/= :: ColumnGroupColumnSchema -> ColumnGroupColumnSchema -> Bool
== :: ColumnGroupColumnSchema -> ColumnGroupColumnSchema -> Bool
$c== :: ColumnGroupColumnSchema -> ColumnGroupColumnSchema -> Bool
Prelude.Eq, ReadPrec [ColumnGroupColumnSchema]
ReadPrec ColumnGroupColumnSchema
Int -> ReadS ColumnGroupColumnSchema
ReadS [ColumnGroupColumnSchema]
(Int -> ReadS ColumnGroupColumnSchema)
-> ReadS [ColumnGroupColumnSchema]
-> ReadPrec ColumnGroupColumnSchema
-> ReadPrec [ColumnGroupColumnSchema]
-> Read ColumnGroupColumnSchema
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ColumnGroupColumnSchema]
$creadListPrec :: ReadPrec [ColumnGroupColumnSchema]
readPrec :: ReadPrec ColumnGroupColumnSchema
$creadPrec :: ReadPrec ColumnGroupColumnSchema
readList :: ReadS [ColumnGroupColumnSchema]
$creadList :: ReadS [ColumnGroupColumnSchema]
readsPrec :: Int -> ReadS ColumnGroupColumnSchema
$creadsPrec :: Int -> ReadS ColumnGroupColumnSchema
Prelude.Read, Int -> ColumnGroupColumnSchema -> ShowS
[ColumnGroupColumnSchema] -> ShowS
ColumnGroupColumnSchema -> String
(Int -> ColumnGroupColumnSchema -> ShowS)
-> (ColumnGroupColumnSchema -> String)
-> ([ColumnGroupColumnSchema] -> ShowS)
-> Show ColumnGroupColumnSchema
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ColumnGroupColumnSchema] -> ShowS
$cshowList :: [ColumnGroupColumnSchema] -> ShowS
show :: ColumnGroupColumnSchema -> String
$cshow :: ColumnGroupColumnSchema -> String
showsPrec :: Int -> ColumnGroupColumnSchema -> ShowS
$cshowsPrec :: Int -> ColumnGroupColumnSchema -> ShowS
Prelude.Show, (forall x.
ColumnGroupColumnSchema -> Rep ColumnGroupColumnSchema x)
-> (forall x.
Rep ColumnGroupColumnSchema x -> ColumnGroupColumnSchema)
-> Generic ColumnGroupColumnSchema
forall x. Rep ColumnGroupColumnSchema x -> ColumnGroupColumnSchema
forall x. ColumnGroupColumnSchema -> Rep ColumnGroupColumnSchema x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ColumnGroupColumnSchema x -> ColumnGroupColumnSchema
$cfrom :: forall x. ColumnGroupColumnSchema -> Rep ColumnGroupColumnSchema x
Prelude.Generic)
newColumnGroupColumnSchema ::
ColumnGroupColumnSchema
newColumnGroupColumnSchema :: ColumnGroupColumnSchema
newColumnGroupColumnSchema =
ColumnGroupColumnSchema' :: Maybe Text -> ColumnGroupColumnSchema
ColumnGroupColumnSchema' {$sel:name:ColumnGroupColumnSchema' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing}
columnGroupColumnSchema_name :: Lens.Lens' ColumnGroupColumnSchema (Prelude.Maybe Prelude.Text)
columnGroupColumnSchema_name :: (Maybe Text -> f (Maybe Text))
-> ColumnGroupColumnSchema -> f ColumnGroupColumnSchema
columnGroupColumnSchema_name = (ColumnGroupColumnSchema -> Maybe Text)
-> (ColumnGroupColumnSchema
-> Maybe Text -> ColumnGroupColumnSchema)
-> Lens
ColumnGroupColumnSchema
ColumnGroupColumnSchema
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ColumnGroupColumnSchema' {Maybe Text
name :: Maybe Text
$sel:name:ColumnGroupColumnSchema' :: ColumnGroupColumnSchema -> Maybe Text
name} -> Maybe Text
name) (\s :: ColumnGroupColumnSchema
s@ColumnGroupColumnSchema' {} Maybe Text
a -> ColumnGroupColumnSchema
s {$sel:name:ColumnGroupColumnSchema' :: Maybe Text
name = Maybe Text
a} :: ColumnGroupColumnSchema)
instance Core.FromJSON ColumnGroupColumnSchema where
parseJSON :: Value -> Parser ColumnGroupColumnSchema
parseJSON =
String
-> (Object -> Parser ColumnGroupColumnSchema)
-> Value
-> Parser ColumnGroupColumnSchema
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ColumnGroupColumnSchema"
( \Object
x ->
Maybe Text -> ColumnGroupColumnSchema
ColumnGroupColumnSchema'
(Maybe Text -> ColumnGroupColumnSchema)
-> Parser (Maybe Text) -> Parser ColumnGroupColumnSchema
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
)
instance Prelude.Hashable ColumnGroupColumnSchema
instance Prelude.NFData ColumnGroupColumnSchema