{-# 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.FirewallDomainListMetadata where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data FirewallDomainListMetadata = FirewallDomainListMetadata'
{
FirewallDomainListMetadata -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
FirewallDomainListMetadata -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
FirewallDomainListMetadata -> Maybe Text
managedOwnerName :: Prelude.Maybe Prelude.Text,
FirewallDomainListMetadata -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
FirewallDomainListMetadata -> Maybe Text
id :: Prelude.Maybe Prelude.Text
}
deriving (FirewallDomainListMetadata -> FirewallDomainListMetadata -> Bool
(FirewallDomainListMetadata -> FirewallDomainListMetadata -> Bool)
-> (FirewallDomainListMetadata
-> FirewallDomainListMetadata -> Bool)
-> Eq FirewallDomainListMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FirewallDomainListMetadata -> FirewallDomainListMetadata -> Bool
$c/= :: FirewallDomainListMetadata -> FirewallDomainListMetadata -> Bool
== :: FirewallDomainListMetadata -> FirewallDomainListMetadata -> Bool
$c== :: FirewallDomainListMetadata -> FirewallDomainListMetadata -> Bool
Prelude.Eq, ReadPrec [FirewallDomainListMetadata]
ReadPrec FirewallDomainListMetadata
Int -> ReadS FirewallDomainListMetadata
ReadS [FirewallDomainListMetadata]
(Int -> ReadS FirewallDomainListMetadata)
-> ReadS [FirewallDomainListMetadata]
-> ReadPrec FirewallDomainListMetadata
-> ReadPrec [FirewallDomainListMetadata]
-> Read FirewallDomainListMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FirewallDomainListMetadata]
$creadListPrec :: ReadPrec [FirewallDomainListMetadata]
readPrec :: ReadPrec FirewallDomainListMetadata
$creadPrec :: ReadPrec FirewallDomainListMetadata
readList :: ReadS [FirewallDomainListMetadata]
$creadList :: ReadS [FirewallDomainListMetadata]
readsPrec :: Int -> ReadS FirewallDomainListMetadata
$creadsPrec :: Int -> ReadS FirewallDomainListMetadata
Prelude.Read, Int -> FirewallDomainListMetadata -> ShowS
[FirewallDomainListMetadata] -> ShowS
FirewallDomainListMetadata -> String
(Int -> FirewallDomainListMetadata -> ShowS)
-> (FirewallDomainListMetadata -> String)
-> ([FirewallDomainListMetadata] -> ShowS)
-> Show FirewallDomainListMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FirewallDomainListMetadata] -> ShowS
$cshowList :: [FirewallDomainListMetadata] -> ShowS
show :: FirewallDomainListMetadata -> String
$cshow :: FirewallDomainListMetadata -> String
showsPrec :: Int -> FirewallDomainListMetadata -> ShowS
$cshowsPrec :: Int -> FirewallDomainListMetadata -> ShowS
Prelude.Show, (forall x.
FirewallDomainListMetadata -> Rep FirewallDomainListMetadata x)
-> (forall x.
Rep FirewallDomainListMetadata x -> FirewallDomainListMetadata)
-> Generic FirewallDomainListMetadata
forall x.
Rep FirewallDomainListMetadata x -> FirewallDomainListMetadata
forall x.
FirewallDomainListMetadata -> Rep FirewallDomainListMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FirewallDomainListMetadata x -> FirewallDomainListMetadata
$cfrom :: forall x.
FirewallDomainListMetadata -> Rep FirewallDomainListMetadata x
Prelude.Generic)
newFirewallDomainListMetadata ::
FirewallDomainListMetadata
newFirewallDomainListMetadata :: FirewallDomainListMetadata
newFirewallDomainListMetadata =
FirewallDomainListMetadata' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallDomainListMetadata
FirewallDomainListMetadata'
{ $sel:arn:FirewallDomainListMetadata' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creatorRequestId:FirewallDomainListMetadata' :: Maybe Text
creatorRequestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:managedOwnerName:FirewallDomainListMetadata' :: Maybe Text
managedOwnerName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:FirewallDomainListMetadata' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:FirewallDomainListMetadata' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
firewallDomainListMetadata_arn :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text)
firewallDomainListMetadata_arn :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainListMetadata -> f FirewallDomainListMetadata
firewallDomainListMetadata_arn = (FirewallDomainListMetadata -> Maybe Text)
-> (FirewallDomainListMetadata
-> Maybe Text -> FirewallDomainListMetadata)
-> Lens
FirewallDomainListMetadata
FirewallDomainListMetadata
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainListMetadata' {Maybe Text
arn :: Maybe Text
$sel:arn:FirewallDomainListMetadata' :: FirewallDomainListMetadata -> Maybe Text
arn} -> Maybe Text
arn) (\s :: FirewallDomainListMetadata
s@FirewallDomainListMetadata' {} Maybe Text
a -> FirewallDomainListMetadata
s {$sel:arn:FirewallDomainListMetadata' :: Maybe Text
arn = Maybe Text
a} :: FirewallDomainListMetadata)
firewallDomainListMetadata_creatorRequestId :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text)
firewallDomainListMetadata_creatorRequestId :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainListMetadata -> f FirewallDomainListMetadata
firewallDomainListMetadata_creatorRequestId = (FirewallDomainListMetadata -> Maybe Text)
-> (FirewallDomainListMetadata
-> Maybe Text -> FirewallDomainListMetadata)
-> Lens
FirewallDomainListMetadata
FirewallDomainListMetadata
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainListMetadata' {Maybe Text
creatorRequestId :: Maybe Text
$sel:creatorRequestId:FirewallDomainListMetadata' :: FirewallDomainListMetadata -> Maybe Text
creatorRequestId} -> Maybe Text
creatorRequestId) (\s :: FirewallDomainListMetadata
s@FirewallDomainListMetadata' {} Maybe Text
a -> FirewallDomainListMetadata
s {$sel:creatorRequestId:FirewallDomainListMetadata' :: Maybe Text
creatorRequestId = Maybe Text
a} :: FirewallDomainListMetadata)
firewallDomainListMetadata_managedOwnerName :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text)
firewallDomainListMetadata_managedOwnerName :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainListMetadata -> f FirewallDomainListMetadata
firewallDomainListMetadata_managedOwnerName = (FirewallDomainListMetadata -> Maybe Text)
-> (FirewallDomainListMetadata
-> Maybe Text -> FirewallDomainListMetadata)
-> Lens
FirewallDomainListMetadata
FirewallDomainListMetadata
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainListMetadata' {Maybe Text
managedOwnerName :: Maybe Text
$sel:managedOwnerName:FirewallDomainListMetadata' :: FirewallDomainListMetadata -> Maybe Text
managedOwnerName} -> Maybe Text
managedOwnerName) (\s :: FirewallDomainListMetadata
s@FirewallDomainListMetadata' {} Maybe Text
a -> FirewallDomainListMetadata
s {$sel:managedOwnerName:FirewallDomainListMetadata' :: Maybe Text
managedOwnerName = Maybe Text
a} :: FirewallDomainListMetadata)
firewallDomainListMetadata_name :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text)
firewallDomainListMetadata_name :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainListMetadata -> f FirewallDomainListMetadata
firewallDomainListMetadata_name = (FirewallDomainListMetadata -> Maybe Text)
-> (FirewallDomainListMetadata
-> Maybe Text -> FirewallDomainListMetadata)
-> Lens
FirewallDomainListMetadata
FirewallDomainListMetadata
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainListMetadata' {Maybe Text
name :: Maybe Text
$sel:name:FirewallDomainListMetadata' :: FirewallDomainListMetadata -> Maybe Text
name} -> Maybe Text
name) (\s :: FirewallDomainListMetadata
s@FirewallDomainListMetadata' {} Maybe Text
a -> FirewallDomainListMetadata
s {$sel:name:FirewallDomainListMetadata' :: Maybe Text
name = Maybe Text
a} :: FirewallDomainListMetadata)
firewallDomainListMetadata_id :: Lens.Lens' FirewallDomainListMetadata (Prelude.Maybe Prelude.Text)
firewallDomainListMetadata_id :: (Maybe Text -> f (Maybe Text))
-> FirewallDomainListMetadata -> f FirewallDomainListMetadata
firewallDomainListMetadata_id = (FirewallDomainListMetadata -> Maybe Text)
-> (FirewallDomainListMetadata
-> Maybe Text -> FirewallDomainListMetadata)
-> Lens
FirewallDomainListMetadata
FirewallDomainListMetadata
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FirewallDomainListMetadata' {Maybe Text
id :: Maybe Text
$sel:id:FirewallDomainListMetadata' :: FirewallDomainListMetadata -> Maybe Text
id} -> Maybe Text
id) (\s :: FirewallDomainListMetadata
s@FirewallDomainListMetadata' {} Maybe Text
a -> FirewallDomainListMetadata
s {$sel:id:FirewallDomainListMetadata' :: Maybe Text
id = Maybe Text
a} :: FirewallDomainListMetadata)
instance Core.FromJSON FirewallDomainListMetadata where
parseJSON :: Value -> Parser FirewallDomainListMetadata
parseJSON =
String
-> (Object -> Parser FirewallDomainListMetadata)
-> Value
-> Parser FirewallDomainListMetadata
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"FirewallDomainListMetadata"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallDomainListMetadata
FirewallDomainListMetadata'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallDomainListMetadata)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallDomainListMetadata)
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
"Arn")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> FirewallDomainListMetadata)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> FirewallDomainListMetadata)
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 Text -> Maybe Text -> FirewallDomainListMetadata)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> FirewallDomainListMetadata)
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 Text -> Maybe Text -> FirewallDomainListMetadata)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> FirewallDomainListMetadata)
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 -> FirewallDomainListMetadata)
-> Parser (Maybe Text) -> Parser FirewallDomainListMetadata
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 FirewallDomainListMetadata
instance Prelude.NFData FirewallDomainListMetadata