{-# 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.EnrollmentFilterName
-- 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.EnrollmentFilterName
  ( EnrollmentFilterName
      ( ..,
        EnrollmentFilterName_Status
      ),
  )
where

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

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

pattern EnrollmentFilterName_Status :: EnrollmentFilterName
pattern $bEnrollmentFilterName_Status :: EnrollmentFilterName
$mEnrollmentFilterName_Status :: forall r. EnrollmentFilterName -> (Void# -> r) -> (Void# -> r) -> r
EnrollmentFilterName_Status = EnrollmentFilterName' "Status"

{-# COMPLETE
  EnrollmentFilterName_Status,
  EnrollmentFilterName'
  #-}