{-# 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.CodeGuruProfiler.Types.AgentParameterField
-- 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.CodeGuruProfiler.Types.AgentParameterField
  ( AgentParameterField
      ( ..,
        AgentParameterField_MaxStackDepth,
        AgentParameterField_MemoryUsageLimitPercent,
        AgentParameterField_MinimumTimeForReportingInMilliseconds,
        AgentParameterField_ReportingIntervalInMilliseconds,
        AgentParameterField_SamplingIntervalInMilliseconds
      ),
  )
where

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

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

pattern AgentParameterField_MaxStackDepth :: AgentParameterField
pattern $bAgentParameterField_MaxStackDepth :: AgentParameterField
$mAgentParameterField_MaxStackDepth :: forall r. AgentParameterField -> (Void# -> r) -> (Void# -> r) -> r
AgentParameterField_MaxStackDepth = AgentParameterField' "MaxStackDepth"

pattern AgentParameterField_MemoryUsageLimitPercent :: AgentParameterField
pattern $bAgentParameterField_MemoryUsageLimitPercent :: AgentParameterField
$mAgentParameterField_MemoryUsageLimitPercent :: forall r. AgentParameterField -> (Void# -> r) -> (Void# -> r) -> r
AgentParameterField_MemoryUsageLimitPercent = AgentParameterField' "MemoryUsageLimitPercent"

pattern AgentParameterField_MinimumTimeForReportingInMilliseconds :: AgentParameterField
pattern $bAgentParameterField_MinimumTimeForReportingInMilliseconds :: AgentParameterField
$mAgentParameterField_MinimumTimeForReportingInMilliseconds :: forall r. AgentParameterField -> (Void# -> r) -> (Void# -> r) -> r
AgentParameterField_MinimumTimeForReportingInMilliseconds = AgentParameterField' "MinimumTimeForReportingInMilliseconds"

pattern AgentParameterField_ReportingIntervalInMilliseconds :: AgentParameterField
pattern $bAgentParameterField_ReportingIntervalInMilliseconds :: AgentParameterField
$mAgentParameterField_ReportingIntervalInMilliseconds :: forall r. AgentParameterField -> (Void# -> r) -> (Void# -> r) -> r
AgentParameterField_ReportingIntervalInMilliseconds = AgentParameterField' "ReportingIntervalInMilliseconds"

pattern AgentParameterField_SamplingIntervalInMilliseconds :: AgentParameterField
pattern $bAgentParameterField_SamplingIntervalInMilliseconds :: AgentParameterField
$mAgentParameterField_SamplingIntervalInMilliseconds :: forall r. AgentParameterField -> (Void# -> r) -> (Void# -> r) -> r
AgentParameterField_SamplingIntervalInMilliseconds = AgentParameterField' "SamplingIntervalInMilliseconds"

{-# COMPLETE
  AgentParameterField_MaxStackDepth,
  AgentParameterField_MemoryUsageLimitPercent,
  AgentParameterField_MinimumTimeForReportingInMilliseconds,
  AgentParameterField_ReportingIntervalInMilliseconds,
  AgentParameterField_SamplingIntervalInMilliseconds,
  AgentParameterField'
  #-}