{-# 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.LocationFilterName
-- 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.LocationFilterName
  ( LocationFilterName
      ( ..,
        LocationFilterName_CreationTime,
        LocationFilterName_LocationType,
        LocationFilterName_LocationUri
      ),
  )
where

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

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

pattern LocationFilterName_CreationTime :: LocationFilterName
pattern $bLocationFilterName_CreationTime :: LocationFilterName
$mLocationFilterName_CreationTime :: forall r. LocationFilterName -> (Void# -> r) -> (Void# -> r) -> r
LocationFilterName_CreationTime = LocationFilterName' "CreationTime"

pattern LocationFilterName_LocationType :: LocationFilterName
pattern $bLocationFilterName_LocationType :: LocationFilterName
$mLocationFilterName_LocationType :: forall r. LocationFilterName -> (Void# -> r) -> (Void# -> r) -> r
LocationFilterName_LocationType = LocationFilterName' "LocationType"

pattern LocationFilterName_LocationUri :: LocationFilterName
pattern $bLocationFilterName_LocationUri :: LocationFilterName
$mLocationFilterName_LocationUri :: forall r. LocationFilterName -> (Void# -> r) -> (Void# -> r) -> r
LocationFilterName_LocationUri = LocationFilterName' "LocationUri"

{-# COMPLETE
  LocationFilterName_CreationTime,
  LocationFilterName_LocationType,
  LocationFilterName_LocationUri,
  LocationFilterName'
  #-}