{-# 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.Route53.Types.DNSSECStatus where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53.Internal
data DNSSECStatus = DNSSECStatus'
{
DNSSECStatus -> Maybe Text
serveSignature :: Prelude.Maybe Prelude.Text,
DNSSECStatus -> Maybe Text
statusMessage :: Prelude.Maybe Prelude.Text
}
deriving (DNSSECStatus -> DNSSECStatus -> Bool
(DNSSECStatus -> DNSSECStatus -> Bool)
-> (DNSSECStatus -> DNSSECStatus -> Bool) -> Eq DNSSECStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DNSSECStatus -> DNSSECStatus -> Bool
$c/= :: DNSSECStatus -> DNSSECStatus -> Bool
== :: DNSSECStatus -> DNSSECStatus -> Bool
$c== :: DNSSECStatus -> DNSSECStatus -> Bool
Prelude.Eq, ReadPrec [DNSSECStatus]
ReadPrec DNSSECStatus
Int -> ReadS DNSSECStatus
ReadS [DNSSECStatus]
(Int -> ReadS DNSSECStatus)
-> ReadS [DNSSECStatus]
-> ReadPrec DNSSECStatus
-> ReadPrec [DNSSECStatus]
-> Read DNSSECStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DNSSECStatus]
$creadListPrec :: ReadPrec [DNSSECStatus]
readPrec :: ReadPrec DNSSECStatus
$creadPrec :: ReadPrec DNSSECStatus
readList :: ReadS [DNSSECStatus]
$creadList :: ReadS [DNSSECStatus]
readsPrec :: Int -> ReadS DNSSECStatus
$creadsPrec :: Int -> ReadS DNSSECStatus
Prelude.Read, Int -> DNSSECStatus -> ShowS
[DNSSECStatus] -> ShowS
DNSSECStatus -> String
(Int -> DNSSECStatus -> ShowS)
-> (DNSSECStatus -> String)
-> ([DNSSECStatus] -> ShowS)
-> Show DNSSECStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DNSSECStatus] -> ShowS
$cshowList :: [DNSSECStatus] -> ShowS
show :: DNSSECStatus -> String
$cshow :: DNSSECStatus -> String
showsPrec :: Int -> DNSSECStatus -> ShowS
$cshowsPrec :: Int -> DNSSECStatus -> ShowS
Prelude.Show, (forall x. DNSSECStatus -> Rep DNSSECStatus x)
-> (forall x. Rep DNSSECStatus x -> DNSSECStatus)
-> Generic DNSSECStatus
forall x. Rep DNSSECStatus x -> DNSSECStatus
forall x. DNSSECStatus -> Rep DNSSECStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DNSSECStatus x -> DNSSECStatus
$cfrom :: forall x. DNSSECStatus -> Rep DNSSECStatus x
Prelude.Generic)
newDNSSECStatus ::
DNSSECStatus
newDNSSECStatus :: DNSSECStatus
newDNSSECStatus =
DNSSECStatus' :: Maybe Text -> Maybe Text -> DNSSECStatus
DNSSECStatus'
{ $sel:serveSignature:DNSSECStatus' :: Maybe Text
serveSignature = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusMessage:DNSSECStatus' :: Maybe Text
statusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
dNSSECStatus_serveSignature :: Lens.Lens' DNSSECStatus (Prelude.Maybe Prelude.Text)
dNSSECStatus_serveSignature :: (Maybe Text -> f (Maybe Text)) -> DNSSECStatus -> f DNSSECStatus
dNSSECStatus_serveSignature = (DNSSECStatus -> Maybe Text)
-> (DNSSECStatus -> Maybe Text -> DNSSECStatus)
-> Lens DNSSECStatus DNSSECStatus (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DNSSECStatus' {Maybe Text
serveSignature :: Maybe Text
$sel:serveSignature:DNSSECStatus' :: DNSSECStatus -> Maybe Text
serveSignature} -> Maybe Text
serveSignature) (\s :: DNSSECStatus
s@DNSSECStatus' {} Maybe Text
a -> DNSSECStatus
s {$sel:serveSignature:DNSSECStatus' :: Maybe Text
serveSignature = Maybe Text
a} :: DNSSECStatus)
dNSSECStatus_statusMessage :: Lens.Lens' DNSSECStatus (Prelude.Maybe Prelude.Text)
dNSSECStatus_statusMessage :: (Maybe Text -> f (Maybe Text)) -> DNSSECStatus -> f DNSSECStatus
dNSSECStatus_statusMessage = (DNSSECStatus -> Maybe Text)
-> (DNSSECStatus -> Maybe Text -> DNSSECStatus)
-> Lens DNSSECStatus DNSSECStatus (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DNSSECStatus' {Maybe Text
statusMessage :: Maybe Text
$sel:statusMessage:DNSSECStatus' :: DNSSECStatus -> Maybe Text
statusMessage} -> Maybe Text
statusMessage) (\s :: DNSSECStatus
s@DNSSECStatus' {} Maybe Text
a -> DNSSECStatus
s {$sel:statusMessage:DNSSECStatus' :: Maybe Text
statusMessage = Maybe Text
a} :: DNSSECStatus)
instance Core.FromXML DNSSECStatus where
parseXML :: [Node] -> Either String DNSSECStatus
parseXML [Node]
x =
Maybe Text -> Maybe Text -> DNSSECStatus
DNSSECStatus'
(Maybe Text -> Maybe Text -> DNSSECStatus)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> DNSSECStatus)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ServeSignature")
Either String (Maybe Text -> DNSSECStatus)
-> Either String (Maybe Text) -> Either String DNSSECStatus
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StatusMessage")
instance Prelude.Hashable DNSSECStatus
instance Prelude.NFData DNSSECStatus