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