{-# 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.FilterName
-- 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.ComputeOptimizer.Types.FilterName
  ( FilterName
      ( ..,
        FilterName_Finding,
        FilterName_FindingReasonCodes,
        FilterName_RecommendationSourceType
      ),
  )
where

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

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

pattern FilterName_Finding :: FilterName
pattern $bFilterName_Finding :: FilterName
$mFilterName_Finding :: forall r. FilterName -> (Void# -> r) -> (Void# -> r) -> r
FilterName_Finding = FilterName' "Finding"

pattern FilterName_FindingReasonCodes :: FilterName
pattern $bFilterName_FindingReasonCodes :: FilterName
$mFilterName_FindingReasonCodes :: forall r. FilterName -> (Void# -> r) -> (Void# -> r) -> r
FilterName_FindingReasonCodes = FilterName' "FindingReasonCodes"

pattern FilterName_RecommendationSourceType :: FilterName
pattern $bFilterName_RecommendationSourceType :: FilterName
$mFilterName_RecommendationSourceType :: forall r. FilterName -> (Void# -> r) -> (Void# -> r) -> r
FilterName_RecommendationSourceType = FilterName' "RecommendationSourceType"

{-# COMPLETE
  FilterName_Finding,
  FilterName_FindingReasonCodes,
  FilterName_RecommendationSourceType,
  FilterName'
  #-}