{-# 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.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
data FirewallDomainList = FirewallDomainList'
{
FirewallDomainList -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe FirewallDomainListStatus
status :: Prelude.Maybe FirewallDomainListStatus,
FirewallDomainList -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
managedOwnerName :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Int
domainCount :: Prelude.Maybe Prelude.Int,
FirewallDomainList -> Maybe Text
modificationTime :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
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)
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
}
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)
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)
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)
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)
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)
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)
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)
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)
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)
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