{-# 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.Route53AutoNaming.Types.PublicDnsPropertiesMutable 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.Route53AutoNaming.Types.SOA
data PublicDnsPropertiesMutable = PublicDnsPropertiesMutable'
{
PublicDnsPropertiesMutable -> SOA
soa :: SOA
}
deriving (PublicDnsPropertiesMutable -> PublicDnsPropertiesMutable -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PublicDnsPropertiesMutable -> PublicDnsPropertiesMutable -> Bool
$c/= :: PublicDnsPropertiesMutable -> PublicDnsPropertiesMutable -> Bool
== :: PublicDnsPropertiesMutable -> PublicDnsPropertiesMutable -> Bool
$c== :: PublicDnsPropertiesMutable -> PublicDnsPropertiesMutable -> Bool
Prelude.Eq, ReadPrec [PublicDnsPropertiesMutable]
ReadPrec PublicDnsPropertiesMutable
Int -> ReadS PublicDnsPropertiesMutable
ReadS [PublicDnsPropertiesMutable]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PublicDnsPropertiesMutable]
$creadListPrec :: ReadPrec [PublicDnsPropertiesMutable]
readPrec :: ReadPrec PublicDnsPropertiesMutable
$creadPrec :: ReadPrec PublicDnsPropertiesMutable
readList :: ReadS [PublicDnsPropertiesMutable]
$creadList :: ReadS [PublicDnsPropertiesMutable]
readsPrec :: Int -> ReadS PublicDnsPropertiesMutable
$creadsPrec :: Int -> ReadS PublicDnsPropertiesMutable
Prelude.Read, Int -> PublicDnsPropertiesMutable -> ShowS
[PublicDnsPropertiesMutable] -> ShowS
PublicDnsPropertiesMutable -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PublicDnsPropertiesMutable] -> ShowS
$cshowList :: [PublicDnsPropertiesMutable] -> ShowS
show :: PublicDnsPropertiesMutable -> String
$cshow :: PublicDnsPropertiesMutable -> String
showsPrec :: Int -> PublicDnsPropertiesMutable -> ShowS
$cshowsPrec :: Int -> PublicDnsPropertiesMutable -> ShowS
Prelude.Show, forall x.
Rep PublicDnsPropertiesMutable x -> PublicDnsPropertiesMutable
forall x.
PublicDnsPropertiesMutable -> Rep PublicDnsPropertiesMutable x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PublicDnsPropertiesMutable x -> PublicDnsPropertiesMutable
$cfrom :: forall x.
PublicDnsPropertiesMutable -> Rep PublicDnsPropertiesMutable x
Prelude.Generic)
newPublicDnsPropertiesMutable ::
SOA ->
PublicDnsPropertiesMutable
newPublicDnsPropertiesMutable :: SOA -> PublicDnsPropertiesMutable
newPublicDnsPropertiesMutable SOA
pSOA_ =
PublicDnsPropertiesMutable' {$sel:soa:PublicDnsPropertiesMutable' :: SOA
soa = SOA
pSOA_}
publicDnsPropertiesMutable_soa :: Lens.Lens' PublicDnsPropertiesMutable SOA
publicDnsPropertiesMutable_soa :: Lens' PublicDnsPropertiesMutable SOA
publicDnsPropertiesMutable_soa = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PublicDnsPropertiesMutable' {SOA
soa :: SOA
$sel:soa:PublicDnsPropertiesMutable' :: PublicDnsPropertiesMutable -> SOA
soa} -> SOA
soa) (\s :: PublicDnsPropertiesMutable
s@PublicDnsPropertiesMutable' {} SOA
a -> PublicDnsPropertiesMutable
s {$sel:soa:PublicDnsPropertiesMutable' :: SOA
soa = SOA
a} :: PublicDnsPropertiesMutable)
instance Prelude.Hashable PublicDnsPropertiesMutable where
hashWithSalt :: Int -> PublicDnsPropertiesMutable -> Int
hashWithSalt Int
_salt PublicDnsPropertiesMutable' {SOA
soa :: SOA
$sel:soa:PublicDnsPropertiesMutable' :: PublicDnsPropertiesMutable -> SOA
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` SOA
soa
instance Prelude.NFData PublicDnsPropertiesMutable where
rnf :: PublicDnsPropertiesMutable -> ()
rnf PublicDnsPropertiesMutable' {SOA
soa :: SOA
$sel:soa:PublicDnsPropertiesMutable' :: PublicDnsPropertiesMutable -> SOA
..} = forall a. NFData a => a -> ()
Prelude.rnf SOA
soa
instance Data.ToJSON PublicDnsPropertiesMutable where
toJSON :: PublicDnsPropertiesMutable -> Value
toJSON PublicDnsPropertiesMutable' {SOA
soa :: SOA
$sel:soa:PublicDnsPropertiesMutable' :: PublicDnsPropertiesMutable -> SOA
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[forall a. a -> Maybe a
Prelude.Just (Key
"SOA" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= SOA
soa)]
)