module Stratosphere.Connect.PredefinedAttribute.ValuesProperty (
ValuesProperty(..), mkValuesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ValuesProperty
=
ValuesProperty {ValuesProperty -> ()
haddock_workaround_ :: (),
ValuesProperty -> Maybe (ValueList Text)
stringList :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (ValuesProperty -> ValuesProperty -> Bool
(ValuesProperty -> ValuesProperty -> Bool)
-> (ValuesProperty -> ValuesProperty -> Bool) -> Eq ValuesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ValuesProperty -> ValuesProperty -> Bool
== :: ValuesProperty -> ValuesProperty -> Bool
$c/= :: ValuesProperty -> ValuesProperty -> Bool
/= :: ValuesProperty -> ValuesProperty -> Bool
Prelude.Eq, Int -> ValuesProperty -> ShowS
[ValuesProperty] -> ShowS
ValuesProperty -> String
(Int -> ValuesProperty -> ShowS)
-> (ValuesProperty -> String)
-> ([ValuesProperty] -> ShowS)
-> Show ValuesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ValuesProperty -> ShowS
showsPrec :: Int -> ValuesProperty -> ShowS
$cshow :: ValuesProperty -> String
show :: ValuesProperty -> String
$cshowList :: [ValuesProperty] -> ShowS
showList :: [ValuesProperty] -> ShowS
Prelude.Show)
mkValuesProperty :: ValuesProperty
mkValuesProperty :: ValuesProperty
mkValuesProperty
= ValuesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), stringList :: Maybe (ValueList Text)
stringList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ValuesProperty where
toResourceProperties :: ValuesProperty -> ResourceProperties
toResourceProperties ValuesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ValuesProperty -> ()
stringList :: ValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
stringList :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::PredefinedAttribute.Values",
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
"StringList" (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)
stringList])}
instance JSON.ToJSON ValuesProperty where
toJSON :: ValuesProperty -> Value
toJSON ValuesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ValuesProperty -> ()
stringList :: ValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
stringList :: 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
"StringList" (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)
stringList]))
instance Property "StringList" ValuesProperty where
type PropertyType "StringList" ValuesProperty = ValueList Prelude.Text
set :: PropertyType "StringList" ValuesProperty
-> ValuesProperty -> ValuesProperty
set PropertyType "StringList" ValuesProperty
newValue ValuesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: ValuesProperty -> ()
stringList :: ValuesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
stringList :: Maybe (ValueList Text)
..}
= ValuesProperty {stringList :: Maybe (ValueList Text)
stringList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StringList" ValuesProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}