module Stratosphere.Pinpoint.APNSChannel (
        APNSChannel(..), mkAPNSChannel
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data APNSChannel
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html>
    APNSChannel {APNSChannel -> ()
haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-applicationid>
                 APNSChannel -> Value Text
applicationId :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-bundleid>
                 APNSChannel -> Maybe (Value Text)
bundleId :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-certificate>
                 APNSChannel -> Maybe (Value Text)
certificate :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-defaultauthenticationmethod>
                 APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-enabled>
                 APNSChannel -> Maybe (Value Bool)
enabled :: (Prelude.Maybe (Value Prelude.Bool)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-privatekey>
                 APNSChannel -> Maybe (Value Text)
privateKey :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-teamid>
                 APNSChannel -> Maybe (Value Text)
teamId :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-tokenkey>
                 APNSChannel -> Maybe (Value Text)
tokenKey :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-pinpoint-apnschannel.html#cfn-pinpoint-apnschannel-tokenkeyid>
                 APNSChannel -> Maybe (Value Text)
tokenKeyId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (APNSChannel -> APNSChannel -> Bool
(APNSChannel -> APNSChannel -> Bool)
-> (APNSChannel -> APNSChannel -> Bool) -> Eq APNSChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: APNSChannel -> APNSChannel -> Bool
== :: APNSChannel -> APNSChannel -> Bool
$c/= :: APNSChannel -> APNSChannel -> Bool
/= :: APNSChannel -> APNSChannel -> Bool
Prelude.Eq, Int -> APNSChannel -> ShowS
[APNSChannel] -> ShowS
APNSChannel -> String
(Int -> APNSChannel -> ShowS)
-> (APNSChannel -> String)
-> ([APNSChannel] -> ShowS)
-> Show APNSChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> APNSChannel -> ShowS
showsPrec :: Int -> APNSChannel -> ShowS
$cshow :: APNSChannel -> String
show :: APNSChannel -> String
$cshowList :: [APNSChannel] -> ShowS
showList :: [APNSChannel] -> ShowS
Prelude.Show)
mkAPNSChannel :: Value Prelude.Text -> APNSChannel
mkAPNSChannel :: Value Text -> APNSChannel
mkAPNSChannel Value Text
applicationId
  = APNSChannel
      {haddock_workaround_ :: ()
haddock_workaround_ = (), applicationId :: Value Text
applicationId = Value Text
applicationId,
       bundleId :: Maybe (Value Text)
bundleId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, certificate :: Maybe (Value Text)
certificate = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       defaultAuthenticationMethod :: Maybe (Value Text)
defaultAuthenticationMethod = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       enabled :: Maybe (Value Bool)
enabled = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, privateKey :: Maybe (Value Text)
privateKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       teamId :: Maybe (Value Text)
teamId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tokenKey :: Maybe (Value Text)
tokenKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tokenKeyId :: Maybe (Value Text)
tokenKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties APNSChannel where
  toResourceProperties :: APNSChannel -> ResourceProperties
toResourceProperties APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pinpoint::APNSChannel",
         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
"ApplicationId" 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
applicationId]
                           ([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
"BundleId" (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)
bundleId,
                               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
"Certificate" (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)
certificate,
                               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
"DefaultAuthenticationMethod"
                                 (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)
defaultAuthenticationMethod,
                               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
"Enabled" (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)
enabled,
                               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
"PrivateKey" (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)
privateKey,
                               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
"TeamId" (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)
teamId,
                               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
"TokenKey" (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)
tokenKey,
                               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
"TokenKeyId" (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)
tokenKeyId]))}
instance JSON.ToJSON APNSChannel where
  toJSON :: APNSChannel -> Value
toJSON APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (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
"ApplicationId" 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
applicationId]
              ([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
"BundleId" (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)
bundleId,
                  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
"Certificate" (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)
certificate,
                  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
"DefaultAuthenticationMethod"
                    (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)
defaultAuthenticationMethod,
                  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
"Enabled" (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)
enabled,
                  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
"PrivateKey" (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)
privateKey,
                  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
"TeamId" (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)
teamId,
                  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
"TokenKey" (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)
tokenKey,
                  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
"TokenKeyId" (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)
tokenKeyId])))
instance Property "ApplicationId" APNSChannel where
  type PropertyType "ApplicationId" APNSChannel = Value Prelude.Text
  set :: PropertyType "ApplicationId" APNSChannel
-> APNSChannel -> APNSChannel
set PropertyType "ApplicationId" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {applicationId :: Value Text
applicationId = PropertyType "ApplicationId" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "BundleId" APNSChannel where
  type PropertyType "BundleId" APNSChannel = Value Prelude.Text
  set :: PropertyType "BundleId" APNSChannel -> APNSChannel -> APNSChannel
set PropertyType "BundleId" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {bundleId :: Maybe (Value Text)
bundleId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BundleId" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "Certificate" APNSChannel where
  type PropertyType "Certificate" APNSChannel = Value Prelude.Text
  set :: PropertyType "Certificate" APNSChannel
-> APNSChannel -> APNSChannel
set PropertyType "Certificate" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {certificate :: Maybe (Value Text)
certificate = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Certificate" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "DefaultAuthenticationMethod" APNSChannel where
  type PropertyType "DefaultAuthenticationMethod" APNSChannel = Value Prelude.Text
  set :: PropertyType "DefaultAuthenticationMethod" APNSChannel
-> APNSChannel -> APNSChannel
set PropertyType "DefaultAuthenticationMethod" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel
        {defaultAuthenticationMethod :: Maybe (Value Text)
defaultAuthenticationMethod = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DefaultAuthenticationMethod" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "Enabled" APNSChannel where
  type PropertyType "Enabled" APNSChannel = Value Prelude.Bool
  set :: PropertyType "Enabled" APNSChannel -> APNSChannel -> APNSChannel
set PropertyType "Enabled" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {enabled :: Maybe (Value Bool)
enabled = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Enabled" APNSChannel
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "PrivateKey" APNSChannel where
  type PropertyType "PrivateKey" APNSChannel = Value Prelude.Text
  set :: PropertyType "PrivateKey" APNSChannel -> APNSChannel -> APNSChannel
set PropertyType "PrivateKey" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {privateKey :: Maybe (Value Text)
privateKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PrivateKey" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "TeamId" APNSChannel where
  type PropertyType "TeamId" APNSChannel = Value Prelude.Text
  set :: PropertyType "TeamId" APNSChannel -> APNSChannel -> APNSChannel
set PropertyType "TeamId" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {teamId :: Maybe (Value Text)
teamId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TeamId" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "TokenKey" APNSChannel where
  type PropertyType "TokenKey" APNSChannel = Value Prelude.Text
  set :: PropertyType "TokenKey" APNSChannel -> APNSChannel -> APNSChannel
set PropertyType "TokenKey" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {tokenKey :: Maybe (Value Text)
tokenKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TokenKey" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
instance Property "TokenKeyId" APNSChannel where
  type PropertyType "TokenKeyId" APNSChannel = Value Prelude.Text
  set :: PropertyType "TokenKeyId" APNSChannel -> APNSChannel -> APNSChannel
set PropertyType "TokenKeyId" APNSChannel
newValue APNSChannel {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: APNSChannel -> ()
applicationId :: APNSChannel -> Value Text
bundleId :: APNSChannel -> Maybe (Value Text)
certificate :: APNSChannel -> Maybe (Value Text)
defaultAuthenticationMethod :: APNSChannel -> Maybe (Value Text)
enabled :: APNSChannel -> Maybe (Value Bool)
privateKey :: APNSChannel -> Maybe (Value Text)
teamId :: APNSChannel -> Maybe (Value Text)
tokenKey :: APNSChannel -> Maybe (Value Text)
tokenKeyId :: APNSChannel -> Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
tokenKeyId :: Maybe (Value Text)
..}
    = APNSChannel {tokenKeyId :: Maybe (Value Text)
tokenKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TokenKeyId" APNSChannel
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationId :: Value Text
bundleId :: Maybe (Value Text)
certificate :: Maybe (Value Text)
defaultAuthenticationMethod :: Maybe (Value Text)
enabled :: Maybe (Value Bool)
privateKey :: Maybe (Value Text)
teamId :: Maybe (Value Text)
tokenKey :: Maybe (Value Text)
..}