{-# 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.FinSpaceData.Types.LocationType
-- 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.FinSpaceData.Types.LocationType
  ( LocationType
      ( ..,
        LocationType_INGESTION,
        LocationType_SAGEMAKER
      ),
  )
where

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

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

pattern LocationType_INGESTION :: LocationType
pattern $bLocationType_INGESTION :: LocationType
$mLocationType_INGESTION :: forall r. LocationType -> (Void# -> r) -> (Void# -> r) -> r
LocationType_INGESTION = LocationType' "INGESTION"

pattern LocationType_SAGEMAKER :: LocationType
pattern $bLocationType_SAGEMAKER :: LocationType
$mLocationType_SAGEMAKER :: forall r. LocationType -> (Void# -> r) -> (Void# -> r) -> r
LocationType_SAGEMAKER = LocationType' "SAGEMAKER"

{-# COMPLETE
  LocationType_INGESTION,
  LocationType_SAGEMAKER,
  LocationType'
  #-}