{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Lightsail.Types.HttpEndpoint
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Lightsail.Types.HttpEndpoint
  ( HttpEndpoint
      ( ..,
        HttpEndpoint_Disabled,
        HttpEndpoint_Enabled
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype HttpEndpoint = HttpEndpoint'
  { HttpEndpoint -> Text
fromHttpEndpoint ::
      Data.Text
  }
  deriving stock
    ( Int -> HttpEndpoint -> ShowS
[HttpEndpoint] -> ShowS
HttpEndpoint -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HttpEndpoint] -> ShowS
$cshowList :: [HttpEndpoint] -> ShowS
show :: HttpEndpoint -> String
$cshow :: HttpEndpoint -> String
showsPrec :: Int -> HttpEndpoint -> ShowS
$cshowsPrec :: Int -> HttpEndpoint -> ShowS
Prelude.Show,
      ReadPrec [HttpEndpoint]
ReadPrec HttpEndpoint
Int -> ReadS HttpEndpoint
ReadS [HttpEndpoint]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HttpEndpoint]
$creadListPrec :: ReadPrec [HttpEndpoint]
readPrec :: ReadPrec HttpEndpoint
$creadPrec :: ReadPrec HttpEndpoint
readList :: ReadS [HttpEndpoint]
$creadList :: ReadS [HttpEndpoint]
readsPrec :: Int -> ReadS HttpEndpoint
$creadsPrec :: Int -> ReadS HttpEndpoint
Prelude.Read,
      HttpEndpoint -> HttpEndpoint -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HttpEndpoint -> HttpEndpoint -> Bool
$c/= :: HttpEndpoint -> HttpEndpoint -> Bool
== :: HttpEndpoint -> HttpEndpoint -> Bool
$c== :: HttpEndpoint -> HttpEndpoint -> Bool
Prelude.Eq,
      Eq HttpEndpoint
HttpEndpoint -> HttpEndpoint -> Bool
HttpEndpoint -> HttpEndpoint -> Ordering
HttpEndpoint -> HttpEndpoint -> HttpEndpoint
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: HttpEndpoint -> HttpEndpoint -> HttpEndpoint
$cmin :: HttpEndpoint -> HttpEndpoint -> HttpEndpoint
max :: HttpEndpoint -> HttpEndpoint -> HttpEndpoint
$cmax :: HttpEndpoint -> HttpEndpoint -> HttpEndpoint
>= :: HttpEndpoint -> HttpEndpoint -> Bool
$c>= :: HttpEndpoint -> HttpEndpoint -> Bool
> :: HttpEndpoint -> HttpEndpoint -> Bool
$c> :: HttpEndpoint -> HttpEndpoint -> Bool
<= :: HttpEndpoint -> HttpEndpoint -> Bool
$c<= :: HttpEndpoint -> HttpEndpoint -> Bool
< :: HttpEndpoint -> HttpEndpoint -> Bool
$c< :: HttpEndpoint -> HttpEndpoint -> Bool
compare :: HttpEndpoint -> HttpEndpoint -> Ordering
$ccompare :: HttpEndpoint -> HttpEndpoint -> Ordering
Prelude.Ord,
      forall x. Rep HttpEndpoint x -> HttpEndpoint
forall x. HttpEndpoint -> Rep HttpEndpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HttpEndpoint x -> HttpEndpoint
$cfrom :: forall x. HttpEndpoint -> Rep HttpEndpoint x
Prelude.Generic
    )
  deriving newtype
    ( Eq HttpEndpoint
Int -> HttpEndpoint -> Int
HttpEndpoint -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HttpEndpoint -> Int
$chash :: HttpEndpoint -> Int
hashWithSalt :: Int -> HttpEndpoint -> Int
$chashWithSalt :: Int -> HttpEndpoint -> Int
Prelude.Hashable,
      HttpEndpoint -> ()
forall a. (a -> ()) -> NFData a
rnf :: HttpEndpoint -> ()
$crnf :: HttpEndpoint -> ()
Prelude.NFData,
      Text -> Either String HttpEndpoint
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HttpEndpoint
$cfromText :: Text -> Either String HttpEndpoint
Data.FromText,
      HttpEndpoint -> Text
forall a. (a -> Text) -> ToText a
toText :: HttpEndpoint -> Text
$ctoText :: HttpEndpoint -> Text
Data.ToText,
      HttpEndpoint -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: HttpEndpoint -> ByteString
$ctoBS :: HttpEndpoint -> ByteString
Data.ToByteString,
      HttpEndpoint -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HttpEndpoint -> ByteStringBuilder
$cbuild :: HttpEndpoint -> ByteStringBuilder
Data.ToLog,
      HeaderName -> HttpEndpoint -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HttpEndpoint -> [Header]
$ctoHeader :: HeaderName -> HttpEndpoint -> [Header]
Data.ToHeader,
      HttpEndpoint -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HttpEndpoint -> QueryString
$ctoQuery :: HttpEndpoint -> QueryString
Data.ToQuery,
      Value -> Parser [HttpEndpoint]
Value -> Parser HttpEndpoint
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HttpEndpoint]
$cparseJSONList :: Value -> Parser [HttpEndpoint]
parseJSON :: Value -> Parser HttpEndpoint
$cparseJSON :: Value -> Parser HttpEndpoint
Data.FromJSON,
      FromJSONKeyFunction [HttpEndpoint]
FromJSONKeyFunction HttpEndpoint
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HttpEndpoint]
$cfromJSONKeyList :: FromJSONKeyFunction [HttpEndpoint]
fromJSONKey :: FromJSONKeyFunction HttpEndpoint
$cfromJSONKey :: FromJSONKeyFunction HttpEndpoint
Data.FromJSONKey,
      [HttpEndpoint] -> Encoding
[HttpEndpoint] -> Value
HttpEndpoint -> Encoding
HttpEndpoint -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HttpEndpoint] -> Encoding
$ctoEncodingList :: [HttpEndpoint] -> Encoding
toJSONList :: [HttpEndpoint] -> Value
$ctoJSONList :: [HttpEndpoint] -> Value
toEncoding :: HttpEndpoint -> Encoding
$ctoEncoding :: HttpEndpoint -> Encoding
toJSON :: HttpEndpoint -> Value
$ctoJSON :: HttpEndpoint -> Value
Data.ToJSON,
      ToJSONKeyFunction [HttpEndpoint]
ToJSONKeyFunction HttpEndpoint
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HttpEndpoint]
$ctoJSONKeyList :: ToJSONKeyFunction [HttpEndpoint]
toJSONKey :: ToJSONKeyFunction HttpEndpoint
$ctoJSONKey :: ToJSONKeyFunction HttpEndpoint
Data.ToJSONKey,
      [Node] -> Either String HttpEndpoint
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HttpEndpoint
$cparseXML :: [Node] -> Either String HttpEndpoint
Data.FromXML,
      HttpEndpoint -> XML
forall a. (a -> XML) -> ToXML a
toXML :: HttpEndpoint -> XML
$ctoXML :: HttpEndpoint -> XML
Data.ToXML
    )

pattern HttpEndpoint_Disabled :: HttpEndpoint
pattern $bHttpEndpoint_Disabled :: HttpEndpoint
$mHttpEndpoint_Disabled :: forall {r}. HttpEndpoint -> ((# #) -> r) -> ((# #) -> r) -> r
HttpEndpoint_Disabled = HttpEndpoint' "disabled"

pattern HttpEndpoint_Enabled :: HttpEndpoint
pattern $bHttpEndpoint_Enabled :: HttpEndpoint
$mHttpEndpoint_Enabled :: forall {r}. HttpEndpoint -> ((# #) -> r) -> ((# #) -> r) -> r
HttpEndpoint_Enabled = HttpEndpoint' "enabled"

{-# COMPLETE
  HttpEndpoint_Disabled,
  HttpEndpoint_Enabled,
  HttpEndpoint'
  #-}