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

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

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

pattern ReportGroupSortByType_CREATED_TIME :: ReportGroupSortByType
pattern $bReportGroupSortByType_CREATED_TIME :: ReportGroupSortByType
$mReportGroupSortByType_CREATED_TIME :: forall r.
ReportGroupSortByType -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
ReportGroupSortByType_LAST_MODIFIED_TIME = ReportGroupSortByType' "LAST_MODIFIED_TIME"

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

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