{-# 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.ReportGroupSortByType
-- 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.CodeBuild.Types.ReportGroupSortByType
  ( ReportGroupSortByType
      ( ..,
        ReportGroupSortByType_CREATED_TIME,
        ReportGroupSortByType_LAST_MODIFIED_TIME,
        ReportGroupSortByType_NAME
      ),
  )
where

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

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

pattern ReportGroupSortByType_CREATED_TIME :: ReportGroupSortByType
pattern $bReportGroupSortByType_CREATED_TIME :: ReportGroupSortByType
$mReportGroupSortByType_CREATED_TIME :: forall {r}.
ReportGroupSortByType -> ((# #) -> r) -> ((# #) -> r) -> r
ReportGroupSortByType_CREATED_TIME = ReportGroupSortByType' "CREATED_TIME"

pattern ReportGroupSortByType_LAST_MODIFIED_TIME :: ReportGroupSortByType
pattern $bReportGroupSortByType_LAST_MODIFIED_TIME :: ReportGroupSortByType
$mReportGroupSortByType_LAST_MODIFIED_TIME :: forall {r}.
ReportGroupSortByType -> ((# #) -> r) -> ((# #) -> r) -> r
ReportGroupSortByType_LAST_MODIFIED_TIME = ReportGroupSortByType' "LAST_MODIFIED_TIME"

pattern ReportGroupSortByType_NAME :: ReportGroupSortByType
pattern $bReportGroupSortByType_NAME :: ReportGroupSortByType
$mReportGroupSortByType_NAME :: forall {r}.
ReportGroupSortByType -> ((# #) -> r) -> ((# #) -> r) -> r
ReportGroupSortByType_NAME = ReportGroupSortByType' "NAME"

{-# COMPLETE
  ReportGroupSortByType_CREATED_TIME,
  ReportGroupSortByType_LAST_MODIFIED_TIME,
  ReportGroupSortByType_NAME,
  ReportGroupSortByType'
  #-}