module Stratosphere.Connect.EvaluationForm.EvaluationFormItemEnablementSourceValueProperty (
        EvaluationFormItemEnablementSourceValueProperty(..),
        mkEvaluationFormItemEnablementSourceValueProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data EvaluationFormItemEnablementSourceValueProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformitemenablementsourcevalue.html>
    EvaluationFormItemEnablementSourceValueProperty {EvaluationFormItemEnablementSourceValueProperty -> ()
haddock_workaround_ :: (),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformitemenablementsourcevalue.html#cfn-connect-evaluationform-evaluationformitemenablementsourcevalue-refid>
                                                     EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
refId :: (Prelude.Maybe (Value Prelude.Text)),
                                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-evaluationformitemenablementsourcevalue.html#cfn-connect-evaluationform-evaluationformitemenablementsourcevalue-type>
                                                     EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty -> Bool
(EvaluationFormItemEnablementSourceValueProperty
 -> EvaluationFormItemEnablementSourceValueProperty -> Bool)
-> (EvaluationFormItemEnablementSourceValueProperty
    -> EvaluationFormItemEnablementSourceValueProperty -> Bool)
-> Eq EvaluationFormItemEnablementSourceValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty -> Bool
== :: EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty -> Bool
$c/= :: EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty -> Bool
/= :: EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty -> Bool
Prelude.Eq, Int -> EvaluationFormItemEnablementSourceValueProperty -> ShowS
[EvaluationFormItemEnablementSourceValueProperty] -> ShowS
EvaluationFormItemEnablementSourceValueProperty -> String
(Int -> EvaluationFormItemEnablementSourceValueProperty -> ShowS)
-> (EvaluationFormItemEnablementSourceValueProperty -> String)
-> ([EvaluationFormItemEnablementSourceValueProperty] -> ShowS)
-> Show EvaluationFormItemEnablementSourceValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EvaluationFormItemEnablementSourceValueProperty -> ShowS
showsPrec :: Int -> EvaluationFormItemEnablementSourceValueProperty -> ShowS
$cshow :: EvaluationFormItemEnablementSourceValueProperty -> String
show :: EvaluationFormItemEnablementSourceValueProperty -> String
$cshowList :: [EvaluationFormItemEnablementSourceValueProperty] -> ShowS
showList :: [EvaluationFormItemEnablementSourceValueProperty] -> ShowS
Prelude.Show)
mkEvaluationFormItemEnablementSourceValueProperty ::
  EvaluationFormItemEnablementSourceValueProperty
mkEvaluationFormItemEnablementSourceValueProperty :: EvaluationFormItemEnablementSourceValueProperty
mkEvaluationFormItemEnablementSourceValueProperty
  = EvaluationFormItemEnablementSourceValueProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), refId :: Maybe (Value Text)
refId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties EvaluationFormItemEnablementSourceValueProperty where
  toResourceProperties :: EvaluationFormItemEnablementSourceValueProperty
-> ResourceProperties
toResourceProperties
    EvaluationFormItemEnablementSourceValueProperty {Maybe (Value Text)
()
haddock_workaround_ :: EvaluationFormItemEnablementSourceValueProperty -> ()
refId :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
type' :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
refId :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::EvaluationForm.EvaluationFormItemEnablementSourceValue",
         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 -> 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
"RefId" (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)
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..=) Key
"Type" (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)
type'])}
instance JSON.ToJSON EvaluationFormItemEnablementSourceValueProperty where
  toJSON :: EvaluationFormItemEnablementSourceValueProperty -> Value
toJSON EvaluationFormItemEnablementSourceValueProperty {Maybe (Value Text)
()
haddock_workaround_ :: EvaluationFormItemEnablementSourceValueProperty -> ()
refId :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
type' :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
refId :: Maybe (Value Text)
type' :: Maybe (Value 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 -> 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
"RefId" (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)
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..=) Key
"Type" (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)
type']))
instance Property "RefId" EvaluationFormItemEnablementSourceValueProperty where
  type PropertyType "RefId" EvaluationFormItemEnablementSourceValueProperty = Value Prelude.Text
  set :: PropertyType
  "RefId" EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty
set PropertyType
  "RefId" EvaluationFormItemEnablementSourceValueProperty
newValue EvaluationFormItemEnablementSourceValueProperty {Maybe (Value Text)
()
haddock_workaround_ :: EvaluationFormItemEnablementSourceValueProperty -> ()
refId :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
type' :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
refId :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = EvaluationFormItemEnablementSourceValueProperty
        {refId :: Maybe (Value Text)
refId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "RefId" EvaluationFormItemEnablementSourceValueProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}
instance Property "Type" EvaluationFormItemEnablementSourceValueProperty where
  type PropertyType "Type" EvaluationFormItemEnablementSourceValueProperty = Value Prelude.Text
  set :: PropertyType "Type" EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty
-> EvaluationFormItemEnablementSourceValueProperty
set PropertyType "Type" EvaluationFormItemEnablementSourceValueProperty
newValue EvaluationFormItemEnablementSourceValueProperty {Maybe (Value Text)
()
haddock_workaround_ :: EvaluationFormItemEnablementSourceValueProperty -> ()
refId :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
type' :: EvaluationFormItemEnablementSourceValueProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
refId :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
    = EvaluationFormItemEnablementSourceValueProperty
        {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" EvaluationFormItemEnablementSourceValueProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
refId :: Maybe (Value Text)
haddock_workaround_ :: ()
refId :: Maybe (Value Text)
..}