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

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

newtype ServiceFilterName = ServiceFilterName'
  { ServiceFilterName -> Text
fromServiceFilterName ::
      Core.Text
  }
  deriving stock
    ( Int -> ServiceFilterName -> ShowS
[ServiceFilterName] -> ShowS
ServiceFilterName -> String
(Int -> ServiceFilterName -> ShowS)
-> (ServiceFilterName -> String)
-> ([ServiceFilterName] -> ShowS)
-> Show ServiceFilterName
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]
(Int -> ReadS ServiceFilterName)
-> ReadS [ServiceFilterName]
-> ReadPrec ServiceFilterName
-> ReadPrec [ServiceFilterName]
-> Read 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
(ServiceFilterName -> ServiceFilterName -> Bool)
-> (ServiceFilterName -> ServiceFilterName -> Bool)
-> Eq ServiceFilterName
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
Eq ServiceFilterName
-> (ServiceFilterName -> ServiceFilterName -> Ordering)
-> (ServiceFilterName -> ServiceFilterName -> Bool)
-> (ServiceFilterName -> ServiceFilterName -> Bool)
-> (ServiceFilterName -> ServiceFilterName -> Bool)
-> (ServiceFilterName -> ServiceFilterName -> Bool)
-> (ServiceFilterName -> ServiceFilterName -> ServiceFilterName)
-> (ServiceFilterName -> ServiceFilterName -> ServiceFilterName)
-> Ord 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
$cp1Ord :: Eq ServiceFilterName
Prelude.Ord,
      (forall x. ServiceFilterName -> Rep ServiceFilterName x)
-> (forall x. Rep ServiceFilterName x -> ServiceFilterName)
-> Generic ServiceFilterName
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
    ( Int -> ServiceFilterName -> Int
ServiceFilterName -> Int
(Int -> ServiceFilterName -> Int)
-> (ServiceFilterName -> Int) -> Hashable ServiceFilterName
forall 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 -> ()
(ServiceFilterName -> ()) -> NFData ServiceFilterName
forall a. (a -> ()) -> NFData a
rnf :: ServiceFilterName -> ()
$crnf :: ServiceFilterName -> ()
Prelude.NFData,
      Text -> Either String ServiceFilterName
(Text -> Either String ServiceFilterName)
-> FromText ServiceFilterName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ServiceFilterName
$cfromText :: Text -> Either String ServiceFilterName
Core.FromText,
      ServiceFilterName -> Text
(ServiceFilterName -> Text) -> ToText ServiceFilterName
forall a. (a -> Text) -> ToText a
toText :: ServiceFilterName -> Text
$ctoText :: ServiceFilterName -> Text
Core.ToText,
      ServiceFilterName -> ByteString
(ServiceFilterName -> ByteString) -> ToByteString ServiceFilterName
forall a. (a -> ByteString) -> ToByteString a
toBS :: ServiceFilterName -> ByteString
$ctoBS :: ServiceFilterName -> ByteString
Core.ToByteString,
      ServiceFilterName -> ByteStringBuilder
(ServiceFilterName -> ByteStringBuilder) -> ToLog ServiceFilterName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ServiceFilterName -> ByteStringBuilder
$cbuild :: ServiceFilterName -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ServiceFilterName -> [Header]
(HeaderName -> ServiceFilterName -> [Header])
-> ToHeader ServiceFilterName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ServiceFilterName -> [Header]
$ctoHeader :: HeaderName -> ServiceFilterName -> [Header]
Core.ToHeader,
      ServiceFilterName -> QueryString
(ServiceFilterName -> QueryString) -> ToQuery ServiceFilterName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ServiceFilterName -> QueryString
$ctoQuery :: ServiceFilterName -> QueryString
Core.ToQuery,
      Value -> Parser [ServiceFilterName]
Value -> Parser ServiceFilterName
(Value -> Parser ServiceFilterName)
-> (Value -> Parser [ServiceFilterName])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ServiceFilterName]
FromJSONKeyFunction ServiceFilterName
FromJSONKeyFunction ServiceFilterName
-> FromJSONKeyFunction [ServiceFilterName]
-> FromJSONKey ServiceFilterName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ServiceFilterName]
$cfromJSONKeyList :: FromJSONKeyFunction [ServiceFilterName]
fromJSONKey :: FromJSONKeyFunction ServiceFilterName
$cfromJSONKey :: FromJSONKeyFunction ServiceFilterName
Core.FromJSONKey,
      [ServiceFilterName] -> Encoding
[ServiceFilterName] -> Value
ServiceFilterName -> Encoding
ServiceFilterName -> Value
(ServiceFilterName -> Value)
-> (ServiceFilterName -> Encoding)
-> ([ServiceFilterName] -> Value)
-> ([ServiceFilterName] -> Encoding)
-> ToJSON ServiceFilterName
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
Core.ToJSON,
      ToJSONKeyFunction [ServiceFilterName]
ToJSONKeyFunction ServiceFilterName
ToJSONKeyFunction ServiceFilterName
-> ToJSONKeyFunction [ServiceFilterName]
-> ToJSONKey ServiceFilterName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ServiceFilterName]
$ctoJSONKeyList :: ToJSONKeyFunction [ServiceFilterName]
toJSONKey :: ToJSONKeyFunction ServiceFilterName
$ctoJSONKey :: ToJSONKeyFunction ServiceFilterName
Core.ToJSONKey,
      [Node] -> Either String ServiceFilterName
([Node] -> Either String ServiceFilterName)
-> FromXML ServiceFilterName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ServiceFilterName
$cparseXML :: [Node] -> Either String ServiceFilterName
Core.FromXML,
      ServiceFilterName -> XML
(ServiceFilterName -> XML) -> ToXML ServiceFilterName
forall a. (a -> XML) -> ToXML a
toXML :: ServiceFilterName -> XML
$ctoXML :: ServiceFilterName -> XML
Core.ToXML
    )

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

{-# COMPLETE
  ServiceFilterName_NAMESPACE_ID,
  ServiceFilterName'
  #-}