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

-- |
-- Create a value of 'APNSVoipSandboxChannelResponse' 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', 'aPNSVoipSandboxChannelResponse_applicationId' - The unique identifier for the application that the APNs VoIP sandbox
-- channel applies to.
--
-- 'creationDate', 'aPNSVoipSandboxChannelResponse_creationDate' - The date and time when the APNs VoIP sandbox channel was enabled.
--
-- 'defaultAuthenticationMethod', 'aPNSVoipSandboxChannelResponse_defaultAuthenticationMethod' - The default authentication method that Amazon Pinpoint uses to
-- authenticate with the APNs sandbox environment for this channel, key or
-- certificate.
--
-- 'enabled', 'aPNSVoipSandboxChannelResponse_enabled' - Specifies whether the APNs VoIP sandbox channel is enabled for the
-- application.
--
-- 'hasCredential', 'aPNSVoipSandboxChannelResponse_hasCredential' - (Not used) This property is retained only for backward compatibility.
--
-- 'hasTokenKey', 'aPNSVoipSandboxChannelResponse_hasTokenKey' - Specifies whether the APNs VoIP sandbox 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', 'aPNSVoipSandboxChannelResponse_id' - (Deprecated) An identifier for the APNs VoIP sandbox channel. This
-- property is retained only for backward compatibility.
--
-- 'isArchived', 'aPNSVoipSandboxChannelResponse_isArchived' - Specifies whether the APNs VoIP sandbox channel is archived.
--
-- 'lastModifiedBy', 'aPNSVoipSandboxChannelResponse_lastModifiedBy' - The user who last modified the APNs VoIP sandbox channel.
--
-- 'lastModifiedDate', 'aPNSVoipSandboxChannelResponse_lastModifiedDate' - The date and time when the APNs VoIP sandbox channel was last modified.
--
-- 'version', 'aPNSVoipSandboxChannelResponse_version' - The current version of the APNs VoIP sandbox channel.
--
-- 'platform', 'aPNSVoipSandboxChannelResponse_platform' - The type of messaging or notification platform for the channel. For the
-- APNs VoIP sandbox channel, this value is APNS_VOIP_SANDBOX.
newAPNSVoipSandboxChannelResponse ::
  -- | 'platform'
  Prelude.Text ->
  APNSVoipSandboxChannelResponse
newAPNSVoipSandboxChannelResponse :: Text -> APNSVoipSandboxChannelResponse
newAPNSVoipSandboxChannelResponse Text
pPlatform_ =
  APNSVoipSandboxChannelResponse'
    { $sel:applicationId:APNSVoipSandboxChannelResponse' :: Maybe Text
applicationId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:APNSVoipSandboxChannelResponse' :: Maybe Text
creationDate = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultAuthenticationMethod:APNSVoipSandboxChannelResponse' :: Maybe Text
defaultAuthenticationMethod =
        forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:APNSVoipSandboxChannelResponse' :: Maybe Bool
enabled = forall a. Maybe a
Prelude.Nothing,
      $sel:hasCredential:APNSVoipSandboxChannelResponse' :: Maybe Bool
hasCredential = forall a. Maybe a
Prelude.Nothing,
      $sel:hasTokenKey:APNSVoipSandboxChannelResponse' :: Maybe Bool
hasTokenKey = forall a. Maybe a
Prelude.Nothing,
      $sel:id:APNSVoipSandboxChannelResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:isArchived:APNSVoipSandboxChannelResponse' :: Maybe Bool
isArchived = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:APNSVoipSandboxChannelResponse' :: Maybe Text
lastModifiedBy = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedDate:APNSVoipSandboxChannelResponse' :: Maybe Text
lastModifiedDate = forall a. Maybe a
Prelude.Nothing,
      $sel:version:APNSVoipSandboxChannelResponse' :: Maybe Int
version = forall a. Maybe a
Prelude.Nothing,
      $sel:platform:APNSVoipSandboxChannelResponse' :: Text
platform = Text
pPlatform_
    }

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

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

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

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

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

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

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

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

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

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

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

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

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