{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Pinpoint.Types.APNSChannelResponse
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pinpoint.Types.APNSChannelResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Provides information about the status and settings of the APNs (Apple
-- Push Notification service) channel for an application.
--
-- /See:/ 'newAPNSChannelResponse' smart constructor.
data APNSChannelResponse = APNSChannelResponse'
  { -- | The unique identifier for the application that the APNs channel applies
    -- to.
    APNSChannelResponse -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
    -- | The date and time when the APNs channel was enabled.
    APNSChannelResponse -> Maybe Text
creationDate :: Prelude.Maybe Prelude.Text,
    -- | The default authentication method that Amazon Pinpoint uses to
    -- authenticate with APNs for this channel, key or certificate.
    APNSChannelResponse -> Maybe Text
defaultAuthenticationMethod :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the APNs channel is enabled for the application.
    APNSChannelResponse -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
    -- | (Not used) This property is retained only for backward compatibility.
    APNSChannelResponse -> Maybe Bool
hasCredential :: Prelude.Maybe Prelude.Bool,
    -- | Specifies whether the APNs channel is configured to communicate with
    -- APNs by using APNs tokens. To provide an authentication key for APNs
    -- tokens, set the TokenKey property of the channel.
    APNSChannelResponse -> Maybe Bool
hasTokenKey :: Prelude.Maybe Prelude.Bool,
    -- | (Deprecated) An identifier for the APNs channel. This property is
    -- retained only for backward compatibility.
    APNSChannelResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the APNs channel is archived.
    APNSChannelResponse -> Maybe Bool
isArchived :: Prelude.Maybe Prelude.Bool,
    -- | The user who last modified the APNs channel.
    APNSChannelResponse -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
    -- | The date and time when the APNs channel was last modified.
    APNSChannelResponse -> Maybe Text
lastModifiedDate :: Prelude.Maybe Prelude.Text,
    -- | The current version of the APNs channel.
    APNSChannelResponse -> Maybe Int
version :: Prelude.Maybe Prelude.Int,
    -- | The type of messaging or notification platform for the channel. For the
    -- APNs channel, this value is APNS.
    APNSChannelResponse -> Text
platform :: Prelude.Text
  }
  deriving (APNSChannelResponse -> APNSChannelResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: APNSChannelResponse -> APNSChannelResponse -> Bool
$c/= :: APNSChannelResponse -> APNSChannelResponse -> Bool
== :: APNSChannelResponse -> APNSChannelResponse -> Bool
$c== :: APNSChannelResponse -> APNSChannelResponse -> Bool
Prelude.Eq, ReadPrec [APNSChannelResponse]
ReadPrec APNSChannelResponse
Int -> ReadS APNSChannelResponse
ReadS [APNSChannelResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [APNSChannelResponse]
$creadListPrec :: ReadPrec [APNSChannelResponse]
readPrec :: ReadPrec APNSChannelResponse
$creadPrec :: ReadPrec APNSChannelResponse
readList :: ReadS [APNSChannelResponse]
$creadList :: ReadS [APNSChannelResponse]
readsPrec :: Int -> ReadS APNSChannelResponse
$creadsPrec :: Int -> ReadS APNSChannelResponse
Prelude.Read, Int -> APNSChannelResponse -> ShowS
[APNSChannelResponse] -> ShowS
APNSChannelResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [APNSChannelResponse] -> ShowS
$cshowList :: [APNSChannelResponse] -> ShowS
show :: APNSChannelResponse -> String
$cshow :: APNSChannelResponse -> String
showsPrec :: Int -> APNSChannelResponse -> ShowS
$cshowsPrec :: Int -> APNSChannelResponse -> ShowS
Prelude.Show, forall x. Rep APNSChannelResponse x -> APNSChannelResponse
forall x. APNSChannelResponse -> Rep APNSChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep APNSChannelResponse x -> APNSChannelResponse
$cfrom :: forall x. APNSChannelResponse -> Rep APNSChannelResponse x
Prelude.Generic)

-- |
-- Create a value of 'APNSChannelResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'applicationId', 'aPNSChannelResponse_applicationId' - The unique identifier for the application that the APNs channel applies
-- to.
--
-- 'creationDate', 'aPNSChannelResponse_creationDate' - The date and time when the APNs channel was enabled.
--
-- 'defaultAuthenticationMethod', 'aPNSChannelResponse_defaultAuthenticationMethod' - The default authentication method that Amazon Pinpoint uses to
-- authenticate with APNs for this channel, key or certificate.
--
-- 'enabled', 'aPNSChannelResponse_enabled' - Specifies whether the APNs channel is enabled for the application.
--
-- 'hasCredential', 'aPNSChannelResponse_hasCredential' - (Not used) This property is retained only for backward compatibility.
--
-- 'hasTokenKey', 'aPNSChannelResponse_hasTokenKey' - Specifies whether the APNs channel is configured to communicate with
-- APNs by using APNs tokens. To provide an authentication key for APNs
-- tokens, set the TokenKey property of the channel.
--
-- 'id', 'aPNSChannelResponse_id' - (Deprecated) An identifier for the APNs channel. This property is
-- retained only for backward compatibility.
--
-- 'isArchived', 'aPNSChannelResponse_isArchived' - Specifies whether the APNs channel is archived.
--
-- 'lastModifiedBy', 'aPNSChannelResponse_lastModifiedBy' - The user who last modified the APNs channel.
--
-- 'lastModifiedDate', 'aPNSChannelResponse_lastModifiedDate' - The date and time when the APNs channel was last modified.
--
-- 'version', 'aPNSChannelResponse_version' - The current version of the APNs channel.
--
-- 'platform', 'aPNSChannelResponse_platform' - The type of messaging or notification platform for the channel. For the
-- APNs channel, this value is APNS.
newAPNSChannelResponse ::
  -- | 'platform'
  Prelude.Text ->
  APNSChannelResponse
newAPNSChannelResponse :: Text -> APNSChannelResponse
newAPNSChannelResponse Text
pPlatform_ =
  APNSChannelResponse'
    { $sel:applicationId:APNSChannelResponse' :: Maybe Text
applicationId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:APNSChannelResponse' :: Maybe Text
creationDate = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultAuthenticationMethod:APNSChannelResponse' :: Maybe Text
defaultAuthenticationMethod = forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:APNSChannelResponse' :: Maybe Bool
enabled = forall a. Maybe a
Prelude.Nothing,
      $sel:hasCredential:APNSChannelResponse' :: Maybe Bool
hasCredential = forall a. Maybe a
Prelude.Nothing,
      $sel:hasTokenKey:APNSChannelResponse' :: Maybe Bool
hasTokenKey = forall a. Maybe a
Prelude.Nothing,
      $sel:id:APNSChannelResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:isArchived:APNSChannelResponse' :: Maybe Bool
isArchived = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:APNSChannelResponse' :: Maybe Text
lastModifiedBy = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedDate:APNSChannelResponse' :: Maybe Text
lastModifiedDate = forall a. Maybe a
Prelude.Nothing,
      $sel:version:APNSChannelResponse' :: Maybe Int
version = forall a. Maybe a
Prelude.Nothing,
      $sel:platform:APNSChannelResponse' :: Text
platform = Text
pPlatform_
    }

-- | The unique identifier for the application that the APNs channel applies
-- to.
aPNSChannelResponse_applicationId :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Text)
aPNSChannelResponse_applicationId :: Lens' APNSChannelResponse (Maybe Text)
aPNSChannelResponse_applicationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Text
applicationId :: Maybe Text
$sel:applicationId:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
applicationId} -> Maybe Text
applicationId) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Text
a -> APNSChannelResponse
s {$sel:applicationId:APNSChannelResponse' :: Maybe Text
applicationId = Maybe Text
a} :: APNSChannelResponse)

-- | The date and time when the APNs channel was enabled.
aPNSChannelResponse_creationDate :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Text)
aPNSChannelResponse_creationDate :: Lens' APNSChannelResponse (Maybe Text)
aPNSChannelResponse_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Text
creationDate :: Maybe Text
$sel:creationDate:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
creationDate} -> Maybe Text
creationDate) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Text
a -> APNSChannelResponse
s {$sel:creationDate:APNSChannelResponse' :: Maybe Text
creationDate = Maybe Text
a} :: APNSChannelResponse)

-- | The default authentication method that Amazon Pinpoint uses to
-- authenticate with APNs for this channel, key or certificate.
aPNSChannelResponse_defaultAuthenticationMethod :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Text)
aPNSChannelResponse_defaultAuthenticationMethod :: Lens' APNSChannelResponse (Maybe Text)
aPNSChannelResponse_defaultAuthenticationMethod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Text
defaultAuthenticationMethod :: Maybe Text
$sel:defaultAuthenticationMethod:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
defaultAuthenticationMethod} -> Maybe Text
defaultAuthenticationMethod) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Text
a -> APNSChannelResponse
s {$sel:defaultAuthenticationMethod:APNSChannelResponse' :: Maybe Text
defaultAuthenticationMethod = Maybe Text
a} :: APNSChannelResponse)

-- | Specifies whether the APNs channel is enabled for the application.
aPNSChannelResponse_enabled :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSChannelResponse_enabled :: Lens' APNSChannelResponse (Maybe Bool)
aPNSChannelResponse_enabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Bool
a -> APNSChannelResponse
s {$sel:enabled:APNSChannelResponse' :: Maybe Bool
enabled = Maybe Bool
a} :: APNSChannelResponse)

-- | (Not used) This property is retained only for backward compatibility.
aPNSChannelResponse_hasCredential :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSChannelResponse_hasCredential :: Lens' APNSChannelResponse (Maybe Bool)
aPNSChannelResponse_hasCredential = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Bool
hasCredential :: Maybe Bool
$sel:hasCredential:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
hasCredential} -> Maybe Bool
hasCredential) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Bool
a -> APNSChannelResponse
s {$sel:hasCredential:APNSChannelResponse' :: Maybe Bool
hasCredential = Maybe Bool
a} :: APNSChannelResponse)

-- | Specifies whether the APNs channel is configured to communicate with
-- APNs by using APNs tokens. To provide an authentication key for APNs
-- tokens, set the TokenKey property of the channel.
aPNSChannelResponse_hasTokenKey :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSChannelResponse_hasTokenKey :: Lens' APNSChannelResponse (Maybe Bool)
aPNSChannelResponse_hasTokenKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Bool
hasTokenKey :: Maybe Bool
$sel:hasTokenKey:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
hasTokenKey} -> Maybe Bool
hasTokenKey) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Bool
a -> APNSChannelResponse
s {$sel:hasTokenKey:APNSChannelResponse' :: Maybe Bool
hasTokenKey = Maybe Bool
a} :: APNSChannelResponse)

-- | (Deprecated) An identifier for the APNs channel. This property is
-- retained only for backward compatibility.
aPNSChannelResponse_id :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Text)
aPNSChannelResponse_id :: Lens' APNSChannelResponse (Maybe Text)
aPNSChannelResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Text
id :: Maybe Text
$sel:id:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Text
a -> APNSChannelResponse
s {$sel:id:APNSChannelResponse' :: Maybe Text
id = Maybe Text
a} :: APNSChannelResponse)

-- | Specifies whether the APNs channel is archived.
aPNSChannelResponse_isArchived :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSChannelResponse_isArchived :: Lens' APNSChannelResponse (Maybe Bool)
aPNSChannelResponse_isArchived = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Bool
isArchived :: Maybe Bool
$sel:isArchived:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
isArchived} -> Maybe Bool
isArchived) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Bool
a -> APNSChannelResponse
s {$sel:isArchived:APNSChannelResponse' :: Maybe Bool
isArchived = Maybe Bool
a} :: APNSChannelResponse)

-- | The user who last modified the APNs channel.
aPNSChannelResponse_lastModifiedBy :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Text)
aPNSChannelResponse_lastModifiedBy :: Lens' APNSChannelResponse (Maybe Text)
aPNSChannelResponse_lastModifiedBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Text
lastModifiedBy :: Maybe Text
$sel:lastModifiedBy:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
lastModifiedBy} -> Maybe Text
lastModifiedBy) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Text
a -> APNSChannelResponse
s {$sel:lastModifiedBy:APNSChannelResponse' :: Maybe Text
lastModifiedBy = Maybe Text
a} :: APNSChannelResponse)

-- | The date and time when the APNs channel was last modified.
aPNSChannelResponse_lastModifiedDate :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Text)
aPNSChannelResponse_lastModifiedDate :: Lens' APNSChannelResponse (Maybe Text)
aPNSChannelResponse_lastModifiedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Text
lastModifiedDate :: Maybe Text
$sel:lastModifiedDate:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
lastModifiedDate} -> Maybe Text
lastModifiedDate) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Text
a -> APNSChannelResponse
s {$sel:lastModifiedDate:APNSChannelResponse' :: Maybe Text
lastModifiedDate = Maybe Text
a} :: APNSChannelResponse)

-- | The current version of the APNs channel.
aPNSChannelResponse_version :: Lens.Lens' APNSChannelResponse (Prelude.Maybe Prelude.Int)
aPNSChannelResponse_version :: Lens' APNSChannelResponse (Maybe Int)
aPNSChannelResponse_version = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Maybe Int
version :: Maybe Int
$sel:version:APNSChannelResponse' :: APNSChannelResponse -> Maybe Int
version} -> Maybe Int
version) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Maybe Int
a -> APNSChannelResponse
s {$sel:version:APNSChannelResponse' :: Maybe Int
version = Maybe Int
a} :: APNSChannelResponse)

-- | The type of messaging or notification platform for the channel. For the
-- APNs channel, this value is APNS.
aPNSChannelResponse_platform :: Lens.Lens' APNSChannelResponse Prelude.Text
aPNSChannelResponse_platform :: Lens' APNSChannelResponse Text
aPNSChannelResponse_platform = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSChannelResponse' {Text
platform :: Text
$sel:platform:APNSChannelResponse' :: APNSChannelResponse -> Text
platform} -> Text
platform) (\s :: APNSChannelResponse
s@APNSChannelResponse' {} Text
a -> APNSChannelResponse
s {$sel:platform:APNSChannelResponse' :: Text
platform = Text
a} :: APNSChannelResponse)

instance Data.FromJSON APNSChannelResponse where
  parseJSON :: Value -> Parser APNSChannelResponse
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"APNSChannelResponse"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Text
-> APNSChannelResponse
APNSChannelResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ApplicationId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreationDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DefaultAuthenticationMethod")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Enabled")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HasCredential")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"HasTokenKey")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"IsArchived")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastModifiedBy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LastModifiedDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Version")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Platform")
      )

instance Prelude.Hashable APNSChannelResponse where
  hashWithSalt :: Int -> APNSChannelResponse -> Int
hashWithSalt Int
_salt APNSChannelResponse' {Maybe Bool
Maybe Int
Maybe Text
Text
platform :: Text
version :: Maybe Int
lastModifiedDate :: Maybe Text
lastModifiedBy :: Maybe Text
isArchived :: Maybe Bool
id :: Maybe Text
hasTokenKey :: Maybe Bool
hasCredential :: Maybe Bool
enabled :: Maybe Bool
defaultAuthenticationMethod :: Maybe Text
creationDate :: Maybe Text
applicationId :: Maybe Text
$sel:platform:APNSChannelResponse' :: APNSChannelResponse -> Text
$sel:version:APNSChannelResponse' :: APNSChannelResponse -> Maybe Int
$sel:lastModifiedDate:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:lastModifiedBy:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:isArchived:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:id:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:hasTokenKey:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:hasCredential:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:enabled:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:defaultAuthenticationMethod:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:creationDate:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:applicationId:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
applicationId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
creationDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
defaultAuthenticationMethod
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
enabled
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
hasCredential
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
hasTokenKey
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
isArchived
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
lastModifiedBy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
lastModifiedDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
version
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
platform

instance Prelude.NFData APNSChannelResponse where
  rnf :: APNSChannelResponse -> ()
rnf APNSChannelResponse' {Maybe Bool
Maybe Int
Maybe Text
Text
platform :: Text
version :: Maybe Int
lastModifiedDate :: Maybe Text
lastModifiedBy :: Maybe Text
isArchived :: Maybe Bool
id :: Maybe Text
hasTokenKey :: Maybe Bool
hasCredential :: Maybe Bool
enabled :: Maybe Bool
defaultAuthenticationMethod :: Maybe Text
creationDate :: Maybe Text
applicationId :: Maybe Text
$sel:platform:APNSChannelResponse' :: APNSChannelResponse -> Text
$sel:version:APNSChannelResponse' :: APNSChannelResponse -> Maybe Int
$sel:lastModifiedDate:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:lastModifiedBy:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:isArchived:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:id:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:hasTokenKey:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:hasCredential:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:enabled:APNSChannelResponse' :: APNSChannelResponse -> Maybe Bool
$sel:defaultAuthenticationMethod:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:creationDate:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
$sel:applicationId:APNSChannelResponse' :: APNSChannelResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
applicationId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creationDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
defaultAuthenticationMethod
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
enabled
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
hasCredential
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
hasTokenKey
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
isArchived
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lastModifiedBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lastModifiedDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
version
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
platform