module Stratosphere.Connect.EvaluationForm.ScoringStrategyProperty (
        ScoringStrategyProperty(..), mkScoringStrategyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ScoringStrategyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-scoringstrategy.html>
    ScoringStrategyProperty {ScoringStrategyProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-scoringstrategy.html#cfn-connect-evaluationform-scoringstrategy-mode>
                             ScoringStrategyProperty -> Value Text
mode :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-evaluationform-scoringstrategy.html#cfn-connect-evaluationform-scoringstrategy-status>
                             ScoringStrategyProperty -> Value Text
status :: (Value Prelude.Text)}
  deriving stock (ScoringStrategyProperty -> ScoringStrategyProperty -> Bool
(ScoringStrategyProperty -> ScoringStrategyProperty -> Bool)
-> (ScoringStrategyProperty -> ScoringStrategyProperty -> Bool)
-> Eq ScoringStrategyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScoringStrategyProperty -> ScoringStrategyProperty -> Bool
== :: ScoringStrategyProperty -> ScoringStrategyProperty -> Bool
$c/= :: ScoringStrategyProperty -> ScoringStrategyProperty -> Bool
/= :: ScoringStrategyProperty -> ScoringStrategyProperty -> Bool
Prelude.Eq, Int -> ScoringStrategyProperty -> ShowS
[ScoringStrategyProperty] -> ShowS
ScoringStrategyProperty -> String
(Int -> ScoringStrategyProperty -> ShowS)
-> (ScoringStrategyProperty -> String)
-> ([ScoringStrategyProperty] -> ShowS)
-> Show ScoringStrategyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScoringStrategyProperty -> ShowS
showsPrec :: Int -> ScoringStrategyProperty -> ShowS
$cshow :: ScoringStrategyProperty -> String
show :: ScoringStrategyProperty -> String
$cshowList :: [ScoringStrategyProperty] -> ShowS
showList :: [ScoringStrategyProperty] -> ShowS
Prelude.Show)
mkScoringStrategyProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ScoringStrategyProperty
mkScoringStrategyProperty :: Value Text -> Value Text -> ScoringStrategyProperty
mkScoringStrategyProperty Value Text
mode Value Text
status
  = ScoringStrategyProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), mode :: Value Text
mode = Value Text
mode, status :: Value Text
status = Value Text
status}
instance ToResourceProperties ScoringStrategyProperty where
  toResourceProperties :: ScoringStrategyProperty -> ResourceProperties
toResourceProperties ScoringStrategyProperty {()
Value Text
haddock_workaround_ :: ScoringStrategyProperty -> ()
mode :: ScoringStrategyProperty -> Value Text
status :: ScoringStrategyProperty -> Value Text
haddock_workaround_ :: ()
mode :: Value Text
status :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::EvaluationForm.ScoringStrategy",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Mode" 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
mode, Key
"Status" 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
status]}
instance JSON.ToJSON ScoringStrategyProperty where
  toJSON :: ScoringStrategyProperty -> Value
toJSON ScoringStrategyProperty {()
Value Text
haddock_workaround_ :: ScoringStrategyProperty -> ()
mode :: ScoringStrategyProperty -> Value Text
status :: ScoringStrategyProperty -> Value Text
haddock_workaround_ :: ()
mode :: Value Text
status :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Mode" 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
mode, Key
"Status" 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
status]
instance Property "Mode" ScoringStrategyProperty where
  type PropertyType "Mode" ScoringStrategyProperty = Value Prelude.Text
  set :: PropertyType "Mode" ScoringStrategyProperty
-> ScoringStrategyProperty -> ScoringStrategyProperty
set PropertyType "Mode" ScoringStrategyProperty
newValue ScoringStrategyProperty {()
Value Text
haddock_workaround_ :: ScoringStrategyProperty -> ()
mode :: ScoringStrategyProperty -> Value Text
status :: ScoringStrategyProperty -> Value Text
haddock_workaround_ :: ()
mode :: Value Text
status :: Value Text
..}
    = ScoringStrategyProperty {mode :: Value Text
mode = PropertyType "Mode" ScoringStrategyProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
status :: Value Text
haddock_workaround_ :: ()
status :: Value Text
..}
instance Property "Status" ScoringStrategyProperty where
  type PropertyType "Status" ScoringStrategyProperty = Value Prelude.Text
  set :: PropertyType "Status" ScoringStrategyProperty
-> ScoringStrategyProperty -> ScoringStrategyProperty
set PropertyType "Status" ScoringStrategyProperty
newValue ScoringStrategyProperty {()
Value Text
haddock_workaround_ :: ScoringStrategyProperty -> ()
mode :: ScoringStrategyProperty -> Value Text
status :: ScoringStrategyProperty -> Value Text
haddock_workaround_ :: ()
mode :: Value Text
status :: Value Text
..}
    = ScoringStrategyProperty {status :: Value Text
status = PropertyType "Status" ScoringStrategyProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
mode :: Value Text
haddock_workaround_ :: ()
mode :: Value Text
..}