{-# 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.VolumeFilterName
-- 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.VolumeFilterName
  ( VolumeFilterName
      ( ..,
        VolumeFilterName_File_system_id,
        VolumeFilterName_Storage_virtual_machine_id
      ),
  )
where

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

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

pattern VolumeFilterName_File_system_id :: VolumeFilterName
pattern $bVolumeFilterName_File_system_id :: VolumeFilterName
$mVolumeFilterName_File_system_id :: forall {r}. VolumeFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeFilterName_File_system_id = VolumeFilterName' "file-system-id"

pattern VolumeFilterName_Storage_virtual_machine_id :: VolumeFilterName
pattern $bVolumeFilterName_Storage_virtual_machine_id :: VolumeFilterName
$mVolumeFilterName_Storage_virtual_machine_id :: forall {r}. VolumeFilterName -> ((# #) -> r) -> ((# #) -> r) -> r
VolumeFilterName_Storage_virtual_machine_id = VolumeFilterName' "storage-virtual-machine-id"

{-# COMPLETE
  VolumeFilterName_File_system_id,
  VolumeFilterName_Storage_virtual_machine_id,
  VolumeFilterName'
  #-}