{-# 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.CodeRepositorySortBy
-- 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.CodeRepositorySortBy
  ( CodeRepositorySortBy
      ( ..,
        CodeRepositorySortBy_CreationTime,
        CodeRepositorySortBy_LastModifiedTime,
        CodeRepositorySortBy_Name
      ),
  )
where

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

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

pattern CodeRepositorySortBy_CreationTime :: CodeRepositorySortBy
pattern $bCodeRepositorySortBy_CreationTime :: CodeRepositorySortBy
$mCodeRepositorySortBy_CreationTime :: forall r. CodeRepositorySortBy -> (Void# -> r) -> (Void# -> r) -> r
CodeRepositorySortBy_CreationTime = CodeRepositorySortBy' "CreationTime"

pattern CodeRepositorySortBy_LastModifiedTime :: CodeRepositorySortBy
pattern $bCodeRepositorySortBy_LastModifiedTime :: CodeRepositorySortBy
$mCodeRepositorySortBy_LastModifiedTime :: forall r. CodeRepositorySortBy -> (Void# -> r) -> (Void# -> r) -> r
CodeRepositorySortBy_LastModifiedTime = CodeRepositorySortBy' "LastModifiedTime"

pattern CodeRepositorySortBy_Name :: CodeRepositorySortBy
pattern $bCodeRepositorySortBy_Name :: CodeRepositorySortBy
$mCodeRepositorySortBy_Name :: forall r. CodeRepositorySortBy -> (Void# -> r) -> (Void# -> r) -> r
CodeRepositorySortBy_Name = CodeRepositorySortBy' "Name"

{-# COMPLETE
  CodeRepositorySortBy_CreationTime,
  CodeRepositorySortBy_LastModifiedTime,
  CodeRepositorySortBy_Name,
  CodeRepositorySortBy'
  #-}