{-# 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.Route53AutoNaming.Types.ServiceFilterName
-- 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.Route53AutoNaming.Types.ServiceFilterName
  ( ServiceFilterName
      ( ..,
        ServiceFilterName_NAMESPACE_ID
      ),
  )
where

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

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

pattern ServiceFilterName_NAMESPACE_ID :: ServiceFilterName
pattern $bServiceFilterName_NAMESPACE_ID :: ServiceFilterName
$mServiceFilterName_NAMESPACE_ID :: forall {r}. ServiceFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceFilterName_NAMESPACE_ID = ServiceFilterName' "NAMESPACE_ID"

{-# COMPLETE
  ServiceFilterName_NAMESPACE_ID,
  ServiceFilterName'
  #-}