{-# 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.Route53Resolver.Types.FirewallDomainList
-- 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.Route53Resolver.Types.FirewallDomainList where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53Resolver.Types.FirewallDomainListStatus

-- | High-level information about a list of firewall domains for use in a
-- FirewallRule. This is returned by GetFirewallDomainList.
--
-- To retrieve the domains that are defined for this domain list, call
-- ListFirewallDomains.
--
-- /See:/ 'newFirewallDomainList' smart constructor.
data FirewallDomainList = FirewallDomainList'
  { -- | The date and time that the domain list was created, in Unix time format
    -- and Coordinated Universal Time (UTC).
    FirewallDomainList -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
    -- | The status of the domain list.
    FirewallDomainList -> Maybe FirewallDomainListStatus
status :: Prelude.Maybe FirewallDomainListStatus,
    -- | The Amazon Resource Name (ARN) of the firewall domain list.
    FirewallDomainList -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | A unique string defined by you to identify the request. This allows you
    -- to retry failed requests without the risk of running the operation
    -- twice. This can be any unique string, for example, a timestamp.
    FirewallDomainList -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
    -- | The owner of the list, used only for lists that are not managed by you.
    -- For example, the managed domain list
    -- @AWSManagedDomainsMalwareDomainList@ has the managed owner name
    -- @Route 53 Resolver DNS Firewall@.
    FirewallDomainList -> Maybe Text
managedOwnerName :: Prelude.Maybe Prelude.Text,
    -- | The number of domain names that are specified in the domain list.
    FirewallDomainList -> Maybe Int
domainCount :: Prelude.Maybe Prelude.Int,
    -- | The date and time that the domain list was last modified, in Unix time
    -- format and Coordinated Universal Time (UTC).
    FirewallDomainList -> Maybe Text
modificationTime :: Prelude.Maybe Prelude.Text,
    -- | Additional information about the status of the list, if available.
    FirewallDomainList -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
    -- | The name of the domain list.
    FirewallDomainList -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The ID of the domain list.
    FirewallDomainList -> Maybe Text
id :: Prelude.Maybe Prelude.Text
  }
  deriving (FirewallDomainList -> FirewallDomainList -> Bool
(FirewallDomainList -> FirewallDomainList -> Bool)
-> (FirewallDomainList -> FirewallDomainList -> Bool)
-> Eq FirewallDomainList
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FirewallDomainList -> FirewallDomainList -> Bool
$c/= :: FirewallDomainList -> FirewallDomainList -> Bool
== :: FirewallDomainList -> FirewallDomainList -> Bool
$c== :: FirewallDomainList -> FirewallDomainList -> Bool
Prelude.Eq, ReadPrec [FirewallDomainList]
ReadPrec FirewallDomainList
Int -> ReadS FirewallDomainList
ReadS [FirewallDomainList]
(Int -> ReadS FirewallDomainList)
-> ReadS [FirewallDomainList]
-> ReadPrec FirewallDomainList
-> ReadPrec [FirewallDomainList]
-> Read FirewallDomainList
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FirewallDomainList]
$creadListPrec :: ReadPrec [FirewallDomainList]
readPrec :: ReadPrec FirewallDomainList
$creadPrec :: ReadPrec FirewallDomainList
readList :: ReadS [FirewallDomainList]
$creadList :: ReadS [FirewallDomainList]
readsPrec :: Int -> ReadS FirewallDomainList
$creadsPrec :: Int -> ReadS FirewallDomainList
Prelude.Read, Int -> FirewallDomainList -> ShowS
[FirewallDomainList] -> ShowS
FirewallDomainList -> String
(Int -> FirewallDomainList -> ShowS)
-> (FirewallDomainList -> String)
-> ([FirewallDomainList] -> ShowS)
-> Show FirewallDomainList
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FirewallDomainList] -> ShowS
$cshowList :: [FirewallDomainList] -> ShowS
show :: FirewallDomainList -> String
$cshow :: FirewallDomainList -> String
showsPrec :: Int -> FirewallDomainList -> ShowS
$cshowsPrec :: Int -> FirewallDomainList -> ShowS
Prelude.Show, (forall x. FirewallDomainList -> Rep FirewallDomainList x)
-> (forall x. Rep FirewallDomainList x -> FirewallDomainList)
-> Generic FirewallDomainList
forall x. Rep FirewallDomainList x -> FirewallDomainList
forall x. FirewallDomainList -> Rep FirewallDomainList x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FirewallDomainList x -> FirewallDomainList
$cfrom :: forall x. FirewallDomainList -> Rep FirewallDomainList x
Prelude.Generic)

-- |
-- Create a value of 'FirewallDomainList' 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:
--
-- 'creationTime', 'firewallDomainList_creationTime' - The date and time that the domain list was created, in Unix time format
-- and Coordinated Universal Time (UTC).
--
-- 'status', 'firewallDomainList_status' - The status of the domain list.
--
-- 'arn', 'firewallDomainList_arn' - The Amazon Resource Name (ARN) of the firewall domain list.
--
-- 'creatorRequestId', 'firewallDomainList_creatorRequestId' - A unique string defined by you to identify the request. This allows you
-- to retry failed requests without the risk of running the operation
-- twice. This can be any unique string, for example, a timestamp.
--
-- 'managedOwnerName', 'firewallDomainList_managedOwnerName' - The owner of the list, used only for lists that are not managed by you.
-- For example, the managed domain list
-- @AWSManagedDomainsMalwareDomainList@ has the managed owner name
-- @Route 53 Resolver DNS Firewall@.
--
-- 'domainCount', 'firewallDomainList_domainCount' - The number of domain names that are specified in the domain list.
--
-- 'modificationTime', 'firewallDomainList_modificationTime' - The date and time that the domain list was last modified, in Unix time
-- format and Coordinated Universal Time (UTC).
--
-- 'statusMessage', 'firewallDomainList_statusMessage' - Additional information about the status of the list, if available.
--
-- 'name', 'firewallDomainList_name' - The name of the domain list.
--
-- 'id', 'firewallDomainList_id' - The ID of the domain list.
newFirewallDomainList ::
  FirewallDomainList
newFirewallDomainList :: FirewallDomainList
newFirewallDomainList =
  FirewallDomainList' :: Maybe Text
-> Maybe FirewallDomainListStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallDomainList
FirewallDomainList'
    { $sel:creationTime:FirewallDomainList' :: Maybe Text
creationTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:FirewallDomainList' :: Maybe FirewallDomainListStatus
status = Maybe FirewallDomainListStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:FirewallDomainList' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:creatorRequestId:FirewallDomainList' :: Maybe Text
creatorRequestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:managedOwnerName:FirewallDomainList' :: Maybe Text
managedOwnerName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:domainCount:FirewallDomainList' :: Maybe Int
domainCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:modificationTime:FirewallDomainList' :: Maybe Text
modificationTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusMessage:FirewallDomainList' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:FirewallDomainList' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:FirewallDomainList' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The date and time that the domain list was created, in Unix time format
-- and Coordinated Universal Time (UTC).
firewallDomainList_creationTime :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_creationTime :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_creationTime = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
creationTime :: Maybe Text
$sel:creationTime:FirewallDomainList' :: FirewallDomainList -> Maybe Text
creationTime} -> Maybe Text
creationTime) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:creationTime:FirewallDomainList' :: Maybe Text
creationTime = Maybe Text
a} :: FirewallDomainList)

-- | The status of the domain list.
firewallDomainList_status :: Lens.Lens' FirewallDomainList (Prelude.Maybe FirewallDomainListStatus)
firewallDomainList_status :: (Maybe FirewallDomainListStatus
 -> f (Maybe FirewallDomainListStatus))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_status = (FirewallDomainList -> Maybe FirewallDomainListStatus)
-> (FirewallDomainList
    -> Maybe FirewallDomainListStatus -> FirewallDomainList)
-> Lens
     FirewallDomainList
     FirewallDomainList
     (Maybe FirewallDomainListStatus)
     (Maybe FirewallDomainListStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe FirewallDomainListStatus
status :: Maybe FirewallDomainListStatus
$sel:status:FirewallDomainList' :: FirewallDomainList -> Maybe FirewallDomainListStatus
status} -> Maybe FirewallDomainListStatus
status) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe FirewallDomainListStatus
a -> FirewallDomainList
s {$sel:status:FirewallDomainList' :: Maybe FirewallDomainListStatus
status = Maybe FirewallDomainListStatus
a} :: FirewallDomainList)

-- | The Amazon Resource Name (ARN) of the firewall domain list.
firewallDomainList_arn :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_arn :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_arn = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
arn :: Maybe Text
$sel:arn:FirewallDomainList' :: FirewallDomainList -> Maybe Text
arn} -> Maybe Text
arn) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:arn:FirewallDomainList' :: Maybe Text
arn = Maybe Text
a} :: FirewallDomainList)

-- | A unique string defined by you to identify the request. This allows you
-- to retry failed requests without the risk of running the operation
-- twice. This can be any unique string, for example, a timestamp.
firewallDomainList_creatorRequestId :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_creatorRequestId :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_creatorRequestId = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
creatorRequestId :: Maybe Text
$sel:creatorRequestId:FirewallDomainList' :: FirewallDomainList -> Maybe Text
creatorRequestId} -> Maybe Text
creatorRequestId) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:creatorRequestId:FirewallDomainList' :: Maybe Text
creatorRequestId = Maybe Text
a} :: FirewallDomainList)

-- | The owner of the list, used only for lists that are not managed by you.
-- For example, the managed domain list
-- @AWSManagedDomainsMalwareDomainList@ has the managed owner name
-- @Route 53 Resolver DNS Firewall@.
firewallDomainList_managedOwnerName :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_managedOwnerName :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_managedOwnerName = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
managedOwnerName :: Maybe Text
$sel:managedOwnerName:FirewallDomainList' :: FirewallDomainList -> Maybe Text
managedOwnerName} -> Maybe Text
managedOwnerName) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:managedOwnerName:FirewallDomainList' :: Maybe Text
managedOwnerName = Maybe Text
a} :: FirewallDomainList)

-- | The number of domain names that are specified in the domain list.
firewallDomainList_domainCount :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Int)
firewallDomainList_domainCount :: (Maybe Int -> f (Maybe Int))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_domainCount = (FirewallDomainList -> Maybe Int)
-> (FirewallDomainList -> Maybe Int -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Int
domainCount :: Maybe Int
$sel:domainCount:FirewallDomainList' :: FirewallDomainList -> Maybe Int
domainCount} -> Maybe Int
domainCount) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Int
a -> FirewallDomainList
s {$sel:domainCount:FirewallDomainList' :: Maybe Int
domainCount = Maybe Int
a} :: FirewallDomainList)

-- | The date and time that the domain list was last modified, in Unix time
-- format and Coordinated Universal Time (UTC).
firewallDomainList_modificationTime :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_modificationTime :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_modificationTime = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
modificationTime :: Maybe Text
$sel:modificationTime:FirewallDomainList' :: FirewallDomainList -> Maybe Text
modificationTime} -> Maybe Text
modificationTime) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:modificationTime:FirewallDomainList' :: Maybe Text
modificationTime = Maybe Text
a} :: FirewallDomainList)

-- | Additional information about the status of the list, if available.
firewallDomainList_statusMessage :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_statusMessage :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_statusMessage = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:FirewallDomainList' :: FirewallDomainList -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:statusMessage:FirewallDomainList' :: Maybe Text
statusMessage = Maybe Text
a} :: FirewallDomainList)

-- | The name of the domain list.
firewallDomainList_name :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_name :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_name = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
name :: Maybe Text
$sel:name:FirewallDomainList' :: FirewallDomainList -> Maybe Text
name} -> Maybe Text
name) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:name:FirewallDomainList' :: Maybe Text
name = Maybe Text
a} :: FirewallDomainList)

-- | The ID of the domain list.
firewallDomainList_id :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_id :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainList -> f FirewallDomainList
firewallDomainList_id = (FirewallDomainList -> Maybe Text)
-> (FirewallDomainList -> Maybe Text -> FirewallDomainList)
-> Lens
     FirewallDomainList FirewallDomainList (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainList' {Maybe Text
id :: Maybe Text
$sel:id:FirewallDomainList' :: FirewallDomainList -> Maybe Text
id} -> Maybe Text
id) (\s :: FirewallDomainList
s@FirewallDomainList' {} Maybe Text
a -> FirewallDomainList
s {$sel:id:FirewallDomainList' :: Maybe Text
id = Maybe Text
a} :: FirewallDomainList)

instance Core.FromJSON FirewallDomainList where
  parseJSON :: Value -> Parser FirewallDomainList
parseJSON =
    String
-> (Object -> Parser FirewallDomainList)
-> Value
-> Parser FirewallDomainList
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"FirewallDomainList"
      ( \Object
x ->
          Maybe Text
-> Maybe FirewallDomainListStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallDomainList
FirewallDomainList'
            (Maybe Text
 -> Maybe FirewallDomainListStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> FirewallDomainList)
-> Parser (Maybe Text)
-> Parser
     (Maybe FirewallDomainListStatus
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallDomainList)
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
"CreationTime")
            Parser
  (Maybe FirewallDomainListStatus
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallDomainList)
-> Parser (Maybe FirewallDomainListStatus)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallDomainList)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe FirewallDomainListStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallDomainList)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallDomainList)
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
"Arn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallDomainList)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallDomainList)
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
"CreatorRequestId")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallDomainList)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> FirewallDomainList)
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
"ManagedOwnerName")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> FirewallDomainList)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Maybe Text -> FirewallDomainList)
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
"DomainCount")
            Parser
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Maybe Text -> FirewallDomainList)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe Text -> FirewallDomainList)
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
"ModificationTime")
            Parser
  (Maybe Text -> Maybe Text -> Maybe Text -> FirewallDomainList)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> FirewallDomainList)
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
"StatusMessage")
            Parser (Maybe Text -> Maybe Text -> FirewallDomainList)
-> Parser (Maybe Text) -> Parser (Maybe Text -> FirewallDomainList)
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
"Name")
            Parser (Maybe Text -> FirewallDomainList)
-> Parser (Maybe Text) -> Parser FirewallDomainList
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")
      )

instance Prelude.Hashable FirewallDomainList

instance Prelude.NFData FirewallDomainList