{-# 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.ReportCodeCoverageSortByType
-- 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.ReportCodeCoverageSortByType
  ( ReportCodeCoverageSortByType
      ( ..,
        ReportCodeCoverageSortByType_FILE_PATH,
        ReportCodeCoverageSortByType_LINE_COVERAGE_PERCENTAGE
      ),
  )
where

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

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

pattern ReportCodeCoverageSortByType_FILE_PATH :: ReportCodeCoverageSortByType
pattern $bReportCodeCoverageSortByType_FILE_PATH :: ReportCodeCoverageSortByType
$mReportCodeCoverageSortByType_FILE_PATH :: forall r.
ReportCodeCoverageSortByType -> (Void# -> r) -> (Void# -> r) -> r
ReportCodeCoverageSortByType_FILE_PATH = ReportCodeCoverageSortByType' "FILE_PATH"

pattern ReportCodeCoverageSortByType_LINE_COVERAGE_PERCENTAGE :: ReportCodeCoverageSortByType
pattern $bReportCodeCoverageSortByType_LINE_COVERAGE_PERCENTAGE :: ReportCodeCoverageSortByType
$mReportCodeCoverageSortByType_LINE_COVERAGE_PERCENTAGE :: forall r.
ReportCodeCoverageSortByType -> (Void# -> r) -> (Void# -> r) -> r
ReportCodeCoverageSortByType_LINE_COVERAGE_PERCENTAGE = ReportCodeCoverageSortByType' "LINE_COVERAGE_PERCENTAGE"

{-# COMPLETE
  ReportCodeCoverageSortByType_FILE_PATH,
  ReportCodeCoverageSortByType_LINE_COVERAGE_PERCENTAGE,
  ReportCodeCoverageSortByType'
  #-}