{-# 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.FSx.Types.FilterName
-- 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.FSx.Types.FilterName
  ( FilterName
      ( ..,
        FilterName_Backup_type,
        FilterName_Data_repository_type,
        FilterName_File_cache_id,
        FilterName_File_cache_type,
        FilterName_File_system_id,
        FilterName_File_system_type,
        FilterName_Volume_id
      ),
  )
where

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

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

pattern FilterName_Backup_type :: FilterName
pattern $bFilterName_Backup_type :: FilterName
$mFilterName_Backup_type :: forall {r}. FilterName -> ((# #) -> r) -> ((# #) -> r) -> r
FilterName_Backup_type = FilterName' "backup-type"

pattern FilterName_Data_repository_type :: FilterName
pattern $bFilterName_Data_repository_type :: FilterName
$mFilterName_Data_repository_type :: forall {r}. FilterName -> ((# #) -> r) -> ((# #) -> r) -> r
FilterName_Data_repository_type = FilterName' "data-repository-type"

pattern FilterName_File_cache_id :: FilterName
pattern $bFilterName_File_cache_id :: FilterName
$mFilterName_File_cache_id :: forall {r}. FilterName -> ((# #) -> r) -> ((# #) -> r) -> r
FilterName_File_cache_id = FilterName' "file-cache-id"

pattern FilterName_File_cache_type :: FilterName
pattern $bFilterName_File_cache_type :: FilterName
$mFilterName_File_cache_type :: forall {r}. FilterName -> ((# #) -> r) -> ((# #) -> r) -> r
FilterName_File_cache_type = FilterName' "file-cache-type"

pattern FilterName_File_system_id :: FilterName
pattern $bFilterName_File_system_id :: FilterName
$mFilterName_File_system_id :: forall {r}. FilterName -> ((# #) -> r) -> ((# #) -> r) -> r
FilterName_File_system_id = FilterName' "file-system-id"

pattern FilterName_File_system_type :: FilterName
pattern $bFilterName_File_system_type :: FilterName
$mFilterName_File_system_type :: forall {r}. FilterName -> ((# #) -> r) -> ((# #) -> r) -> r
FilterName_File_system_type = FilterName' "file-system-type"

pattern FilterName_Volume_id :: FilterName
pattern $bFilterName_Volume_id :: FilterName
$mFilterName_Volume_id :: forall {r}. FilterName -> ((# #) -> r) -> ((# #) -> r) -> r
FilterName_Volume_id = FilterName' "volume-id"

{-# COMPLETE
  FilterName_Backup_type,
  FilterName_Data_repository_type,
  FilterName_File_cache_id,
  FilterName_File_cache_type,
  FilterName_File_system_id,
  FilterName_File_system_type,
  FilterName_Volume_id,
  FilterName'
  #-}