{-# 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.ObjectTags
-- 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.DataSync.Types.ObjectTags
  ( ObjectTags
      ( ..,
        ObjectTags_NONE,
        ObjectTags_PRESERVE
      ),
  )
where

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

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

pattern ObjectTags_NONE :: ObjectTags
pattern $bObjectTags_NONE :: ObjectTags
$mObjectTags_NONE :: forall {r}. ObjectTags -> ((# #) -> r) -> ((# #) -> r) -> r
ObjectTags_NONE = ObjectTags' "NONE"

pattern ObjectTags_PRESERVE :: ObjectTags
pattern $bObjectTags_PRESERVE :: ObjectTags
$mObjectTags_PRESERVE :: forall {r}. ObjectTags -> ((# #) -> r) -> ((# #) -> r) -> r
ObjectTags_PRESERVE = ObjectTags' "PRESERVE"

{-# COMPLETE
  ObjectTags_NONE,
  ObjectTags_PRESERVE,
  ObjectTags'
  #-}