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