module Stratosphere.Connect.Queue.OutboundCallerConfigProperty (
        OutboundCallerConfigProperty(..), mkOutboundCallerConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutboundCallerConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-queue-outboundcallerconfig.html>
    OutboundCallerConfigProperty {OutboundCallerConfigProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-queue-outboundcallerconfig.html#cfn-connect-queue-outboundcallerconfig-outboundcalleridname>
                                  OutboundCallerConfigProperty -> Maybe (Value Text)
outboundCallerIdName :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-queue-outboundcallerconfig.html#cfn-connect-queue-outboundcallerconfig-outboundcalleridnumberarn>
                                  OutboundCallerConfigProperty -> Maybe (Value Text)
outboundCallerIdNumberArn :: (Prelude.Maybe (Value Prelude.Text)),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-queue-outboundcallerconfig.html#cfn-connect-queue-outboundcallerconfig-outboundflowarn>
                                  OutboundCallerConfigProperty -> Maybe (Value Text)
outboundFlowArn :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> Bool
(OutboundCallerConfigProperty
 -> OutboundCallerConfigProperty -> Bool)
-> (OutboundCallerConfigProperty
    -> OutboundCallerConfigProperty -> Bool)
-> Eq OutboundCallerConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> Bool
== :: OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> Bool
$c/= :: OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> Bool
/= :: OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> Bool
Prelude.Eq, Int -> OutboundCallerConfigProperty -> ShowS
[OutboundCallerConfigProperty] -> ShowS
OutboundCallerConfigProperty -> String
(Int -> OutboundCallerConfigProperty -> ShowS)
-> (OutboundCallerConfigProperty -> String)
-> ([OutboundCallerConfigProperty] -> ShowS)
-> Show OutboundCallerConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutboundCallerConfigProperty -> ShowS
showsPrec :: Int -> OutboundCallerConfigProperty -> ShowS
$cshow :: OutboundCallerConfigProperty -> String
show :: OutboundCallerConfigProperty -> String
$cshowList :: [OutboundCallerConfigProperty] -> ShowS
showList :: [OutboundCallerConfigProperty] -> ShowS
Prelude.Show)
mkOutboundCallerConfigProperty :: OutboundCallerConfigProperty
mkOutboundCallerConfigProperty :: OutboundCallerConfigProperty
mkOutboundCallerConfigProperty
  = OutboundCallerConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       outboundCallerIdNumberArn :: Maybe (Value Text)
outboundCallerIdNumberArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       outboundFlowArn :: Maybe (Value Text)
outboundFlowArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutboundCallerConfigProperty where
  toResourceProperties :: OutboundCallerConfigProperty -> ResourceProperties
toResourceProperties OutboundCallerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutboundCallerConfigProperty -> ()
outboundCallerIdName :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundCallerIdNumberArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundFlowArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdNumberArn :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::Queue.OutboundCallerConfig",
         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
"OutboundCallerIdName" (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)
outboundCallerIdName,
                            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
"OutboundCallerIdNumberArn"
                              (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)
outboundCallerIdNumberArn,
                            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
"OutboundFlowArn" (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)
outboundFlowArn])}
instance JSON.ToJSON OutboundCallerConfigProperty where
  toJSON :: OutboundCallerConfigProperty -> Value
toJSON OutboundCallerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutboundCallerConfigProperty -> ()
outboundCallerIdName :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundCallerIdNumberArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundFlowArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdNumberArn :: Maybe (Value Text)
outboundFlowArn :: 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
"OutboundCallerIdName" (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)
outboundCallerIdName,
               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
"OutboundCallerIdNumberArn"
                 (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)
outboundCallerIdNumberArn,
               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
"OutboundFlowArn" (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)
outboundFlowArn]))
instance Property "OutboundCallerIdName" OutboundCallerConfigProperty where
  type PropertyType "OutboundCallerIdName" OutboundCallerConfigProperty = Value Prelude.Text
  set :: PropertyType "OutboundCallerIdName" OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> OutboundCallerConfigProperty
set PropertyType "OutboundCallerIdName" OutboundCallerConfigProperty
newValue OutboundCallerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutboundCallerConfigProperty -> ()
outboundCallerIdName :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundCallerIdNumberArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundFlowArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdNumberArn :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
..}
    = OutboundCallerConfigProperty
        {outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutboundCallerIdName" OutboundCallerConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
outboundCallerIdNumberArn :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdNumberArn :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
..}
instance Property "OutboundCallerIdNumberArn" OutboundCallerConfigProperty where
  type PropertyType "OutboundCallerIdNumberArn" OutboundCallerConfigProperty = Value Prelude.Text
  set :: PropertyType
  "OutboundCallerIdNumberArn" OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> OutboundCallerConfigProperty
set PropertyType
  "OutboundCallerIdNumberArn" OutboundCallerConfigProperty
newValue OutboundCallerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutboundCallerConfigProperty -> ()
outboundCallerIdName :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundCallerIdNumberArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundFlowArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdNumberArn :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
..}
    = OutboundCallerConfigProperty
        {outboundCallerIdNumberArn :: Maybe (Value Text)
outboundCallerIdNumberArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "OutboundCallerIdNumberArn" OutboundCallerConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
..}
instance Property "OutboundFlowArn" OutboundCallerConfigProperty where
  type PropertyType "OutboundFlowArn" OutboundCallerConfigProperty = Value Prelude.Text
  set :: PropertyType "OutboundFlowArn" OutboundCallerConfigProperty
-> OutboundCallerConfigProperty -> OutboundCallerConfigProperty
set PropertyType "OutboundFlowArn" OutboundCallerConfigProperty
newValue OutboundCallerConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: OutboundCallerConfigProperty -> ()
outboundCallerIdName :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundCallerIdNumberArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
outboundFlowArn :: OutboundCallerConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdNumberArn :: Maybe (Value Text)
outboundFlowArn :: Maybe (Value Text)
..}
    = OutboundCallerConfigProperty
        {outboundFlowArn :: Maybe (Value Text)
outboundFlowArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutboundFlowArn" OutboundCallerConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdNumberArn :: Maybe (Value Text)
haddock_workaround_ :: ()
outboundCallerIdName :: Maybe (Value Text)
outboundCallerIdNumberArn :: Maybe (Value Text)
..}