{-# 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.APIGateway.Types.LocationStatusType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.APIGateway.Types.LocationStatusType
  ( LocationStatusType
      ( ..,
        LocationStatusType_DOCUMENTED,
        LocationStatusType_UNDOCUMENTED
      ),
  )
where

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

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

pattern LocationStatusType_DOCUMENTED :: LocationStatusType
pattern $bLocationStatusType_DOCUMENTED :: LocationStatusType
$mLocationStatusType_DOCUMENTED :: forall r. LocationStatusType -> (Void# -> r) -> (Void# -> r) -> r
LocationStatusType_DOCUMENTED = LocationStatusType' "DOCUMENTED"

pattern LocationStatusType_UNDOCUMENTED :: LocationStatusType
pattern $bLocationStatusType_UNDOCUMENTED :: LocationStatusType
$mLocationStatusType_UNDOCUMENTED :: forall r. LocationStatusType -> (Void# -> r) -> (Void# -> r) -> r
LocationStatusType_UNDOCUMENTED = LocationStatusType' "UNDOCUMENTED"

{-# COMPLETE
  LocationStatusType_DOCUMENTED,
  LocationStatusType_UNDOCUMENTED,
  LocationStatusType'
  #-}