module Stratosphere.Connect.EvaluationForm.EvaluationFormSectionProperty (
module Exports, EvaluationFormSectionProperty(..),
mkEvaluationFormSectionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.EvaluationForm.EvaluationFormItemProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EvaluationFormSectionProperty
=
EvaluationFormSectionProperty {EvaluationFormSectionProperty -> ()
haddock_workaround_ :: (),
EvaluationFormSectionProperty -> Maybe (Value Text)
instructions :: (Prelude.Maybe (Value Prelude.Text)),
EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
items :: (Prelude.Maybe [EvaluationFormItemProperty]),
EvaluationFormSectionProperty -> Value Text
refId :: (Value Prelude.Text),
EvaluationFormSectionProperty -> Value Text
title :: (Value Prelude.Text),
EvaluationFormSectionProperty -> Maybe (Value Double)
weight :: (Prelude.Maybe (Value Prelude.Double))}
deriving stock (EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> Bool
(EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> Bool)
-> (EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> Bool)
-> Eq EvaluationFormSectionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> Bool
== :: EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> Bool
$c/= :: EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> Bool
/= :: EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> Bool
Prelude.Eq, Int -> EvaluationFormSectionProperty -> ShowS
[EvaluationFormSectionProperty] -> ShowS
EvaluationFormSectionProperty -> String
(Int -> EvaluationFormSectionProperty -> ShowS)
-> (EvaluationFormSectionProperty -> String)
-> ([EvaluationFormSectionProperty] -> ShowS)
-> Show EvaluationFormSectionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EvaluationFormSectionProperty -> ShowS
showsPrec :: Int -> EvaluationFormSectionProperty -> ShowS
$cshow :: EvaluationFormSectionProperty -> String
show :: EvaluationFormSectionProperty -> String
$cshowList :: [EvaluationFormSectionProperty] -> ShowS
showList :: [EvaluationFormSectionProperty] -> ShowS
Prelude.Show)
mkEvaluationFormSectionProperty ::
Value Prelude.Text
-> Value Prelude.Text -> EvaluationFormSectionProperty
mkEvaluationFormSectionProperty :: Value Text -> Value Text -> EvaluationFormSectionProperty
mkEvaluationFormSectionProperty Value Text
refId Value Text
title
= EvaluationFormSectionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), refId :: Value Text
refId = Value Text
refId, title :: Value Text
title = Value Text
title,
instructions :: Maybe (Value Text)
instructions = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, items :: Maybe [EvaluationFormItemProperty]
items = Maybe [EvaluationFormItemProperty]
forall a. Maybe a
Prelude.Nothing,
weight :: Maybe (Value Double)
weight = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EvaluationFormSectionProperty where
toResourceProperties :: EvaluationFormSectionProperty -> ResourceProperties
toResourceProperties EvaluationFormSectionProperty {Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EvaluationFormSectionProperty -> ()
instructions :: EvaluationFormSectionProperty -> Maybe (Value Text)
items :: EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
refId :: EvaluationFormSectionProperty -> Value Text
title :: EvaluationFormSectionProperty -> Value Text
weight :: EvaluationFormSectionProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Connect::EvaluationForm.EvaluationFormSection",
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
"RefId" 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
refId, Key
"Title" 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
title]
([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
"Instructions" (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)
instructions,
Key -> [EvaluationFormItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Items" ([EvaluationFormItemProperty] -> (Key, Value))
-> Maybe [EvaluationFormItemProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EvaluationFormItemProperty]
items,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Weight" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
weight]))}
instance JSON.ToJSON EvaluationFormSectionProperty where
toJSON :: EvaluationFormSectionProperty -> Value
toJSON EvaluationFormSectionProperty {Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EvaluationFormSectionProperty -> ()
instructions :: EvaluationFormSectionProperty -> Maybe (Value Text)
items :: EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
refId :: EvaluationFormSectionProperty -> Value Text
title :: EvaluationFormSectionProperty -> Value Text
weight :: EvaluationFormSectionProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
= [(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
"RefId" 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
refId, Key
"Title" 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
title]
([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
"Instructions" (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)
instructions,
Key -> [EvaluationFormItemProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Items" ([EvaluationFormItemProperty] -> (Key, Value))
-> Maybe [EvaluationFormItemProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [EvaluationFormItemProperty]
items,
Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Weight" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
weight])))
instance Property "Instructions" EvaluationFormSectionProperty where
type PropertyType "Instructions" EvaluationFormSectionProperty = Value Prelude.Text
set :: PropertyType "Instructions" EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> EvaluationFormSectionProperty
set PropertyType "Instructions" EvaluationFormSectionProperty
newValue EvaluationFormSectionProperty {Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EvaluationFormSectionProperty -> ()
instructions :: EvaluationFormSectionProperty -> Maybe (Value Text)
items :: EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
refId :: EvaluationFormSectionProperty -> Value Text
title :: EvaluationFormSectionProperty -> Value Text
weight :: EvaluationFormSectionProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
= EvaluationFormSectionProperty
{instructions :: Maybe (Value Text)
instructions = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Instructions" EvaluationFormSectionProperty
Value Text
newValue, Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
()
Value Text
haddock_workaround_ :: ()
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
haddock_workaround_ :: ()
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
instance Property "Items" EvaluationFormSectionProperty where
type PropertyType "Items" EvaluationFormSectionProperty = [EvaluationFormItemProperty]
set :: PropertyType "Items" EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> EvaluationFormSectionProperty
set PropertyType "Items" EvaluationFormSectionProperty
newValue EvaluationFormSectionProperty {Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EvaluationFormSectionProperty -> ()
instructions :: EvaluationFormSectionProperty -> Maybe (Value Text)
items :: EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
refId :: EvaluationFormSectionProperty -> Value Text
title :: EvaluationFormSectionProperty -> Value Text
weight :: EvaluationFormSectionProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
= EvaluationFormSectionProperty {items :: Maybe [EvaluationFormItemProperty]
items = [EvaluationFormItemProperty] -> Maybe [EvaluationFormItemProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [EvaluationFormItemProperty]
PropertyType "Items" EvaluationFormSectionProperty
newValue, Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
instance Property "RefId" EvaluationFormSectionProperty where
type PropertyType "RefId" EvaluationFormSectionProperty = Value Prelude.Text
set :: PropertyType "RefId" EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> EvaluationFormSectionProperty
set PropertyType "RefId" EvaluationFormSectionProperty
newValue EvaluationFormSectionProperty {Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EvaluationFormSectionProperty -> ()
instructions :: EvaluationFormSectionProperty -> Maybe (Value Text)
items :: EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
refId :: EvaluationFormSectionProperty -> Value Text
title :: EvaluationFormSectionProperty -> Value Text
weight :: EvaluationFormSectionProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
= EvaluationFormSectionProperty {refId :: Value Text
refId = PropertyType "RefId" EvaluationFormSectionProperty
Value Text
newValue, Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
title :: Value Text
weight :: Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
title :: Value Text
weight :: Maybe (Value Double)
..}
instance Property "Title" EvaluationFormSectionProperty where
type PropertyType "Title" EvaluationFormSectionProperty = Value Prelude.Text
set :: PropertyType "Title" EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> EvaluationFormSectionProperty
set PropertyType "Title" EvaluationFormSectionProperty
newValue EvaluationFormSectionProperty {Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EvaluationFormSectionProperty -> ()
instructions :: EvaluationFormSectionProperty -> Maybe (Value Text)
items :: EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
refId :: EvaluationFormSectionProperty -> Value Text
title :: EvaluationFormSectionProperty -> Value Text
weight :: EvaluationFormSectionProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
= EvaluationFormSectionProperty {title :: Value Text
title = PropertyType "Title" EvaluationFormSectionProperty
Value Text
newValue, Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
weight :: Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
weight :: Maybe (Value Double)
..}
instance Property "Weight" EvaluationFormSectionProperty where
type PropertyType "Weight" EvaluationFormSectionProperty = Value Prelude.Double
set :: PropertyType "Weight" EvaluationFormSectionProperty
-> EvaluationFormSectionProperty -> EvaluationFormSectionProperty
set PropertyType "Weight" EvaluationFormSectionProperty
newValue EvaluationFormSectionProperty {Maybe [EvaluationFormItemProperty]
Maybe (Value Double)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: EvaluationFormSectionProperty -> ()
instructions :: EvaluationFormSectionProperty -> Maybe (Value Text)
items :: EvaluationFormSectionProperty -> Maybe [EvaluationFormItemProperty]
refId :: EvaluationFormSectionProperty -> Value Text
title :: EvaluationFormSectionProperty -> Value Text
weight :: EvaluationFormSectionProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
weight :: Maybe (Value Double)
..}
= EvaluationFormSectionProperty
{weight :: Maybe (Value Double)
weight = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Weight" EvaluationFormSectionProperty
Value Double
newValue, Maybe [EvaluationFormItemProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
haddock_workaround_ :: ()
instructions :: Maybe (Value Text)
items :: Maybe [EvaluationFormItemProperty]
refId :: Value Text
title :: Value Text
..}