{-# 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.Location.Types.IntendedUse
-- 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.Location.Types.IntendedUse
  ( IntendedUse
      ( ..,
        IntendedUse_SingleUse,
        IntendedUse_Storage
      ),
  )
where

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

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

pattern IntendedUse_SingleUse :: IntendedUse
pattern $bIntendedUse_SingleUse :: IntendedUse
$mIntendedUse_SingleUse :: forall r. IntendedUse -> (Void# -> r) -> (Void# -> r) -> r
IntendedUse_SingleUse = IntendedUse' "SingleUse"

pattern IntendedUse_Storage :: IntendedUse
pattern $bIntendedUse_Storage :: IntendedUse
$mIntendedUse_Storage :: forall r. IntendedUse -> (Void# -> r) -> (Void# -> r) -> r
IntendedUse_Storage = IntendedUse' "Storage"

{-# COMPLETE
  IntendedUse_SingleUse,
  IntendedUse_Storage,
  IntendedUse'
  #-}