module Stratosphere.Connect.User.UserPhoneConfigProperty (
        UserPhoneConfigProperty(..), mkUserPhoneConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserPhoneConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userphoneconfig.html>
    UserPhoneConfigProperty {UserPhoneConfigProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userphoneconfig.html#cfn-connect-user-userphoneconfig-aftercontactworktimelimit>
                             UserPhoneConfigProperty -> Maybe (Value Integer)
afterContactWorkTimeLimit :: (Prelude.Maybe (Value Prelude.Integer)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userphoneconfig.html#cfn-connect-user-userphoneconfig-autoaccept>
                             UserPhoneConfigProperty -> Maybe (Value Bool)
autoAccept :: (Prelude.Maybe (Value Prelude.Bool)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userphoneconfig.html#cfn-connect-user-userphoneconfig-deskphonenumber>
                             UserPhoneConfigProperty -> Maybe (Value Text)
deskPhoneNumber :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userphoneconfig.html#cfn-connect-user-userphoneconfig-persistentconnection>
                             UserPhoneConfigProperty -> Maybe (Value Bool)
persistentConnection :: (Prelude.Maybe (Value Prelude.Bool)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-user-userphoneconfig.html#cfn-connect-user-userphoneconfig-phonetype>
                             UserPhoneConfigProperty -> Value Text
phoneType :: (Value Prelude.Text)}
  deriving stock (UserPhoneConfigProperty -> UserPhoneConfigProperty -> Bool
(UserPhoneConfigProperty -> UserPhoneConfigProperty -> Bool)
-> (UserPhoneConfigProperty -> UserPhoneConfigProperty -> Bool)
-> Eq UserPhoneConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserPhoneConfigProperty -> UserPhoneConfigProperty -> Bool
== :: UserPhoneConfigProperty -> UserPhoneConfigProperty -> Bool
$c/= :: UserPhoneConfigProperty -> UserPhoneConfigProperty -> Bool
/= :: UserPhoneConfigProperty -> UserPhoneConfigProperty -> Bool
Prelude.Eq, Int -> UserPhoneConfigProperty -> ShowS
[UserPhoneConfigProperty] -> ShowS
UserPhoneConfigProperty -> String
(Int -> UserPhoneConfigProperty -> ShowS)
-> (UserPhoneConfigProperty -> String)
-> ([UserPhoneConfigProperty] -> ShowS)
-> Show UserPhoneConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserPhoneConfigProperty -> ShowS
showsPrec :: Int -> UserPhoneConfigProperty -> ShowS
$cshow :: UserPhoneConfigProperty -> String
show :: UserPhoneConfigProperty -> String
$cshowList :: [UserPhoneConfigProperty] -> ShowS
showList :: [UserPhoneConfigProperty] -> ShowS
Prelude.Show)
mkUserPhoneConfigProperty ::
  Value Prelude.Text -> UserPhoneConfigProperty
mkUserPhoneConfigProperty :: Value Text -> UserPhoneConfigProperty
mkUserPhoneConfigProperty Value Text
phoneType
  = UserPhoneConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), phoneType :: Value Text
phoneType = Value Text
phoneType,
       afterContactWorkTimeLimit :: Maybe (Value Integer)
afterContactWorkTimeLimit = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       autoAccept :: Maybe (Value Bool)
autoAccept = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, deskPhoneNumber :: Maybe (Value Text)
deskPhoneNumber = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       persistentConnection :: Maybe (Value Bool)
persistentConnection = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UserPhoneConfigProperty where
  toResourceProperties :: UserPhoneConfigProperty -> ResourceProperties
toResourceProperties UserPhoneConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPhoneConfigProperty -> ()
afterContactWorkTimeLimit :: UserPhoneConfigProperty -> Maybe (Value Integer)
autoAccept :: UserPhoneConfigProperty -> Maybe (Value Bool)
deskPhoneNumber :: UserPhoneConfigProperty -> Maybe (Value Text)
persistentConnection :: UserPhoneConfigProperty -> Maybe (Value Bool)
phoneType :: UserPhoneConfigProperty -> Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::User.UserPhoneConfig",
         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
"PhoneType" 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
phoneType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AfterContactWorkTimeLimit"
                                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
afterContactWorkTimeLimit,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoAccept" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoAccept,
                               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
"DeskPhoneNumber" (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)
deskPhoneNumber,
                               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PersistentConnection"
                                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
persistentConnection]))}
instance JSON.ToJSON UserPhoneConfigProperty where
  toJSON :: UserPhoneConfigProperty -> Value
toJSON UserPhoneConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPhoneConfigProperty -> ()
afterContactWorkTimeLimit :: UserPhoneConfigProperty -> Maybe (Value Integer)
autoAccept :: UserPhoneConfigProperty -> Maybe (Value Bool)
deskPhoneNumber :: UserPhoneConfigProperty -> Maybe (Value Text)
persistentConnection :: UserPhoneConfigProperty -> Maybe (Value Bool)
phoneType :: UserPhoneConfigProperty -> Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
    = [(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
"PhoneType" 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
phoneType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AfterContactWorkTimeLimit"
                    (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
afterContactWorkTimeLimit,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AutoAccept" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
autoAccept,
                  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
"DeskPhoneNumber" (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)
deskPhoneNumber,
                  Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"PersistentConnection"
                    (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
persistentConnection])))
instance Property "AfterContactWorkTimeLimit" UserPhoneConfigProperty where
  type PropertyType "AfterContactWorkTimeLimit" UserPhoneConfigProperty = Value Prelude.Integer
  set :: PropertyType "AfterContactWorkTimeLimit" UserPhoneConfigProperty
-> UserPhoneConfigProperty -> UserPhoneConfigProperty
set PropertyType "AfterContactWorkTimeLimit" UserPhoneConfigProperty
newValue UserPhoneConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPhoneConfigProperty -> ()
afterContactWorkTimeLimit :: UserPhoneConfigProperty -> Maybe (Value Integer)
autoAccept :: UserPhoneConfigProperty -> Maybe (Value Bool)
deskPhoneNumber :: UserPhoneConfigProperty -> Maybe (Value Text)
persistentConnection :: UserPhoneConfigProperty -> Maybe (Value Bool)
phoneType :: UserPhoneConfigProperty -> Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
    = UserPhoneConfigProperty
        {afterContactWorkTimeLimit :: Maybe (Value Integer)
afterContactWorkTimeLimit = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AfterContactWorkTimeLimit" UserPhoneConfigProperty
Value Integer
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
haddock_workaround_ :: ()
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
instance Property "AutoAccept" UserPhoneConfigProperty where
  type PropertyType "AutoAccept" UserPhoneConfigProperty = Value Prelude.Bool
  set :: PropertyType "AutoAccept" UserPhoneConfigProperty
-> UserPhoneConfigProperty -> UserPhoneConfigProperty
set PropertyType "AutoAccept" UserPhoneConfigProperty
newValue UserPhoneConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPhoneConfigProperty -> ()
afterContactWorkTimeLimit :: UserPhoneConfigProperty -> Maybe (Value Integer)
autoAccept :: UserPhoneConfigProperty -> Maybe (Value Bool)
deskPhoneNumber :: UserPhoneConfigProperty -> Maybe (Value Text)
persistentConnection :: UserPhoneConfigProperty -> Maybe (Value Bool)
phoneType :: UserPhoneConfigProperty -> Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
    = UserPhoneConfigProperty {autoAccept :: Maybe (Value Bool)
autoAccept = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoAccept" UserPhoneConfigProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
instance Property "DeskPhoneNumber" UserPhoneConfigProperty where
  type PropertyType "DeskPhoneNumber" UserPhoneConfigProperty = Value Prelude.Text
  set :: PropertyType "DeskPhoneNumber" UserPhoneConfigProperty
-> UserPhoneConfigProperty -> UserPhoneConfigProperty
set PropertyType "DeskPhoneNumber" UserPhoneConfigProperty
newValue UserPhoneConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPhoneConfigProperty -> ()
afterContactWorkTimeLimit :: UserPhoneConfigProperty -> Maybe (Value Integer)
autoAccept :: UserPhoneConfigProperty -> Maybe (Value Bool)
deskPhoneNumber :: UserPhoneConfigProperty -> Maybe (Value Text)
persistentConnection :: UserPhoneConfigProperty -> Maybe (Value Bool)
phoneType :: UserPhoneConfigProperty -> Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
    = UserPhoneConfigProperty
        {deskPhoneNumber :: Maybe (Value Text)
deskPhoneNumber = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeskPhoneNumber" UserPhoneConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
instance Property "PersistentConnection" UserPhoneConfigProperty where
  type PropertyType "PersistentConnection" UserPhoneConfigProperty = Value Prelude.Bool
  set :: PropertyType "PersistentConnection" UserPhoneConfigProperty
-> UserPhoneConfigProperty -> UserPhoneConfigProperty
set PropertyType "PersistentConnection" UserPhoneConfigProperty
newValue UserPhoneConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPhoneConfigProperty -> ()
afterContactWorkTimeLimit :: UserPhoneConfigProperty -> Maybe (Value Integer)
autoAccept :: UserPhoneConfigProperty -> Maybe (Value Bool)
deskPhoneNumber :: UserPhoneConfigProperty -> Maybe (Value Text)
persistentConnection :: UserPhoneConfigProperty -> Maybe (Value Bool)
phoneType :: UserPhoneConfigProperty -> Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
    = UserPhoneConfigProperty
        {persistentConnection :: Maybe (Value Bool)
persistentConnection = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PersistentConnection" UserPhoneConfigProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
phoneType :: Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
phoneType :: Value Text
..}
instance Property "PhoneType" UserPhoneConfigProperty where
  type PropertyType "PhoneType" UserPhoneConfigProperty = Value Prelude.Text
  set :: PropertyType "PhoneType" UserPhoneConfigProperty
-> UserPhoneConfigProperty -> UserPhoneConfigProperty
set PropertyType "PhoneType" UserPhoneConfigProperty
newValue UserPhoneConfigProperty {Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPhoneConfigProperty -> ()
afterContactWorkTimeLimit :: UserPhoneConfigProperty -> Maybe (Value Integer)
autoAccept :: UserPhoneConfigProperty -> Maybe (Value Bool)
deskPhoneNumber :: UserPhoneConfigProperty -> Maybe (Value Text)
persistentConnection :: UserPhoneConfigProperty -> Maybe (Value Bool)
phoneType :: UserPhoneConfigProperty -> Value Text
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
phoneType :: Value Text
..}
    = UserPhoneConfigProperty {phoneType :: Value Text
phoneType = PropertyType "PhoneType" UserPhoneConfigProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
haddock_workaround_ :: ()
afterContactWorkTimeLimit :: Maybe (Value Integer)
autoAccept :: Maybe (Value Bool)
deskPhoneNumber :: Maybe (Value Text)
persistentConnection :: Maybe (Value Bool)
..}