{-# 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.SageMaker.Types.SortAssociationsBy
-- 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.SageMaker.Types.SortAssociationsBy
  ( SortAssociationsBy
      ( ..,
        SortAssociationsBy_CreationTime,
        SortAssociationsBy_DestinationArn,
        SortAssociationsBy_DestinationType,
        SortAssociationsBy_SourceArn,
        SortAssociationsBy_SourceType
      ),
  )
where

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

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

pattern SortAssociationsBy_CreationTime :: SortAssociationsBy
pattern $bSortAssociationsBy_CreationTime :: SortAssociationsBy
$mSortAssociationsBy_CreationTime :: forall {r}. SortAssociationsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortAssociationsBy_CreationTime = SortAssociationsBy' "CreationTime"

pattern SortAssociationsBy_DestinationArn :: SortAssociationsBy
pattern $bSortAssociationsBy_DestinationArn :: SortAssociationsBy
$mSortAssociationsBy_DestinationArn :: forall {r}. SortAssociationsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortAssociationsBy_DestinationArn = SortAssociationsBy' "DestinationArn"

pattern SortAssociationsBy_DestinationType :: SortAssociationsBy
pattern $bSortAssociationsBy_DestinationType :: SortAssociationsBy
$mSortAssociationsBy_DestinationType :: forall {r}. SortAssociationsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortAssociationsBy_DestinationType = SortAssociationsBy' "DestinationType"

pattern SortAssociationsBy_SourceArn :: SortAssociationsBy
pattern $bSortAssociationsBy_SourceArn :: SortAssociationsBy
$mSortAssociationsBy_SourceArn :: forall {r}. SortAssociationsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortAssociationsBy_SourceArn = SortAssociationsBy' "SourceArn"

pattern SortAssociationsBy_SourceType :: SortAssociationsBy
pattern $bSortAssociationsBy_SourceType :: SortAssociationsBy
$mSortAssociationsBy_SourceType :: forall {r}. SortAssociationsBy -> ((# #) -> r) -> ((# #) -> r) -> r
SortAssociationsBy_SourceType = SortAssociationsBy' "SourceType"

{-# COMPLETE
  SortAssociationsBy_CreationTime,
  SortAssociationsBy_DestinationArn,
  SortAssociationsBy_DestinationType,
  SortAssociationsBy_SourceArn,
  SortAssociationsBy_SourceType,
  SortAssociationsBy'
  #-}