{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53Resolver.Types.FirewallDomainListStatus
data FirewallDomainList = FirewallDomainList'
{
FirewallDomainList -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Int
domainCount :: Prelude.Maybe Prelude.Int,
FirewallDomainList -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
managedOwnerName :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
modificationTime :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
FirewallDomainList -> Maybe FirewallDomainListStatus
status :: Prelude.Maybe FirewallDomainListStatus,
FirewallDomainList -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text
}
deriving (FirewallDomainList -> FirewallDomainList -> Bool
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]
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
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. 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'
{ $sel:arn:FirewallDomainList' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:FirewallDomainList' :: Maybe Text
creationTime = forall a. Maybe a
Prelude.Nothing,
$sel:creatorRequestId:FirewallDomainList' :: Maybe Text
creatorRequestId = forall a. Maybe a
Prelude.Nothing,
$sel:domainCount:FirewallDomainList' :: Maybe Int
domainCount = forall a. Maybe a
Prelude.Nothing,
$sel:id:FirewallDomainList' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:managedOwnerName:FirewallDomainList' :: Maybe Text
managedOwnerName = forall a. Maybe a
Prelude.Nothing,
$sel:modificationTime:FirewallDomainList' :: Maybe Text
modificationTime = forall a. Maybe a
Prelude.Nothing,
$sel:name:FirewallDomainList' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:status:FirewallDomainList' :: Maybe FirewallDomainListStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:FirewallDomainList' :: Maybe Text
statusMessage = forall a. Maybe a
Prelude.Nothing
}
firewallDomainList_arn :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_arn :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_arn = 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_creationTime :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_creationTime :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_creationTime = 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_creatorRequestId :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_creatorRequestId :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_creatorRequestId = 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_domainCount :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Int)
firewallDomainList_domainCount :: Lens' FirewallDomainList (Maybe Int)
firewallDomainList_domainCount = 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_id :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_id :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_id = 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)
firewallDomainList_managedOwnerName :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_managedOwnerName :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_managedOwnerName = 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_modificationTime :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_modificationTime :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_modificationTime = 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_name :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_name :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_name = 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_status :: Lens.Lens' FirewallDomainList (Prelude.Maybe FirewallDomainListStatus)
firewallDomainList_status :: Lens' FirewallDomainList (Maybe FirewallDomainListStatus)
firewallDomainList_status = 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_statusMessage :: Lens.Lens' FirewallDomainList (Prelude.Maybe Prelude.Text)
firewallDomainList_statusMessage :: Lens' FirewallDomainList (Maybe Text)
firewallDomainList_statusMessage = 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)
instance Data.FromJSON FirewallDomainList where
parseJSON :: Value -> Parser FirewallDomainList
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"FirewallDomainList"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe FirewallDomainListStatus
-> Maybe Text
-> FirewallDomainList
FirewallDomainList'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Arn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreatorRequestId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DomainCount")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Id")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ManagedOwnerName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ModificationTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"StatusMessage")
)
instance Prelude.Hashable FirewallDomainList where
hashWithSalt :: Int -> FirewallDomainList -> Int
hashWithSalt Int
_salt FirewallDomainList' {Maybe Int
Maybe Text
Maybe FirewallDomainListStatus
statusMessage :: Maybe Text
status :: Maybe FirewallDomainListStatus
name :: Maybe Text
modificationTime :: Maybe Text
managedOwnerName :: Maybe Text
id :: Maybe Text
domainCount :: Maybe Int
creatorRequestId :: Maybe Text
creationTime :: Maybe Text
arn :: Maybe Text
$sel:statusMessage:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:status:FirewallDomainList' :: FirewallDomainList -> Maybe FirewallDomainListStatus
$sel:name:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:modificationTime:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:managedOwnerName:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:id:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:domainCount:FirewallDomainList' :: FirewallDomainList -> Maybe Int
$sel:creatorRequestId:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:creationTime:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:arn:FirewallDomainList' :: FirewallDomainList -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
creationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
creatorRequestId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
domainCount
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
managedOwnerName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
modificationTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe FirewallDomainListStatus
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
statusMessage
instance Prelude.NFData FirewallDomainList where
rnf :: FirewallDomainList -> ()
rnf FirewallDomainList' {Maybe Int
Maybe Text
Maybe FirewallDomainListStatus
statusMessage :: Maybe Text
status :: Maybe FirewallDomainListStatus
name :: Maybe Text
modificationTime :: Maybe Text
managedOwnerName :: Maybe Text
id :: Maybe Text
domainCount :: Maybe Int
creatorRequestId :: Maybe Text
creationTime :: Maybe Text
arn :: Maybe Text
$sel:statusMessage:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:status:FirewallDomainList' :: FirewallDomainList -> Maybe FirewallDomainListStatus
$sel:name:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:modificationTime:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:managedOwnerName:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:id:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:domainCount:FirewallDomainList' :: FirewallDomainList -> Maybe Int
$sel:creatorRequestId:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:creationTime:FirewallDomainList' :: FirewallDomainList -> Maybe Text
$sel:arn:FirewallDomainList' :: FirewallDomainList -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creatorRequestId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
domainCount
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
managedOwnerName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
modificationTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe FirewallDomainListStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusMessage