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