{-# 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.LoadBalancerTlsCertificateDomainValidationOption where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Lightsail.Types.LoadBalancerTlsCertificateDomainStatus
import qualified Amazonka.Prelude as Prelude
data LoadBalancerTlsCertificateDomainValidationOption = LoadBalancerTlsCertificateDomainValidationOption'
{
LoadBalancerTlsCertificateDomainValidationOption -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
LoadBalancerTlsCertificateDomainValidationOption
-> Maybe LoadBalancerTlsCertificateDomainStatus
validationStatus :: Prelude.Maybe LoadBalancerTlsCertificateDomainStatus
}
deriving (LoadBalancerTlsCertificateDomainValidationOption
-> LoadBalancerTlsCertificateDomainValidationOption -> Bool
(LoadBalancerTlsCertificateDomainValidationOption
-> LoadBalancerTlsCertificateDomainValidationOption -> Bool)
-> (LoadBalancerTlsCertificateDomainValidationOption
-> LoadBalancerTlsCertificateDomainValidationOption -> Bool)
-> Eq LoadBalancerTlsCertificateDomainValidationOption
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LoadBalancerTlsCertificateDomainValidationOption
-> LoadBalancerTlsCertificateDomainValidationOption -> Bool
$c/= :: LoadBalancerTlsCertificateDomainValidationOption
-> LoadBalancerTlsCertificateDomainValidationOption -> Bool
== :: LoadBalancerTlsCertificateDomainValidationOption
-> LoadBalancerTlsCertificateDomainValidationOption -> Bool
$c== :: LoadBalancerTlsCertificateDomainValidationOption
-> LoadBalancerTlsCertificateDomainValidationOption -> Bool
Prelude.Eq, ReadPrec [LoadBalancerTlsCertificateDomainValidationOption]
ReadPrec LoadBalancerTlsCertificateDomainValidationOption
Int -> ReadS LoadBalancerTlsCertificateDomainValidationOption
ReadS [LoadBalancerTlsCertificateDomainValidationOption]
(Int -> ReadS LoadBalancerTlsCertificateDomainValidationOption)
-> ReadS [LoadBalancerTlsCertificateDomainValidationOption]
-> ReadPrec LoadBalancerTlsCertificateDomainValidationOption
-> ReadPrec [LoadBalancerTlsCertificateDomainValidationOption]
-> Read LoadBalancerTlsCertificateDomainValidationOption
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LoadBalancerTlsCertificateDomainValidationOption]
$creadListPrec :: ReadPrec [LoadBalancerTlsCertificateDomainValidationOption]
readPrec :: ReadPrec LoadBalancerTlsCertificateDomainValidationOption
$creadPrec :: ReadPrec LoadBalancerTlsCertificateDomainValidationOption
readList :: ReadS [LoadBalancerTlsCertificateDomainValidationOption]
$creadList :: ReadS [LoadBalancerTlsCertificateDomainValidationOption]
readsPrec :: Int -> ReadS LoadBalancerTlsCertificateDomainValidationOption
$creadsPrec :: Int -> ReadS LoadBalancerTlsCertificateDomainValidationOption
Prelude.Read, Int -> LoadBalancerTlsCertificateDomainValidationOption -> ShowS
[LoadBalancerTlsCertificateDomainValidationOption] -> ShowS
LoadBalancerTlsCertificateDomainValidationOption -> String
(Int -> LoadBalancerTlsCertificateDomainValidationOption -> ShowS)
-> (LoadBalancerTlsCertificateDomainValidationOption -> String)
-> ([LoadBalancerTlsCertificateDomainValidationOption] -> ShowS)
-> Show LoadBalancerTlsCertificateDomainValidationOption
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LoadBalancerTlsCertificateDomainValidationOption] -> ShowS
$cshowList :: [LoadBalancerTlsCertificateDomainValidationOption] -> ShowS
show :: LoadBalancerTlsCertificateDomainValidationOption -> String
$cshow :: LoadBalancerTlsCertificateDomainValidationOption -> String
showsPrec :: Int -> LoadBalancerTlsCertificateDomainValidationOption -> ShowS
$cshowsPrec :: Int -> LoadBalancerTlsCertificateDomainValidationOption -> ShowS
Prelude.Show, (forall x.
LoadBalancerTlsCertificateDomainValidationOption
-> Rep LoadBalancerTlsCertificateDomainValidationOption x)
-> (forall x.
Rep LoadBalancerTlsCertificateDomainValidationOption x
-> LoadBalancerTlsCertificateDomainValidationOption)
-> Generic LoadBalancerTlsCertificateDomainValidationOption
forall x.
Rep LoadBalancerTlsCertificateDomainValidationOption x
-> LoadBalancerTlsCertificateDomainValidationOption
forall x.
LoadBalancerTlsCertificateDomainValidationOption
-> Rep LoadBalancerTlsCertificateDomainValidationOption x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LoadBalancerTlsCertificateDomainValidationOption x
-> LoadBalancerTlsCertificateDomainValidationOption
$cfrom :: forall x.
LoadBalancerTlsCertificateDomainValidationOption
-> Rep LoadBalancerTlsCertificateDomainValidationOption x
Prelude.Generic)
newLoadBalancerTlsCertificateDomainValidationOption ::
LoadBalancerTlsCertificateDomainValidationOption
newLoadBalancerTlsCertificateDomainValidationOption :: LoadBalancerTlsCertificateDomainValidationOption
newLoadBalancerTlsCertificateDomainValidationOption =
LoadBalancerTlsCertificateDomainValidationOption' :: Maybe Text
-> Maybe LoadBalancerTlsCertificateDomainStatus
-> LoadBalancerTlsCertificateDomainValidationOption
LoadBalancerTlsCertificateDomainValidationOption'
{ $sel:domainName:LoadBalancerTlsCertificateDomainValidationOption' :: Maybe Text
domainName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:validationStatus:LoadBalancerTlsCertificateDomainValidationOption' :: Maybe LoadBalancerTlsCertificateDomainStatus
validationStatus =
Maybe LoadBalancerTlsCertificateDomainStatus
forall a. Maybe a
Prelude.Nothing
}
loadBalancerTlsCertificateDomainValidationOption_domainName :: Lens.Lens' LoadBalancerTlsCertificateDomainValidationOption (Prelude.Maybe Prelude.Text)
loadBalancerTlsCertificateDomainValidationOption_domainName :: (Maybe Text -> f (Maybe Text))
-> LoadBalancerTlsCertificateDomainValidationOption
-> f LoadBalancerTlsCertificateDomainValidationOption
loadBalancerTlsCertificateDomainValidationOption_domainName = (LoadBalancerTlsCertificateDomainValidationOption -> Maybe Text)
-> (LoadBalancerTlsCertificateDomainValidationOption
-> Maybe Text -> LoadBalancerTlsCertificateDomainValidationOption)
-> Lens
LoadBalancerTlsCertificateDomainValidationOption
LoadBalancerTlsCertificateDomainValidationOption
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoadBalancerTlsCertificateDomainValidationOption' {Maybe Text
domainName :: Maybe Text
$sel:domainName:LoadBalancerTlsCertificateDomainValidationOption' :: LoadBalancerTlsCertificateDomainValidationOption -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: LoadBalancerTlsCertificateDomainValidationOption
s@LoadBalancerTlsCertificateDomainValidationOption' {} Maybe Text
a -> LoadBalancerTlsCertificateDomainValidationOption
s {$sel:domainName:LoadBalancerTlsCertificateDomainValidationOption' :: Maybe Text
domainName = Maybe Text
a} :: LoadBalancerTlsCertificateDomainValidationOption)
loadBalancerTlsCertificateDomainValidationOption_validationStatus :: Lens.Lens' LoadBalancerTlsCertificateDomainValidationOption (Prelude.Maybe LoadBalancerTlsCertificateDomainStatus)
loadBalancerTlsCertificateDomainValidationOption_validationStatus :: (Maybe LoadBalancerTlsCertificateDomainStatus
-> f (Maybe LoadBalancerTlsCertificateDomainStatus))
-> LoadBalancerTlsCertificateDomainValidationOption
-> f LoadBalancerTlsCertificateDomainValidationOption
loadBalancerTlsCertificateDomainValidationOption_validationStatus = (LoadBalancerTlsCertificateDomainValidationOption
-> Maybe LoadBalancerTlsCertificateDomainStatus)
-> (LoadBalancerTlsCertificateDomainValidationOption
-> Maybe LoadBalancerTlsCertificateDomainStatus
-> LoadBalancerTlsCertificateDomainValidationOption)
-> Lens
LoadBalancerTlsCertificateDomainValidationOption
LoadBalancerTlsCertificateDomainValidationOption
(Maybe LoadBalancerTlsCertificateDomainStatus)
(Maybe LoadBalancerTlsCertificateDomainStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LoadBalancerTlsCertificateDomainValidationOption' {Maybe LoadBalancerTlsCertificateDomainStatus
validationStatus :: Maybe LoadBalancerTlsCertificateDomainStatus
$sel:validationStatus:LoadBalancerTlsCertificateDomainValidationOption' :: LoadBalancerTlsCertificateDomainValidationOption
-> Maybe LoadBalancerTlsCertificateDomainStatus
validationStatus} -> Maybe LoadBalancerTlsCertificateDomainStatus
validationStatus) (\s :: LoadBalancerTlsCertificateDomainValidationOption
s@LoadBalancerTlsCertificateDomainValidationOption' {} Maybe LoadBalancerTlsCertificateDomainStatus
a -> LoadBalancerTlsCertificateDomainValidationOption
s {$sel:validationStatus:LoadBalancerTlsCertificateDomainValidationOption' :: Maybe LoadBalancerTlsCertificateDomainStatus
validationStatus = Maybe LoadBalancerTlsCertificateDomainStatus
a} :: LoadBalancerTlsCertificateDomainValidationOption)
instance
Core.FromJSON
LoadBalancerTlsCertificateDomainValidationOption
where
parseJSON :: Value -> Parser LoadBalancerTlsCertificateDomainValidationOption
parseJSON =
String
-> (Object
-> Parser LoadBalancerTlsCertificateDomainValidationOption)
-> Value
-> Parser LoadBalancerTlsCertificateDomainValidationOption
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"LoadBalancerTlsCertificateDomainValidationOption"
( \Object
x ->
Maybe Text
-> Maybe LoadBalancerTlsCertificateDomainStatus
-> LoadBalancerTlsCertificateDomainValidationOption
LoadBalancerTlsCertificateDomainValidationOption'
(Maybe Text
-> Maybe LoadBalancerTlsCertificateDomainStatus
-> LoadBalancerTlsCertificateDomainValidationOption)
-> Parser (Maybe Text)
-> Parser
(Maybe LoadBalancerTlsCertificateDomainStatus
-> LoadBalancerTlsCertificateDomainValidationOption)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"domainName")
Parser
(Maybe LoadBalancerTlsCertificateDomainStatus
-> LoadBalancerTlsCertificateDomainValidationOption)
-> Parser (Maybe LoadBalancerTlsCertificateDomainStatus)
-> Parser LoadBalancerTlsCertificateDomainValidationOption
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe LoadBalancerTlsCertificateDomainStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"validationStatus")
)
instance
Prelude.Hashable
LoadBalancerTlsCertificateDomainValidationOption
instance
Prelude.NFData
LoadBalancerTlsCertificateDomainValidationOption