{-# 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.MwAA.Types.Unit
-- 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.MwAA.Types.Unit
  ( Unit
      ( ..,
        Unit_Bits,
        Unit_Bits_Second,
        Unit_Bytes,
        Unit_Bytes_Second,
        Unit_Count,
        Unit_Count_Second,
        Unit_Gigabits,
        Unit_Gigabits_Second,
        Unit_Gigabytes,
        Unit_Gigabytes_Second,
        Unit_Kilobits,
        Unit_Kilobits_Second,
        Unit_Kilobytes,
        Unit_Kilobytes_Second,
        Unit_Megabits,
        Unit_Megabits_Second,
        Unit_Megabytes,
        Unit_Megabytes_Second,
        Unit_Microseconds,
        Unit_Milliseconds,
        Unit_None,
        Unit_Percent,
        Unit_Seconds,
        Unit_Terabits,
        Unit_Terabits_Second,
        Unit_Terabytes,
        Unit_Terabytes_Second
      ),
  )
where

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

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

pattern Unit_Bits :: Unit
pattern $bUnit_Bits :: Unit
$mUnit_Bits :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Bits = Unit' "Bits"

pattern Unit_Bits_Second :: Unit
pattern $bUnit_Bits_Second :: Unit
$mUnit_Bits_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Bits_Second = Unit' "Bits/Second"

pattern Unit_Bytes :: Unit
pattern $bUnit_Bytes :: Unit
$mUnit_Bytes :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Bytes = Unit' "Bytes"

pattern Unit_Bytes_Second :: Unit
pattern $bUnit_Bytes_Second :: Unit
$mUnit_Bytes_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Bytes_Second = Unit' "Bytes/Second"

pattern Unit_Count :: Unit
pattern $bUnit_Count :: Unit
$mUnit_Count :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Count = Unit' "Count"

pattern Unit_Count_Second :: Unit
pattern $bUnit_Count_Second :: Unit
$mUnit_Count_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Count_Second = Unit' "Count/Second"

pattern Unit_Gigabits :: Unit
pattern $bUnit_Gigabits :: Unit
$mUnit_Gigabits :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Gigabits = Unit' "Gigabits"

pattern Unit_Gigabits_Second :: Unit
pattern $bUnit_Gigabits_Second :: Unit
$mUnit_Gigabits_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Gigabits_Second = Unit' "Gigabits/Second"

pattern Unit_Gigabytes :: Unit
pattern $bUnit_Gigabytes :: Unit
$mUnit_Gigabytes :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Gigabytes = Unit' "Gigabytes"

pattern Unit_Gigabytes_Second :: Unit
pattern $bUnit_Gigabytes_Second :: Unit
$mUnit_Gigabytes_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Gigabytes_Second = Unit' "Gigabytes/Second"

pattern Unit_Kilobits :: Unit
pattern $bUnit_Kilobits :: Unit
$mUnit_Kilobits :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Kilobits = Unit' "Kilobits"

pattern Unit_Kilobits_Second :: Unit
pattern $bUnit_Kilobits_Second :: Unit
$mUnit_Kilobits_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Kilobits_Second = Unit' "Kilobits/Second"

pattern Unit_Kilobytes :: Unit
pattern $bUnit_Kilobytes :: Unit
$mUnit_Kilobytes :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Kilobytes = Unit' "Kilobytes"

pattern Unit_Kilobytes_Second :: Unit
pattern $bUnit_Kilobytes_Second :: Unit
$mUnit_Kilobytes_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Kilobytes_Second = Unit' "Kilobytes/Second"

pattern Unit_Megabits :: Unit
pattern $bUnit_Megabits :: Unit
$mUnit_Megabits :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Megabits = Unit' "Megabits"

pattern Unit_Megabits_Second :: Unit
pattern $bUnit_Megabits_Second :: Unit
$mUnit_Megabits_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Megabits_Second = Unit' "Megabits/Second"

pattern Unit_Megabytes :: Unit
pattern $bUnit_Megabytes :: Unit
$mUnit_Megabytes :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Megabytes = Unit' "Megabytes"

pattern Unit_Megabytes_Second :: Unit
pattern $bUnit_Megabytes_Second :: Unit
$mUnit_Megabytes_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Megabytes_Second = Unit' "Megabytes/Second"

pattern Unit_Microseconds :: Unit
pattern $bUnit_Microseconds :: Unit
$mUnit_Microseconds :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Microseconds = Unit' "Microseconds"

pattern Unit_Milliseconds :: Unit
pattern $bUnit_Milliseconds :: Unit
$mUnit_Milliseconds :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Milliseconds = Unit' "Milliseconds"

pattern Unit_None :: Unit
pattern $bUnit_None :: Unit
$mUnit_None :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_None = Unit' "None"

pattern Unit_Percent :: Unit
pattern $bUnit_Percent :: Unit
$mUnit_Percent :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Percent = Unit' "Percent"

pattern Unit_Seconds :: Unit
pattern $bUnit_Seconds :: Unit
$mUnit_Seconds :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Seconds = Unit' "Seconds"

pattern Unit_Terabits :: Unit
pattern $bUnit_Terabits :: Unit
$mUnit_Terabits :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Terabits = Unit' "Terabits"

pattern Unit_Terabits_Second :: Unit
pattern $bUnit_Terabits_Second :: Unit
$mUnit_Terabits_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Terabits_Second = Unit' "Terabits/Second"

pattern Unit_Terabytes :: Unit
pattern $bUnit_Terabytes :: Unit
$mUnit_Terabytes :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Terabytes = Unit' "Terabytes"

pattern Unit_Terabytes_Second :: Unit
pattern $bUnit_Terabytes_Second :: Unit
$mUnit_Terabytes_Second :: forall r. Unit -> (Void# -> r) -> (Void# -> r) -> r
Unit_Terabytes_Second = Unit' "Terabytes/Second"

{-# COMPLETE
  Unit_Bits,
  Unit_Bits_Second,
  Unit_Bytes,
  Unit_Bytes_Second,
  Unit_Count,
  Unit_Count_Second,
  Unit_Gigabits,
  Unit_Gigabits_Second,
  Unit_Gigabytes,
  Unit_Gigabytes_Second,
  Unit_Kilobits,
  Unit_Kilobits_Second,
  Unit_Kilobytes,
  Unit_Kilobytes_Second,
  Unit_Megabits,
  Unit_Megabits_Second,
  Unit_Megabytes,
  Unit_Megabytes_Second,
  Unit_Microseconds,
  Unit_Milliseconds,
  Unit_None,
  Unit_Percent,
  Unit_Seconds,
  Unit_Terabits,
  Unit_Terabits_Second,
  Unit_Terabytes,
  Unit_Terabytes_Second,
  Unit'
  #-}