{-# 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.Lightsail.Types.RegisteredDomainDelegationInfo where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Lightsail.Types.NameServersUpdateState
import Amazonka.Lightsail.Types.R53HostedZoneDeletionState
import qualified Amazonka.Prelude as Prelude
data RegisteredDomainDelegationInfo = RegisteredDomainDelegationInfo'
{
RegisteredDomainDelegationInfo -> Maybe NameServersUpdateState
nameServersUpdateState :: Prelude.Maybe NameServersUpdateState,
RegisteredDomainDelegationInfo -> Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState :: Prelude.Maybe R53HostedZoneDeletionState
}
deriving (RegisteredDomainDelegationInfo
-> RegisteredDomainDelegationInfo -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisteredDomainDelegationInfo
-> RegisteredDomainDelegationInfo -> Bool
$c/= :: RegisteredDomainDelegationInfo
-> RegisteredDomainDelegationInfo -> Bool
== :: RegisteredDomainDelegationInfo
-> RegisteredDomainDelegationInfo -> Bool
$c== :: RegisteredDomainDelegationInfo
-> RegisteredDomainDelegationInfo -> Bool
Prelude.Eq, ReadPrec [RegisteredDomainDelegationInfo]
ReadPrec RegisteredDomainDelegationInfo
Int -> ReadS RegisteredDomainDelegationInfo
ReadS [RegisteredDomainDelegationInfo]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisteredDomainDelegationInfo]
$creadListPrec :: ReadPrec [RegisteredDomainDelegationInfo]
readPrec :: ReadPrec RegisteredDomainDelegationInfo
$creadPrec :: ReadPrec RegisteredDomainDelegationInfo
readList :: ReadS [RegisteredDomainDelegationInfo]
$creadList :: ReadS [RegisteredDomainDelegationInfo]
readsPrec :: Int -> ReadS RegisteredDomainDelegationInfo
$creadsPrec :: Int -> ReadS RegisteredDomainDelegationInfo
Prelude.Read, Int -> RegisteredDomainDelegationInfo -> ShowS
[RegisteredDomainDelegationInfo] -> ShowS
RegisteredDomainDelegationInfo -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisteredDomainDelegationInfo] -> ShowS
$cshowList :: [RegisteredDomainDelegationInfo] -> ShowS
show :: RegisteredDomainDelegationInfo -> String
$cshow :: RegisteredDomainDelegationInfo -> String
showsPrec :: Int -> RegisteredDomainDelegationInfo -> ShowS
$cshowsPrec :: Int -> RegisteredDomainDelegationInfo -> ShowS
Prelude.Show, forall x.
Rep RegisteredDomainDelegationInfo x
-> RegisteredDomainDelegationInfo
forall x.
RegisteredDomainDelegationInfo
-> Rep RegisteredDomainDelegationInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisteredDomainDelegationInfo x
-> RegisteredDomainDelegationInfo
$cfrom :: forall x.
RegisteredDomainDelegationInfo
-> Rep RegisteredDomainDelegationInfo x
Prelude.Generic)
newRegisteredDomainDelegationInfo ::
RegisteredDomainDelegationInfo
newRegisteredDomainDelegationInfo :: RegisteredDomainDelegationInfo
newRegisteredDomainDelegationInfo =
RegisteredDomainDelegationInfo'
{ $sel:nameServersUpdateState:RegisteredDomainDelegationInfo' :: Maybe NameServersUpdateState
nameServersUpdateState =
forall a. Maybe a
Prelude.Nothing,
$sel:r53HostedZoneDeletionState:RegisteredDomainDelegationInfo' :: Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState =
forall a. Maybe a
Prelude.Nothing
}
registeredDomainDelegationInfo_nameServersUpdateState :: Lens.Lens' RegisteredDomainDelegationInfo (Prelude.Maybe NameServersUpdateState)
registeredDomainDelegationInfo_nameServersUpdateState :: Lens' RegisteredDomainDelegationInfo (Maybe NameServersUpdateState)
registeredDomainDelegationInfo_nameServersUpdateState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisteredDomainDelegationInfo' {Maybe NameServersUpdateState
nameServersUpdateState :: Maybe NameServersUpdateState
$sel:nameServersUpdateState:RegisteredDomainDelegationInfo' :: RegisteredDomainDelegationInfo -> Maybe NameServersUpdateState
nameServersUpdateState} -> Maybe NameServersUpdateState
nameServersUpdateState) (\s :: RegisteredDomainDelegationInfo
s@RegisteredDomainDelegationInfo' {} Maybe NameServersUpdateState
a -> RegisteredDomainDelegationInfo
s {$sel:nameServersUpdateState:RegisteredDomainDelegationInfo' :: Maybe NameServersUpdateState
nameServersUpdateState = Maybe NameServersUpdateState
a} :: RegisteredDomainDelegationInfo)
registeredDomainDelegationInfo_r53HostedZoneDeletionState :: Lens.Lens' RegisteredDomainDelegationInfo (Prelude.Maybe R53HostedZoneDeletionState)
registeredDomainDelegationInfo_r53HostedZoneDeletionState :: Lens'
RegisteredDomainDelegationInfo (Maybe R53HostedZoneDeletionState)
registeredDomainDelegationInfo_r53HostedZoneDeletionState = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisteredDomainDelegationInfo' {Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState :: Maybe R53HostedZoneDeletionState
$sel:r53HostedZoneDeletionState:RegisteredDomainDelegationInfo' :: RegisteredDomainDelegationInfo -> Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState} -> Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState) (\s :: RegisteredDomainDelegationInfo
s@RegisteredDomainDelegationInfo' {} Maybe R53HostedZoneDeletionState
a -> RegisteredDomainDelegationInfo
s {$sel:r53HostedZoneDeletionState:RegisteredDomainDelegationInfo' :: Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState = Maybe R53HostedZoneDeletionState
a} :: RegisteredDomainDelegationInfo)
instance Data.FromJSON RegisteredDomainDelegationInfo where
parseJSON :: Value -> Parser RegisteredDomainDelegationInfo
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"RegisteredDomainDelegationInfo"
( \Object
x ->
Maybe NameServersUpdateState
-> Maybe R53HostedZoneDeletionState
-> RegisteredDomainDelegationInfo
RegisteredDomainDelegationInfo'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"nameServersUpdateState")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"r53HostedZoneDeletionState")
)
instance
Prelude.Hashable
RegisteredDomainDelegationInfo
where
hashWithSalt :: Int -> RegisteredDomainDelegationInfo -> Int
hashWithSalt
Int
_salt
RegisteredDomainDelegationInfo' {Maybe NameServersUpdateState
Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState :: Maybe R53HostedZoneDeletionState
nameServersUpdateState :: Maybe NameServersUpdateState
$sel:r53HostedZoneDeletionState:RegisteredDomainDelegationInfo' :: RegisteredDomainDelegationInfo -> Maybe R53HostedZoneDeletionState
$sel:nameServersUpdateState:RegisteredDomainDelegationInfo' :: RegisteredDomainDelegationInfo -> Maybe NameServersUpdateState
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe NameServersUpdateState
nameServersUpdateState
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState
instance
Prelude.NFData
RegisteredDomainDelegationInfo
where
rnf :: RegisteredDomainDelegationInfo -> ()
rnf RegisteredDomainDelegationInfo' {Maybe NameServersUpdateState
Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState :: Maybe R53HostedZoneDeletionState
nameServersUpdateState :: Maybe NameServersUpdateState
$sel:r53HostedZoneDeletionState:RegisteredDomainDelegationInfo' :: RegisteredDomainDelegationInfo -> Maybe R53HostedZoneDeletionState
$sel:nameServersUpdateState:RegisteredDomainDelegationInfo' :: RegisteredDomainDelegationInfo -> Maybe NameServersUpdateState
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe NameServersUpdateState
nameServersUpdateState
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe R53HostedZoneDeletionState
r53HostedZoneDeletionState