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

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

newtype SortAssociationsBy = SortAssociationsBy'
  { SortAssociationsBy -> Text
fromSortAssociationsBy ::
      Core.Text
  }
  deriving stock
    ( Int -> SortAssociationsBy -> ShowS
[SortAssociationsBy] -> ShowS
SortAssociationsBy -> String
(Int -> SortAssociationsBy -> ShowS)
-> (SortAssociationsBy -> String)
-> ([SortAssociationsBy] -> ShowS)
-> Show SortAssociationsBy
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]
(Int -> ReadS SortAssociationsBy)
-> ReadS [SortAssociationsBy]
-> ReadPrec SortAssociationsBy
-> ReadPrec [SortAssociationsBy]
-> Read 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
(SortAssociationsBy -> SortAssociationsBy -> Bool)
-> (SortAssociationsBy -> SortAssociationsBy -> Bool)
-> Eq SortAssociationsBy
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
Eq SortAssociationsBy
-> (SortAssociationsBy -> SortAssociationsBy -> Ordering)
-> (SortAssociationsBy -> SortAssociationsBy -> Bool)
-> (SortAssociationsBy -> SortAssociationsBy -> Bool)
-> (SortAssociationsBy -> SortAssociationsBy -> Bool)
-> (SortAssociationsBy -> SortAssociationsBy -> Bool)
-> (SortAssociationsBy -> SortAssociationsBy -> SortAssociationsBy)
-> (SortAssociationsBy -> SortAssociationsBy -> SortAssociationsBy)
-> Ord 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
$cp1Ord :: Eq SortAssociationsBy
Prelude.Ord,
      (forall x. SortAssociationsBy -> Rep SortAssociationsBy x)
-> (forall x. Rep SortAssociationsBy x -> SortAssociationsBy)
-> Generic SortAssociationsBy
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
    ( Int -> SortAssociationsBy -> Int
SortAssociationsBy -> Int
(Int -> SortAssociationsBy -> Int)
-> (SortAssociationsBy -> Int) -> Hashable SortAssociationsBy
forall 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 -> ()
(SortAssociationsBy -> ()) -> NFData SortAssociationsBy
forall a. (a -> ()) -> NFData a
rnf :: SortAssociationsBy -> ()
$crnf :: SortAssociationsBy -> ()
Prelude.NFData,
      Text -> Either String SortAssociationsBy
(Text -> Either String SortAssociationsBy)
-> FromText SortAssociationsBy
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SortAssociationsBy
$cfromText :: Text -> Either String SortAssociationsBy
Core.FromText,
      SortAssociationsBy -> Text
(SortAssociationsBy -> Text) -> ToText SortAssociationsBy
forall a. (a -> Text) -> ToText a
toText :: SortAssociationsBy -> Text
$ctoText :: SortAssociationsBy -> Text
Core.ToText,
      SortAssociationsBy -> ByteString
(SortAssociationsBy -> ByteString)
-> ToByteString SortAssociationsBy
forall a. (a -> ByteString) -> ToByteString a
toBS :: SortAssociationsBy -> ByteString
$ctoBS :: SortAssociationsBy -> ByteString
Core.ToByteString,
      SortAssociationsBy -> ByteStringBuilder
(SortAssociationsBy -> ByteStringBuilder)
-> ToLog SortAssociationsBy
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SortAssociationsBy -> ByteStringBuilder
$cbuild :: SortAssociationsBy -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SortAssociationsBy -> [Header]
(HeaderName -> SortAssociationsBy -> [Header])
-> ToHeader SortAssociationsBy
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SortAssociationsBy -> [Header]
$ctoHeader :: HeaderName -> SortAssociationsBy -> [Header]
Core.ToHeader,
      SortAssociationsBy -> QueryString
(SortAssociationsBy -> QueryString) -> ToQuery SortAssociationsBy
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SortAssociationsBy -> QueryString
$ctoQuery :: SortAssociationsBy -> QueryString
Core.ToQuery,
      Value -> Parser [SortAssociationsBy]
Value -> Parser SortAssociationsBy
(Value -> Parser SortAssociationsBy)
-> (Value -> Parser [SortAssociationsBy])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SortAssociationsBy]
FromJSONKeyFunction SortAssociationsBy
FromJSONKeyFunction SortAssociationsBy
-> FromJSONKeyFunction [SortAssociationsBy]
-> FromJSONKey SortAssociationsBy
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SortAssociationsBy]
$cfromJSONKeyList :: FromJSONKeyFunction [SortAssociationsBy]
fromJSONKey :: FromJSONKeyFunction SortAssociationsBy
$cfromJSONKey :: FromJSONKeyFunction SortAssociationsBy
Core.FromJSONKey,
      [SortAssociationsBy] -> Encoding
[SortAssociationsBy] -> Value
SortAssociationsBy -> Encoding
SortAssociationsBy -> Value
(SortAssociationsBy -> Value)
-> (SortAssociationsBy -> Encoding)
-> ([SortAssociationsBy] -> Value)
-> ([SortAssociationsBy] -> Encoding)
-> ToJSON SortAssociationsBy
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
Core.ToJSON,
      ToJSONKeyFunction [SortAssociationsBy]
ToJSONKeyFunction SortAssociationsBy
ToJSONKeyFunction SortAssociationsBy
-> ToJSONKeyFunction [SortAssociationsBy]
-> ToJSONKey SortAssociationsBy
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SortAssociationsBy]
$ctoJSONKeyList :: ToJSONKeyFunction [SortAssociationsBy]
toJSONKey :: ToJSONKeyFunction SortAssociationsBy
$ctoJSONKey :: ToJSONKeyFunction SortAssociationsBy
Core.ToJSONKey,
      [Node] -> Either String SortAssociationsBy
([Node] -> Either String SortAssociationsBy)
-> FromXML SortAssociationsBy
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SortAssociationsBy
$cparseXML :: [Node] -> Either String SortAssociationsBy
Core.FromXML,
      SortAssociationsBy -> XML
(SortAssociationsBy -> XML) -> ToXML SortAssociationsBy
forall a. (a -> XML) -> ToXML a
toXML :: SortAssociationsBy -> XML
$ctoXML :: SortAssociationsBy -> XML
Core.ToXML
    )

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

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

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

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

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

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