{-# 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.APNSVoipChannelResponse
-- 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.APNSVoipChannelResponse 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) VoIP channel for an application.
--
-- /See:/ 'newAPNSVoipChannelResponse' smart constructor.
data APNSVoipChannelResponse = APNSVoipChannelResponse'
  { -- | The unique identifier for the application that the APNs VoIP channel
    -- applies to.
    APNSVoipChannelResponse -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
    -- | The date and time when the APNs VoIP channel was enabled.
    APNSVoipChannelResponse -> 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.
    APNSVoipChannelResponse -> Maybe Text
defaultAuthenticationMethod :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the APNs VoIP channel is enabled for the application.
    APNSVoipChannelResponse -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
    -- | (Not used) This property is retained only for backward compatibility.
    APNSVoipChannelResponse -> Maybe Bool
hasCredential :: Prelude.Maybe Prelude.Bool,
    -- | Specifies whether the APNs VoIP 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.
    APNSVoipChannelResponse -> Maybe Bool
hasTokenKey :: Prelude.Maybe Prelude.Bool,
    -- | (Deprecated) An identifier for the APNs VoIP channel. This property is
    -- retained only for backward compatibility.
    APNSVoipChannelResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the APNs VoIP channel is archived.
    APNSVoipChannelResponse -> Maybe Bool
isArchived :: Prelude.Maybe Prelude.Bool,
    -- | The user who last modified the APNs VoIP channel.
    APNSVoipChannelResponse -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
    -- | The date and time when the APNs VoIP channel was last modified.
    APNSVoipChannelResponse -> Maybe Text
lastModifiedDate :: Prelude.Maybe Prelude.Text,
    -- | The current version of the APNs VoIP channel.
    APNSVoipChannelResponse -> Maybe Int
version :: Prelude.Maybe Prelude.Int,
    -- | The type of messaging or notification platform for the channel. For the
    -- APNs VoIP channel, this value is APNS_VOIP.
    APNSVoipChannelResponse -> Text
platform :: Prelude.Text
  }
  deriving (APNSVoipChannelResponse -> APNSVoipChannelResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: APNSVoipChannelResponse -> APNSVoipChannelResponse -> Bool
$c/= :: APNSVoipChannelResponse -> APNSVoipChannelResponse -> Bool
== :: APNSVoipChannelResponse -> APNSVoipChannelResponse -> Bool
$c== :: APNSVoipChannelResponse -> APNSVoipChannelResponse -> Bool
Prelude.Eq, ReadPrec [APNSVoipChannelResponse]
ReadPrec APNSVoipChannelResponse
Int -> ReadS APNSVoipChannelResponse
ReadS [APNSVoipChannelResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [APNSVoipChannelResponse]
$creadListPrec :: ReadPrec [APNSVoipChannelResponse]
readPrec :: ReadPrec APNSVoipChannelResponse
$creadPrec :: ReadPrec APNSVoipChannelResponse
readList :: ReadS [APNSVoipChannelResponse]
$creadList :: ReadS [APNSVoipChannelResponse]
readsPrec :: Int -> ReadS APNSVoipChannelResponse
$creadsPrec :: Int -> ReadS APNSVoipChannelResponse
Prelude.Read, Int -> APNSVoipChannelResponse -> ShowS
[APNSVoipChannelResponse] -> ShowS
APNSVoipChannelResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [APNSVoipChannelResponse] -> ShowS
$cshowList :: [APNSVoipChannelResponse] -> ShowS
show :: APNSVoipChannelResponse -> String
$cshow :: APNSVoipChannelResponse -> String
showsPrec :: Int -> APNSVoipChannelResponse -> ShowS
$cshowsPrec :: Int -> APNSVoipChannelResponse -> ShowS
Prelude.Show, forall x. Rep APNSVoipChannelResponse x -> APNSVoipChannelResponse
forall x. APNSVoipChannelResponse -> Rep APNSVoipChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep APNSVoipChannelResponse x -> APNSVoipChannelResponse
$cfrom :: forall x. APNSVoipChannelResponse -> Rep APNSVoipChannelResponse x
Prelude.Generic)

-- |
-- Create a value of 'APNSVoipChannelResponse' 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', 'aPNSVoipChannelResponse_applicationId' - The unique identifier for the application that the APNs VoIP channel
-- applies to.
--
-- 'creationDate', 'aPNSVoipChannelResponse_creationDate' - The date and time when the APNs VoIP channel was enabled.
--
-- 'defaultAuthenticationMethod', 'aPNSVoipChannelResponse_defaultAuthenticationMethod' - The default authentication method that Amazon Pinpoint uses to
-- authenticate with APNs for this channel, key or certificate.
--
-- 'enabled', 'aPNSVoipChannelResponse_enabled' - Specifies whether the APNs VoIP channel is enabled for the application.
--
-- 'hasCredential', 'aPNSVoipChannelResponse_hasCredential' - (Not used) This property is retained only for backward compatibility.
--
-- 'hasTokenKey', 'aPNSVoipChannelResponse_hasTokenKey' - Specifies whether the APNs VoIP 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', 'aPNSVoipChannelResponse_id' - (Deprecated) An identifier for the APNs VoIP channel. This property is
-- retained only for backward compatibility.
--
-- 'isArchived', 'aPNSVoipChannelResponse_isArchived' - Specifies whether the APNs VoIP channel is archived.
--
-- 'lastModifiedBy', 'aPNSVoipChannelResponse_lastModifiedBy' - The user who last modified the APNs VoIP channel.
--
-- 'lastModifiedDate', 'aPNSVoipChannelResponse_lastModifiedDate' - The date and time when the APNs VoIP channel was last modified.
--
-- 'version', 'aPNSVoipChannelResponse_version' - The current version of the APNs VoIP channel.
--
-- 'platform', 'aPNSVoipChannelResponse_platform' - The type of messaging or notification platform for the channel. For the
-- APNs VoIP channel, this value is APNS_VOIP.
newAPNSVoipChannelResponse ::
  -- | 'platform'
  Prelude.Text ->
  APNSVoipChannelResponse
newAPNSVoipChannelResponse :: Text -> APNSVoipChannelResponse
newAPNSVoipChannelResponse Text
pPlatform_ =
  APNSVoipChannelResponse'
    { $sel:applicationId:APNSVoipChannelResponse' :: Maybe Text
applicationId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:APNSVoipChannelResponse' :: Maybe Text
creationDate = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultAuthenticationMethod:APNSVoipChannelResponse' :: Maybe Text
defaultAuthenticationMethod = forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:APNSVoipChannelResponse' :: Maybe Bool
enabled = forall a. Maybe a
Prelude.Nothing,
      $sel:hasCredential:APNSVoipChannelResponse' :: Maybe Bool
hasCredential = forall a. Maybe a
Prelude.Nothing,
      $sel:hasTokenKey:APNSVoipChannelResponse' :: Maybe Bool
hasTokenKey = forall a. Maybe a
Prelude.Nothing,
      $sel:id:APNSVoipChannelResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:isArchived:APNSVoipChannelResponse' :: Maybe Bool
isArchived = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:APNSVoipChannelResponse' :: Maybe Text
lastModifiedBy = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedDate:APNSVoipChannelResponse' :: Maybe Text
lastModifiedDate = forall a. Maybe a
Prelude.Nothing,
      $sel:version:APNSVoipChannelResponse' :: Maybe Int
version = forall a. Maybe a
Prelude.Nothing,
      $sel:platform:APNSVoipChannelResponse' :: Text
platform = Text
pPlatform_
    }

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

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

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

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

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

-- | Specifies whether the APNs VoIP 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.
aPNSVoipChannelResponse_hasTokenKey :: Lens.Lens' APNSVoipChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSVoipChannelResponse_hasTokenKey :: Lens' APNSVoipChannelResponse (Maybe Bool)
aPNSVoipChannelResponse_hasTokenKey = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\APNSVoipChannelResponse' {Maybe Bool
hasTokenKey :: Maybe Bool
$sel:hasTokenKey:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
hasTokenKey} -> Maybe Bool
hasTokenKey) (\s :: APNSVoipChannelResponse
s@APNSVoipChannelResponse' {} Maybe Bool
a -> APNSVoipChannelResponse
s {$sel:hasTokenKey:APNSVoipChannelResponse' :: Maybe Bool
hasTokenKey = Maybe Bool
a} :: APNSVoipChannelResponse)

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

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

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

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

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

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

instance Data.FromJSON APNSVoipChannelResponse where
  parseJSON :: Value -> Parser APNSVoipChannelResponse
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"APNSVoipChannelResponse"
      ( \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
-> APNSVoipChannelResponse
APNSVoipChannelResponse'
            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 APNSVoipChannelResponse where
  hashWithSalt :: Int -> APNSVoipChannelResponse -> Int
hashWithSalt Int
_salt APNSVoipChannelResponse' {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:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Text
$sel:version:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Int
$sel:lastModifiedDate:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:lastModifiedBy:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:isArchived:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:id:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:hasTokenKey:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:hasCredential:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:enabled:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:defaultAuthenticationMethod:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:creationDate:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:applicationId:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> 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 APNSVoipChannelResponse where
  rnf :: APNSVoipChannelResponse -> ()
rnf APNSVoipChannelResponse' {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:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Text
$sel:version:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Int
$sel:lastModifiedDate:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:lastModifiedBy:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:isArchived:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:id:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:hasTokenKey:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:hasCredential:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:enabled:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Bool
$sel:defaultAuthenticationMethod:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:creationDate:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> Maybe Text
$sel:applicationId:APNSVoipChannelResponse' :: APNSVoipChannelResponse -> 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