{-# 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.DimensionUnit
-- 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.DimensionUnit
  ( DimensionUnit
      ( ..,
        DimensionUnit_Feet,
        DimensionUnit_Meters
      ),
  )
where

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

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

pattern DimensionUnit_Feet :: DimensionUnit
pattern $bDimensionUnit_Feet :: DimensionUnit
$mDimensionUnit_Feet :: forall r. DimensionUnit -> (Void# -> r) -> (Void# -> r) -> r
DimensionUnit_Feet = DimensionUnit' "Feet"

pattern DimensionUnit_Meters :: DimensionUnit
pattern $bDimensionUnit_Meters :: DimensionUnit
$mDimensionUnit_Meters :: forall r. DimensionUnit -> (Void# -> r) -> (Void# -> r) -> r
DimensionUnit_Meters = DimensionUnit' "Meters"

{-# COMPLETE
  DimensionUnit_Feet,
  DimensionUnit_Meters,
  DimensionUnit'
  #-}