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

-- |
-- Create a value of 'VoiceChannelResponse' 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', 'voiceChannelResponse_lastModifiedDate' - The date and time, in ISO 8601 format, when the voice channel was last
-- modified.
--
-- 'enabled', 'voiceChannelResponse_enabled' - Specifies whether the voice channel is enabled for the application.
--
-- 'isArchived', 'voiceChannelResponse_isArchived' - Specifies whether the voice channel is archived.
--
-- 'applicationId', 'voiceChannelResponse_applicationId' - The unique identifier for the application that the voice channel applies
-- to.
--
-- 'version', 'voiceChannelResponse_version' - The current version of the voice channel.
--
-- 'id', 'voiceChannelResponse_id' - (Deprecated) An identifier for the voice channel. This property is
-- retained only for backward compatibility.
--
-- 'creationDate', 'voiceChannelResponse_creationDate' - The date and time, in ISO 8601 format, when the voice channel was
-- enabled.
--
-- 'lastModifiedBy', 'voiceChannelResponse_lastModifiedBy' - The user who last modified the voice channel.
--
-- 'hasCredential', 'voiceChannelResponse_hasCredential' - (Not used) This property is retained only for backward compatibility.
--
-- 'platform', 'voiceChannelResponse_platform' - The type of messaging or notification platform for the channel. For the
-- voice channel, this value is VOICE.
newVoiceChannelResponse ::
  -- | 'platform'
  Prelude.Text ->
  VoiceChannelResponse
newVoiceChannelResponse :: Text -> VoiceChannelResponse
newVoiceChannelResponse Text
pPlatform_ =
  VoiceChannelResponse' :: Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Text
-> VoiceChannelResponse
VoiceChannelResponse'
    { $sel:lastModifiedDate:VoiceChannelResponse' :: Maybe Text
lastModifiedDate =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:enabled:VoiceChannelResponse' :: Maybe Bool
enabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:isArchived:VoiceChannelResponse' :: Maybe Bool
isArchived = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationId:VoiceChannelResponse' :: Maybe Text
applicationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:version:VoiceChannelResponse' :: Maybe Int
version = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:id:VoiceChannelResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:VoiceChannelResponse' :: Maybe Text
creationDate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:VoiceChannelResponse' :: Maybe Text
lastModifiedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:hasCredential:VoiceChannelResponse' :: Maybe Bool
hasCredential = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:platform:VoiceChannelResponse' :: Text
platform = Text
pPlatform_
    }

-- | The date and time, in ISO 8601 format, when the voice channel was last
-- modified.
voiceChannelResponse_lastModifiedDate :: Lens.Lens' VoiceChannelResponse (Prelude.Maybe Prelude.Text)
voiceChannelResponse_lastModifiedDate :: (Maybe Text -> f (Maybe Text))
-> VoiceChannelResponse -> f VoiceChannelResponse
voiceChannelResponse_lastModifiedDate = (VoiceChannelResponse -> Maybe Text)
-> (VoiceChannelResponse -> Maybe Text -> VoiceChannelResponse)
-> Lens
     VoiceChannelResponse VoiceChannelResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceChannelResponse' {Maybe Text
lastModifiedDate :: Maybe Text
$sel:lastModifiedDate:VoiceChannelResponse' :: VoiceChannelResponse -> Maybe Text
lastModifiedDate} -> Maybe Text
lastModifiedDate) (\s :: VoiceChannelResponse
s@VoiceChannelResponse' {} Maybe Text
a -> VoiceChannelResponse
s {$sel:lastModifiedDate:VoiceChannelResponse' :: Maybe Text
lastModifiedDate = Maybe Text
a} :: VoiceChannelResponse)

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

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

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

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

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

-- | The date and time, in ISO 8601 format, when the voice channel was
-- enabled.
voiceChannelResponse_creationDate :: Lens.Lens' VoiceChannelResponse (Prelude.Maybe Prelude.Text)
voiceChannelResponse_creationDate :: (Maybe Text -> f (Maybe Text))
-> VoiceChannelResponse -> f VoiceChannelResponse
voiceChannelResponse_creationDate = (VoiceChannelResponse -> Maybe Text)
-> (VoiceChannelResponse -> Maybe Text -> VoiceChannelResponse)
-> Lens
     VoiceChannelResponse VoiceChannelResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VoiceChannelResponse' {Maybe Text
creationDate :: Maybe Text
$sel:creationDate:VoiceChannelResponse' :: VoiceChannelResponse -> Maybe Text
creationDate} -> Maybe Text
creationDate) (\s :: VoiceChannelResponse
s@VoiceChannelResponse' {} Maybe Text
a -> VoiceChannelResponse
s {$sel:creationDate:VoiceChannelResponse' :: Maybe Text
creationDate = Maybe Text
a} :: VoiceChannelResponse)

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

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

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

instance Core.FromJSON VoiceChannelResponse where
  parseJSON :: Value -> Parser VoiceChannelResponse
parseJSON =
    String
-> (Object -> Parser VoiceChannelResponse)
-> Value
-> Parser VoiceChannelResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"VoiceChannelResponse"
      ( \Object
x ->
          Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Text
-> VoiceChannelResponse
VoiceChannelResponse'
            (Maybe Text
 -> Maybe Bool
 -> Maybe Bool
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> Text
 -> VoiceChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Bool
      -> Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> VoiceChannelResponse)
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 Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> VoiceChannelResponse)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> VoiceChannelResponse)
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 Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> Text
   -> VoiceChannelResponse)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> VoiceChannelResponse)
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
   -> VoiceChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> VoiceChannelResponse)
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
   -> VoiceChannelResponse)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> Text
      -> VoiceChannelResponse)
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
   -> VoiceChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Bool -> Text -> VoiceChannelResponse)
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 -> VoiceChannelResponse)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Bool -> Text -> VoiceChannelResponse)
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 -> VoiceChannelResponse)
-> Parser (Maybe Text)
-> Parser (Maybe Bool -> Text -> VoiceChannelResponse)
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 -> VoiceChannelResponse)
-> Parser (Maybe Bool) -> Parser (Text -> VoiceChannelResponse)
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 -> VoiceChannelResponse)
-> Parser Text -> Parser VoiceChannelResponse
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 VoiceChannelResponse

instance Prelude.NFData VoiceChannelResponse