{-# 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.ComputeOptimizer.Types.JobFilterName
-- 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.ComputeOptimizer.Types.JobFilterName
  ( JobFilterName
      ( ..,
        JobFilterName_JobStatus,
        JobFilterName_ResourceType
      ),
  )
where

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

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

pattern JobFilterName_JobStatus :: JobFilterName
pattern $bJobFilterName_JobStatus :: JobFilterName
$mJobFilterName_JobStatus :: forall {r}. JobFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
JobFilterName_JobStatus = JobFilterName' "JobStatus"

pattern JobFilterName_ResourceType :: JobFilterName
pattern $bJobFilterName_ResourceType :: JobFilterName
$mJobFilterName_ResourceType :: forall {r}. JobFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
JobFilterName_ResourceType = JobFilterName' "ResourceType"

{-# COMPLETE
  JobFilterName_JobStatus,
  JobFilterName_ResourceType,
  JobFilterName'
  #-}