module Stratosphere.CustomerProfiles.ObjectType.ObjectTypeKeyProperty (
ObjectTypeKeyProperty(..), mkObjectTypeKeyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ObjectTypeKeyProperty
=
ObjectTypeKeyProperty {ObjectTypeKeyProperty -> ()
haddock_workaround_ :: (),
ObjectTypeKeyProperty -> Maybe (ValueList Text)
fieldNames :: (Prelude.Maybe (ValueList Prelude.Text)),
ObjectTypeKeyProperty -> Maybe (ValueList Text)
standardIdentifiers :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (ObjectTypeKeyProperty -> ObjectTypeKeyProperty -> Bool
(ObjectTypeKeyProperty -> ObjectTypeKeyProperty -> Bool)
-> (ObjectTypeKeyProperty -> ObjectTypeKeyProperty -> Bool)
-> Eq ObjectTypeKeyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ObjectTypeKeyProperty -> ObjectTypeKeyProperty -> Bool
== :: ObjectTypeKeyProperty -> ObjectTypeKeyProperty -> Bool
$c/= :: ObjectTypeKeyProperty -> ObjectTypeKeyProperty -> Bool
/= :: ObjectTypeKeyProperty -> ObjectTypeKeyProperty -> Bool
Prelude.Eq, Int -> ObjectTypeKeyProperty -> ShowS
[ObjectTypeKeyProperty] -> ShowS
ObjectTypeKeyProperty -> String
(Int -> ObjectTypeKeyProperty -> ShowS)
-> (ObjectTypeKeyProperty -> String)
-> ([ObjectTypeKeyProperty] -> ShowS)
-> Show ObjectTypeKeyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ObjectTypeKeyProperty -> ShowS
showsPrec :: Int -> ObjectTypeKeyProperty -> ShowS
$cshow :: ObjectTypeKeyProperty -> String
show :: ObjectTypeKeyProperty -> String
$cshowList :: [ObjectTypeKeyProperty] -> ShowS
showList :: [ObjectTypeKeyProperty] -> ShowS
Prelude.Show)
mkObjectTypeKeyProperty :: ObjectTypeKeyProperty
mkObjectTypeKeyProperty :: ObjectTypeKeyProperty
mkObjectTypeKeyProperty
= ObjectTypeKeyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fieldNames :: Maybe (ValueList Text)
fieldNames = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
standardIdentifiers :: Maybe (ValueList Text)
standardIdentifiers = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ObjectTypeKeyProperty where
toResourceProperties :: ObjectTypeKeyProperty -> ResourceProperties
toResourceProperties ObjectTypeKeyProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ObjectTypeKeyProperty -> ()
fieldNames :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
standardIdentifiers :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fieldNames :: Maybe (ValueList Text)
standardIdentifiers :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CustomerProfiles::ObjectType.ObjectTypeKey",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"FieldNames" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
fieldNames,
Key -> ValueList 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
"StandardIdentifiers" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
standardIdentifiers])}
instance JSON.ToJSON ObjectTypeKeyProperty where
toJSON :: ObjectTypeKeyProperty -> Value
toJSON ObjectTypeKeyProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ObjectTypeKeyProperty -> ()
fieldNames :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
standardIdentifiers :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fieldNames :: Maybe (ValueList Text)
standardIdentifiers :: Maybe (ValueList Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"FieldNames" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
fieldNames,
Key -> ValueList 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
"StandardIdentifiers" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
standardIdentifiers]))
instance Property "FieldNames" ObjectTypeKeyProperty where
type PropertyType "FieldNames" ObjectTypeKeyProperty = ValueList Prelude.Text
set :: PropertyType "FieldNames" ObjectTypeKeyProperty
-> ObjectTypeKeyProperty -> ObjectTypeKeyProperty
set PropertyType "FieldNames" ObjectTypeKeyProperty
newValue ObjectTypeKeyProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ObjectTypeKeyProperty -> ()
fieldNames :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
standardIdentifiers :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fieldNames :: Maybe (ValueList Text)
standardIdentifiers :: Maybe (ValueList Text)
..}
= ObjectTypeKeyProperty {fieldNames :: Maybe (ValueList Text)
fieldNames = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FieldNames" ObjectTypeKeyProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
standardIdentifiers :: Maybe (ValueList Text)
haddock_workaround_ :: ()
standardIdentifiers :: Maybe (ValueList Text)
..}
instance Property "StandardIdentifiers" ObjectTypeKeyProperty where
type PropertyType "StandardIdentifiers" ObjectTypeKeyProperty = ValueList Prelude.Text
set :: PropertyType "StandardIdentifiers" ObjectTypeKeyProperty
-> ObjectTypeKeyProperty -> ObjectTypeKeyProperty
set PropertyType "StandardIdentifiers" ObjectTypeKeyProperty
newValue ObjectTypeKeyProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ObjectTypeKeyProperty -> ()
fieldNames :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
standardIdentifiers :: ObjectTypeKeyProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fieldNames :: Maybe (ValueList Text)
standardIdentifiers :: Maybe (ValueList Text)
..}
= ObjectTypeKeyProperty
{standardIdentifiers :: Maybe (ValueList Text)
standardIdentifiers = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StandardIdentifiers" ObjectTypeKeyProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
fieldNames :: Maybe (ValueList Text)
haddock_workaround_ :: ()
fieldNames :: Maybe (ValueList Text)
..}