{-# 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.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53AutoNaming.Types.PrivateDnsPropertiesMutable
data PrivateDnsNamespaceProperties = PrivateDnsNamespaceProperties'
{
PrivateDnsNamespaceProperties -> PrivateDnsPropertiesMutable
dnsProperties :: PrivateDnsPropertiesMutable
}
deriving (PrivateDnsNamespaceProperties
-> PrivateDnsNamespaceProperties -> Bool
(PrivateDnsNamespaceProperties
-> PrivateDnsNamespaceProperties -> Bool)
-> (PrivateDnsNamespaceProperties
-> PrivateDnsNamespaceProperties -> Bool)
-> Eq PrivateDnsNamespaceProperties
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]
(Int -> ReadS PrivateDnsNamespaceProperties)
-> ReadS [PrivateDnsNamespaceProperties]
-> ReadPrec PrivateDnsNamespaceProperties
-> ReadPrec [PrivateDnsNamespaceProperties]
-> Read 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
(Int -> PrivateDnsNamespaceProperties -> ShowS)
-> (PrivateDnsNamespaceProperties -> String)
-> ([PrivateDnsNamespaceProperties] -> ShowS)
-> Show PrivateDnsNamespaceProperties
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.
PrivateDnsNamespaceProperties
-> Rep PrivateDnsNamespaceProperties x)
-> (forall x.
Rep PrivateDnsNamespaceProperties x
-> PrivateDnsNamespaceProperties)
-> Generic PrivateDnsNamespaceProperties
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' :: PrivateDnsPropertiesMutable -> PrivateDnsNamespaceProperties
PrivateDnsNamespaceProperties'
{ $sel:dnsProperties:PrivateDnsNamespaceProperties' :: PrivateDnsPropertiesMutable
dnsProperties =
PrivateDnsPropertiesMutable
pDnsProperties_
}
privateDnsNamespaceProperties_dnsProperties :: Lens.Lens' PrivateDnsNamespaceProperties PrivateDnsPropertiesMutable
privateDnsNamespaceProperties_dnsProperties :: (PrivateDnsPropertiesMutable -> f PrivateDnsPropertiesMutable)
-> PrivateDnsNamespaceProperties -> f PrivateDnsNamespaceProperties
privateDnsNamespaceProperties_dnsProperties = (PrivateDnsNamespaceProperties -> PrivateDnsPropertiesMutable)
-> (PrivateDnsNamespaceProperties
-> PrivateDnsPropertiesMutable -> PrivateDnsNamespaceProperties)
-> Lens
PrivateDnsNamespaceProperties
PrivateDnsNamespaceProperties
PrivateDnsPropertiesMutable
PrivateDnsPropertiesMutable
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
instance Prelude.NFData PrivateDnsNamespaceProperties
instance Core.ToJSON PrivateDnsNamespaceProperties where
toJSON :: PrivateDnsNamespaceProperties -> Value
toJSON PrivateDnsNamespaceProperties' {PrivateDnsPropertiesMutable
dnsProperties :: PrivateDnsPropertiesMutable
$sel:dnsProperties:PrivateDnsNamespaceProperties' :: PrivateDnsNamespaceProperties -> PrivateDnsPropertiesMutable
..} =
[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
"DnsProperties" Text -> PrivateDnsPropertiesMutable -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= PrivateDnsPropertiesMutable
dnsProperties)
]
)