{-# 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.FSx.Types.FlexCacheEndpointType
-- 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.FSx.Types.FlexCacheEndpointType
  ( FlexCacheEndpointType
      ( ..,
        FlexCacheEndpointType_CACHE,
        FlexCacheEndpointType_NONE,
        FlexCacheEndpointType_ORIGIN
      ),
  )
where

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

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

pattern FlexCacheEndpointType_CACHE :: FlexCacheEndpointType
pattern $bFlexCacheEndpointType_CACHE :: FlexCacheEndpointType
$mFlexCacheEndpointType_CACHE :: forall {r}.
FlexCacheEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
FlexCacheEndpointType_CACHE = FlexCacheEndpointType' "CACHE"

pattern FlexCacheEndpointType_NONE :: FlexCacheEndpointType
pattern $bFlexCacheEndpointType_NONE :: FlexCacheEndpointType
$mFlexCacheEndpointType_NONE :: forall {r}.
FlexCacheEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
FlexCacheEndpointType_NONE = FlexCacheEndpointType' "NONE"

pattern FlexCacheEndpointType_ORIGIN :: FlexCacheEndpointType
pattern $bFlexCacheEndpointType_ORIGIN :: FlexCacheEndpointType
$mFlexCacheEndpointType_ORIGIN :: forall {r}.
FlexCacheEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
FlexCacheEndpointType_ORIGIN = FlexCacheEndpointType' "ORIGIN"

{-# COMPLETE
  FlexCacheEndpointType_CACHE,
  FlexCacheEndpointType_NONE,
  FlexCacheEndpointType_ORIGIN,
  FlexCacheEndpointType'
  #-}