{-# 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.Uid
-- 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.Uid
  ( Uid
      ( ..,
        Uid_BOTH,
        Uid_INT_VALUE,
        Uid_NAME,
        Uid_NONE
      ),
  )
where

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

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

pattern Uid_BOTH :: Uid
pattern $bUid_BOTH :: Uid
$mUid_BOTH :: forall r. Uid -> (Void# -> r) -> (Void# -> r) -> r
Uid_BOTH = Uid' "BOTH"

pattern Uid_INT_VALUE :: Uid
pattern $bUid_INT_VALUE :: Uid
$mUid_INT_VALUE :: forall r. Uid -> (Void# -> r) -> (Void# -> r) -> r
Uid_INT_VALUE = Uid' "INT_VALUE"

pattern Uid_NAME :: Uid
pattern $bUid_NAME :: Uid
$mUid_NAME :: forall r. Uid -> (Void# -> r) -> (Void# -> r) -> r
Uid_NAME = Uid' "NAME"

pattern Uid_NONE :: Uid
pattern $bUid_NONE :: Uid
$mUid_NONE :: forall r. Uid -> (Void# -> r) -> (Void# -> r) -> r
Uid_NONE = Uid' "NONE"

{-# COMPLETE
  Uid_BOTH,
  Uid_INT_VALUE,
  Uid_NAME,
  Uid_NONE,
  Uid'
  #-}