{-# 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.IoTFleetWise.Types.Compression
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.IoTFleetWise.Types.Compression
  ( Compression
      ( ..,
        Compression_OFF,
        Compression_SNAPPY
      ),
  )
where

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

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

pattern Compression_OFF :: Compression
pattern $bCompression_OFF :: Compression
$mCompression_OFF :: forall {r}. Compression -> ((# #) -> r) -> ((# #) -> r) -> r
Compression_OFF = Compression' "OFF"

pattern Compression_SNAPPY :: Compression
pattern $bCompression_SNAPPY :: Compression
$mCompression_SNAPPY :: forall {r}. Compression -> ((# #) -> r) -> ((# #) -> r) -> r
Compression_SNAPPY = Compression' "SNAPPY"

{-# COMPLETE
  Compression_OFF,
  Compression_SNAPPY,
  Compression'
  #-}