{-# 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.CodeBuild.Types.ProjectSortByType
-- 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.CodeBuild.Types.ProjectSortByType
  ( ProjectSortByType
      ( ..,
        ProjectSortByType_CREATED_TIME,
        ProjectSortByType_LAST_MODIFIED_TIME,
        ProjectSortByType_NAME
      ),
  )
where

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

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

pattern ProjectSortByType_CREATED_TIME :: ProjectSortByType
pattern $bProjectSortByType_CREATED_TIME :: ProjectSortByType
$mProjectSortByType_CREATED_TIME :: forall r. ProjectSortByType -> (Void# -> r) -> (Void# -> r) -> r
ProjectSortByType_CREATED_TIME = ProjectSortByType' "CREATED_TIME"

pattern ProjectSortByType_LAST_MODIFIED_TIME :: ProjectSortByType
pattern $bProjectSortByType_LAST_MODIFIED_TIME :: ProjectSortByType
$mProjectSortByType_LAST_MODIFIED_TIME :: forall r. ProjectSortByType -> (Void# -> r) -> (Void# -> r) -> r
ProjectSortByType_LAST_MODIFIED_TIME = ProjectSortByType' "LAST_MODIFIED_TIME"

pattern ProjectSortByType_NAME :: ProjectSortByType
pattern $bProjectSortByType_NAME :: ProjectSortByType
$mProjectSortByType_NAME :: forall r. ProjectSortByType -> (Void# -> r) -> (Void# -> r) -> r
ProjectSortByType_NAME = ProjectSortByType' "NAME"

{-# COMPLETE
  ProjectSortByType_CREATED_TIME,
  ProjectSortByType_LAST_MODIFIED_TIME,
  ProjectSortByType_NAME,
  ProjectSortByType'
  #-}