{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pinpoint.Types.APNSVoipSandboxChannelResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
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 date and time when the APNs VoIP sandbox channel was last modified.
    APNSVoipSandboxChannelResponse -> Maybe Text
lastModifiedDate :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the APNs VoIP sandbox channel is enabled for the
    -- application.
    APNSVoipSandboxChannelResponse -> Maybe Bool
enabled :: 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,
    -- | 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 archived.
    APNSVoipSandboxChannelResponse -> Maybe Bool
isArchived :: Prelude.Maybe Prelude.Bool,
    -- | The unique identifier for the application that the APNs VoIP sandbox
    -- channel applies to.
    APNSVoipSandboxChannelResponse -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
    -- | The current version of the APNs VoIP sandbox channel.
    APNSVoipSandboxChannelResponse -> Maybe Int
version :: Prelude.Maybe Prelude.Int,
    -- | (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,
    -- | The date and time when the APNs VoIP sandbox channel was enabled.
    APNSVoipSandboxChannelResponse -> Maybe Text
creationDate :: Prelude.Maybe Prelude.Text,
    -- | The user who last modified the APNs VoIP sandbox channel.
    APNSVoipSandboxChannelResponse -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
    -- | (Not used) This property is retained only for backward compatibility.
    APNSVoipSandboxChannelResponse -> Maybe Bool
hasCredential :: Prelude.Maybe Prelude.Bool,
    -- | 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
(APNSVoipSandboxChannelResponse
 -> APNSVoipSandboxChannelResponse -> Bool)
-> (APNSVoipSandboxChannelResponse
    -> APNSVoipSandboxChannelResponse -> Bool)
-> Eq APNSVoipSandboxChannelResponse
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]
(Int -> ReadS APNSVoipSandboxChannelResponse)
-> ReadS [APNSVoipSandboxChannelResponse]
-> ReadPrec APNSVoipSandboxChannelResponse
-> ReadPrec [APNSVoipSandboxChannelResponse]
-> Read 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
(Int -> APNSVoipSandboxChannelResponse -> ShowS)
-> (APNSVoipSandboxChannelResponse -> String)
-> ([APNSVoipSandboxChannelResponse] -> ShowS)
-> Show APNSVoipSandboxChannelResponse
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.
 APNSVoipSandboxChannelResponse
 -> Rep APNSVoipSandboxChannelResponse x)
-> (forall x.
    Rep APNSVoipSandboxChannelResponse x
    -> APNSVoipSandboxChannelResponse)
-> Generic APNSVoipSandboxChannelResponse
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:
--
-- 'lastModifiedDate', 'aPNSVoipSandboxChannelResponse_lastModifiedDate' - The date and time when the APNs VoIP sandbox channel was last modified.
--
-- 'enabled', 'aPNSVoipSandboxChannelResponse_enabled' - Specifies whether the APNs VoIP sandbox channel is enabled for the
-- application.
--
-- '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.
--
-- 'defaultAuthenticationMethod', 'aPNSVoipSandboxChannelResponse_defaultAuthenticationMethod' - The default authentication method that Amazon Pinpoint uses to
-- authenticate with the APNs sandbox environment for this channel, key or
-- certificate.
--
-- 'isArchived', 'aPNSVoipSandboxChannelResponse_isArchived' - Specifies whether the APNs VoIP sandbox channel is archived.
--
-- 'applicationId', 'aPNSVoipSandboxChannelResponse_applicationId' - The unique identifier for the application that the APNs VoIP sandbox
-- channel applies to.
--
-- 'version', 'aPNSVoipSandboxChannelResponse_version' - The current version of the APNs VoIP sandbox channel.
--
-- 'id', 'aPNSVoipSandboxChannelResponse_id' - (Deprecated) An identifier for the APNs VoIP sandbox channel. This
-- property is retained only for backward compatibility.
--
-- 'creationDate', 'aPNSVoipSandboxChannelResponse_creationDate' - The date and time when the APNs VoIP sandbox channel was enabled.
--
-- 'lastModifiedBy', 'aPNSVoipSandboxChannelResponse_lastModifiedBy' - The user who last modified the APNs VoIP sandbox channel.
--
-- 'hasCredential', 'aPNSVoipSandboxChannelResponse_hasCredential' - (Not used) This property is retained only for backward compatibility.
--
-- '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' :: Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Text
-> APNSVoipSandboxChannelResponse
APNSVoipSandboxChannelResponse'
    { $sel:lastModifiedDate:APNSVoipSandboxChannelResponse' :: Maybe Text
lastModifiedDate =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:APNSVoipSandboxChannelResponse' :: Maybe Bool
enabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:hasTokenKey:APNSVoipSandboxChannelResponse' :: Maybe Bool
hasTokenKey = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:defaultAuthenticationMethod:APNSVoipSandboxChannelResponse' :: Maybe Text
defaultAuthenticationMethod =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:isArchived:APNSVoipSandboxChannelResponse' :: Maybe Bool
isArchived = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationId:APNSVoipSandboxChannelResponse' :: Maybe Text
applicationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:version:APNSVoipSandboxChannelResponse' :: Maybe Int
version = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:id:APNSVoipSandboxChannelResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:APNSVoipSandboxChannelResponse' :: Maybe Text
creationDate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:APNSVoipSandboxChannelResponse' :: Maybe Text
lastModifiedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:hasCredential:APNSVoipSandboxChannelResponse' :: Maybe Bool
hasCredential = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:platform:APNSVoipSandboxChannelResponse' :: Text
platform = Text
pPlatform_
    }

-- | The date and time when the APNs VoIP sandbox channel was last modified.
aPNSVoipSandboxChannelResponse_lastModifiedDate :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Text)
aPNSVoipSandboxChannelResponse_lastModifiedDate :: (Maybe Text -> f (Maybe Text))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_lastModifiedDate = (APNSVoipSandboxChannelResponse -> Maybe Text)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Text -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Text)
     (Maybe Text)
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)

-- | Specifies whether the APNs VoIP sandbox channel is enabled for the
-- application.
aPNSVoipSandboxChannelResponse_enabled :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSVoipSandboxChannelResponse_enabled :: (Maybe Bool -> f (Maybe Bool))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_enabled = (APNSVoipSandboxChannelResponse -> Maybe Bool)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Bool -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Bool)
     (Maybe Bool)
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)

-- | 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 :: (Maybe Bool -> f (Maybe Bool))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_hasTokenKey = (APNSVoipSandboxChannelResponse -> Maybe Bool)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Bool -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Bool)
     (Maybe Bool)
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)

-- | 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 :: (Maybe Text -> f (Maybe Text))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_defaultAuthenticationMethod = (APNSVoipSandboxChannelResponse -> Maybe Text)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Text -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Text)
     (Maybe Text)
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 archived.
aPNSVoipSandboxChannelResponse_isArchived :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSVoipSandboxChannelResponse_isArchived :: (Maybe Bool -> f (Maybe Bool))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_isArchived = (APNSVoipSandboxChannelResponse -> Maybe Bool)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Bool -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Bool)
     (Maybe Bool)
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 unique identifier for the application that the APNs VoIP sandbox
-- channel applies to.
aPNSVoipSandboxChannelResponse_applicationId :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Text)
aPNSVoipSandboxChannelResponse_applicationId :: (Maybe Text -> f (Maybe Text))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_applicationId = (APNSVoipSandboxChannelResponse -> Maybe Text)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Text -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Text)
     (Maybe Text)
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 current version of the APNs VoIP sandbox channel.
aPNSVoipSandboxChannelResponse_version :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Int)
aPNSVoipSandboxChannelResponse_version :: (Maybe Int -> f (Maybe Int))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_version = (APNSVoipSandboxChannelResponse -> Maybe Int)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Int -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Int)
     (Maybe Int)
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)

-- | (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 :: (Maybe Text -> f (Maybe Text))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_id = (APNSVoipSandboxChannelResponse -> Maybe Text)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Text -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Text)
     (Maybe Text)
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)

-- | The date and time when the APNs VoIP sandbox channel was enabled.
aPNSVoipSandboxChannelResponse_creationDate :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Text)
aPNSVoipSandboxChannelResponse_creationDate :: (Maybe Text -> f (Maybe Text))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_creationDate = (APNSVoipSandboxChannelResponse -> Maybe Text)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Text -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Text)
     (Maybe Text)
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 user who last modified the APNs VoIP sandbox channel.
aPNSVoipSandboxChannelResponse_lastModifiedBy :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Text)
aPNSVoipSandboxChannelResponse_lastModifiedBy :: (Maybe Text -> f (Maybe Text))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_lastModifiedBy = (APNSVoipSandboxChannelResponse -> Maybe Text)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Text -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Text)
     (Maybe Text)
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)

-- | (Not used) This property is retained only for backward compatibility.
aPNSVoipSandboxChannelResponse_hasCredential :: Lens.Lens' APNSVoipSandboxChannelResponse (Prelude.Maybe Prelude.Bool)
aPNSVoipSandboxChannelResponse_hasCredential :: (Maybe Bool -> f (Maybe Bool))
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_hasCredential = (APNSVoipSandboxChannelResponse -> Maybe Bool)
-> (APNSVoipSandboxChannelResponse
    -> Maybe Bool -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     (Maybe Bool)
     (Maybe Bool)
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)

-- | 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 :: (Text -> f Text)
-> APNSVoipSandboxChannelResponse
-> f APNSVoipSandboxChannelResponse
aPNSVoipSandboxChannelResponse_platform = (APNSVoipSandboxChannelResponse -> Text)
-> (APNSVoipSandboxChannelResponse
    -> Text -> APNSVoipSandboxChannelResponse)
-> Lens
     APNSVoipSandboxChannelResponse
     APNSVoipSandboxChannelResponse
     Text
     Text
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 Core.FromJSON APNSVoipSandboxChannelResponse where
  parseJSON :: Value -> Parser APNSVoipSandboxChannelResponse
parseJSON =
    String
-> (Object -> Parser APNSVoipSandboxChannelResponse)
-> Value
-> Parser APNSVoipSandboxChannelResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"APNSVoipSandboxChannelResponse"
      ( \Object
x ->
          Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Text
-> APNSVoipSandboxChannelResponse
APNSVoipSandboxChannelResponse'
            (Maybe Text
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Text
 -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastModifiedDate")
            Parser
  (Maybe Bool
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Enabled")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HasTokenKey")
            Parser
  (Maybe Text
   -> Maybe Bool
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DefaultAuthenticationMethod")
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IsArchived")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationId")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Version")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Bool -> Text -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationDate")
            Parser
  (Maybe Text
   -> Maybe Bool -> Text -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Text)
-> Parser (Maybe Bool -> Text -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastModifiedBy")
            Parser (Maybe Bool -> Text -> APNSVoipSandboxChannelResponse)
-> Parser (Maybe Bool)
-> Parser (Text -> APNSVoipSandboxChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HasCredential")
            Parser (Text -> APNSVoipSandboxChannelResponse)
-> Parser Text -> Parser APNSVoipSandboxChannelResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Platform")
      )

instance
  Prelude.Hashable
    APNSVoipSandboxChannelResponse

instance
  Prelude.NFData
    APNSVoipSandboxChannelResponse