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