{-# 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.DataSync.Types.FilterType
-- 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.DataSync.Types.FilterType
  ( FilterType
      ( ..,
        FilterType_SIMPLE_PATTERN
      ),
  )
where

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

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

pattern FilterType_SIMPLE_PATTERN :: FilterType
pattern $bFilterType_SIMPLE_PATTERN :: FilterType
$mFilterType_SIMPLE_PATTERN :: forall r. FilterType -> (Void# -> r) -> (Void# -> r) -> r
FilterType_SIMPLE_PATTERN = FilterType' "SIMPLE_PATTERN"

{-# COMPLETE
  FilterType_SIMPLE_PATTERN,
  FilterType'
  #-}