{-# 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.Gid
-- 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.Gid
  ( Gid
      ( ..,
        Gid_BOTH,
        Gid_INT_VALUE,
        Gid_NAME,
        Gid_NONE
      ),
  )
where

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

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

pattern Gid_BOTH :: Gid
pattern $bGid_BOTH :: Gid
$mGid_BOTH :: forall r. Gid -> (Void# -> r) -> (Void# -> r) -> r
Gid_BOTH = Gid' "BOTH"

pattern Gid_INT_VALUE :: Gid
pattern $bGid_INT_VALUE :: Gid
$mGid_INT_VALUE :: forall r. Gid -> (Void# -> r) -> (Void# -> r) -> r
Gid_INT_VALUE = Gid' "INT_VALUE"

pattern Gid_NAME :: Gid
pattern $bGid_NAME :: Gid
$mGid_NAME :: forall r. Gid -> (Void# -> r) -> (Void# -> r) -> r
Gid_NAME = Gid' "NAME"

pattern Gid_NONE :: Gid
pattern $bGid_NONE :: Gid
$mGid_NONE :: forall r. Gid -> (Void# -> r) -> (Void# -> r) -> r
Gid_NONE = Gid' "NONE"

{-# COMPLETE
  Gid_BOTH,
  Gid_INT_VALUE,
  Gid_NAME,
  Gid_NONE,
  Gid'
  #-}