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