{-# 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 #-}
module Amazonka.Pinpoint.Types.APNSVoipSandboxChannelResponse where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data APNSVoipSandboxChannelResponse = APNSVoipSandboxChannelResponse'
{
APNSVoipSandboxChannelResponse -> Maybe Text
lastModifiedDate :: Prelude.Maybe Prelude.Text,
APNSVoipSandboxChannelResponse -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
APNSVoipSandboxChannelResponse -> Maybe Bool
hasTokenKey :: Prelude.Maybe Prelude.Bool,
APNSVoipSandboxChannelResponse -> Maybe Text
defaultAuthenticationMethod :: Prelude.Maybe Prelude.Text,
APNSVoipSandboxChannelResponse -> Maybe Bool
isArchived :: Prelude.Maybe Prelude.Bool,
APNSVoipSandboxChannelResponse -> Maybe Text
applicationId :: Prelude.Maybe Prelude.Text,
APNSVoipSandboxChannelResponse -> Maybe Int
version :: Prelude.Maybe Prelude.Int,
APNSVoipSandboxChannelResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
APNSVoipSandboxChannelResponse -> Maybe Text
creationDate :: Prelude.Maybe Prelude.Text,
APNSVoipSandboxChannelResponse -> Maybe Text
lastModifiedBy :: Prelude.Maybe Prelude.Text,
APNSVoipSandboxChannelResponse -> Maybe Bool
hasCredential :: Prelude.Maybe Prelude.Bool,
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)
newAPNSVoipSandboxChannelResponse ::
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_
}
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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