module Stratosphere.Connect.User.UserProficiencyProperty (
        UserProficiencyProperty(..), mkUserProficiencyProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserProficiencyProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userproficiency.html>
    UserProficiencyProperty {UserProficiencyProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userproficiency.html#cfn-connect-user-userproficiency-attributename>
                             UserProficiencyProperty -> Value Text
attributeName :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userproficiency.html#cfn-connect-user-userproficiency-attributevalue>
                             UserProficiencyProperty -> Value Text
attributeValue :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userproficiency.html#cfn-connect-user-userproficiency-level>
                             UserProficiencyProperty -> Value Double
level :: (Value Prelude.Double)}
  deriving stock (UserProficiencyProperty -> UserProficiencyProperty -> Bool
(UserProficiencyProperty -> UserProficiencyProperty -> Bool)
-> (UserProficiencyProperty -> UserProficiencyProperty -> Bool)
-> Eq UserProficiencyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserProficiencyProperty -> UserProficiencyProperty -> Bool
== :: UserProficiencyProperty -> UserProficiencyProperty -> Bool
$c/= :: UserProficiencyProperty -> UserProficiencyProperty -> Bool
/= :: UserProficiencyProperty -> UserProficiencyProperty -> Bool
Prelude.Eq, Int -> UserProficiencyProperty -> ShowS
[UserProficiencyProperty] -> ShowS
UserProficiencyProperty -> String
(Int -> UserProficiencyProperty -> ShowS)
-> (UserProficiencyProperty -> String)
-> ([UserProficiencyProperty] -> ShowS)
-> Show UserProficiencyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserProficiencyProperty -> ShowS
showsPrec :: Int -> UserProficiencyProperty -> ShowS
$cshow :: UserProficiencyProperty -> String
show :: UserProficiencyProperty -> String
$cshowList :: [UserProficiencyProperty] -> ShowS
showList :: [UserProficiencyProperty] -> ShowS
Prelude.Show)
mkUserProficiencyProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Double -> UserProficiencyProperty
mkUserProficiencyProperty :: Value Text -> Value Text -> Value Double -> UserProficiencyProperty
mkUserProficiencyProperty Value Text
attributeName Value Text
attributeValue Value Double
level
  = UserProficiencyProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), attributeName :: Value Text
attributeName = Value Text
attributeName,
       attributeValue :: Value Text
attributeValue = Value Text
attributeValue, level :: Value Double
level = Value Double
level}
instance ToResourceProperties UserProficiencyProperty where
  toResourceProperties :: UserProficiencyProperty -> ResourceProperties
toResourceProperties UserProficiencyProperty {()
Value Double
Value Text
haddock_workaround_ :: UserProficiencyProperty -> ()
attributeName :: UserProficiencyProperty -> Value Text
attributeValue :: UserProficiencyProperty -> Value Text
level :: UserProficiencyProperty -> Value Double
haddock_workaround_ :: ()
attributeName :: Value Text
attributeValue :: Value Text
level :: Value Double
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::User.UserProficiency",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AttributeName" 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
attributeName,
                       Key
"AttributeValue" 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
attributeValue, Key
"Level" 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..= Value Double
level]}
instance JSON.ToJSON UserProficiencyProperty where
  toJSON :: UserProficiencyProperty -> Value
toJSON UserProficiencyProperty {()
Value Double
Value Text
haddock_workaround_ :: UserProficiencyProperty -> ()
attributeName :: UserProficiencyProperty -> Value Text
attributeValue :: UserProficiencyProperty -> Value Text
level :: UserProficiencyProperty -> Value Double
haddock_workaround_ :: ()
attributeName :: Value Text
attributeValue :: Value Text
level :: Value Double
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"AttributeName" 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
attributeName,
         Key
"AttributeValue" 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
attributeValue, Key
"Level" 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..= Value Double
level]
instance Property "AttributeName" UserProficiencyProperty where
  type PropertyType "AttributeName" UserProficiencyProperty = Value Prelude.Text
  set :: PropertyType "AttributeName" UserProficiencyProperty
-> UserProficiencyProperty -> UserProficiencyProperty
set PropertyType "AttributeName" UserProficiencyProperty
newValue UserProficiencyProperty {()
Value Double
Value Text
haddock_workaround_ :: UserProficiencyProperty -> ()
attributeName :: UserProficiencyProperty -> Value Text
attributeValue :: UserProficiencyProperty -> Value Text
level :: UserProficiencyProperty -> Value Double
haddock_workaround_ :: ()
attributeName :: Value Text
attributeValue :: Value Text
level :: Value Double
..}
    = UserProficiencyProperty {attributeName :: Value Text
attributeName = PropertyType "AttributeName" UserProficiencyProperty
Value Text
newValue, ()
Value Double
Value Text
haddock_workaround_ :: ()
attributeValue :: Value Text
level :: Value Double
haddock_workaround_ :: ()
attributeValue :: Value Text
level :: Value Double
..}
instance Property "AttributeValue" UserProficiencyProperty where
  type PropertyType "AttributeValue" UserProficiencyProperty = Value Prelude.Text
  set :: PropertyType "AttributeValue" UserProficiencyProperty
-> UserProficiencyProperty -> UserProficiencyProperty
set PropertyType "AttributeValue" UserProficiencyProperty
newValue UserProficiencyProperty {()
Value Double
Value Text
haddock_workaround_ :: UserProficiencyProperty -> ()
attributeName :: UserProficiencyProperty -> Value Text
attributeValue :: UserProficiencyProperty -> Value Text
level :: UserProficiencyProperty -> Value Double
haddock_workaround_ :: ()
attributeName :: Value Text
attributeValue :: Value Text
level :: Value Double
..}
    = UserProficiencyProperty {attributeValue :: Value Text
attributeValue = PropertyType "AttributeValue" UserProficiencyProperty
Value Text
newValue, ()
Value Double
Value Text
haddock_workaround_ :: ()
attributeName :: Value Text
level :: Value Double
haddock_workaround_ :: ()
attributeName :: Value Text
level :: Value Double
..}
instance Property "Level" UserProficiencyProperty where
  type PropertyType "Level" UserProficiencyProperty = Value Prelude.Double
  set :: PropertyType "Level" UserProficiencyProperty
-> UserProficiencyProperty -> UserProficiencyProperty
set PropertyType "Level" UserProficiencyProperty
newValue UserProficiencyProperty {()
Value Double
Value Text
haddock_workaround_ :: UserProficiencyProperty -> ()
attributeName :: UserProficiencyProperty -> Value Text
attributeValue :: UserProficiencyProperty -> Value Text
level :: UserProficiencyProperty -> Value Double
haddock_workaround_ :: ()
attributeName :: Value Text
attributeValue :: Value Text
level :: Value Double
..}
    = UserProficiencyProperty {level :: Value Double
level = PropertyType "Level" UserProficiencyProperty
Value Double
newValue, ()
Value Text
haddock_workaround_ :: ()
attributeName :: Value Text
attributeValue :: Value Text
haddock_workaround_ :: ()
attributeName :: Value Text
attributeValue :: Value Text
..}