{-# 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.DataBrew.Types.OrderedBy
-- 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.DataBrew.Types.OrderedBy
  ( OrderedBy
      ( ..,
        OrderedBy_LAST_MODIFIED_DATE
      ),
  )
where

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

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

pattern OrderedBy_LAST_MODIFIED_DATE :: OrderedBy
pattern $bOrderedBy_LAST_MODIFIED_DATE :: OrderedBy
$mOrderedBy_LAST_MODIFIED_DATE :: forall r. OrderedBy -> (Void# -> r) -> (Void# -> r) -> r
OrderedBy_LAST_MODIFIED_DATE = OrderedBy' "LAST_MODIFIED_DATE"

{-# COMPLETE
  OrderedBy_LAST_MODIFIED_DATE,
  OrderedBy'
  #-}