{-# 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.PreserveDevices
-- 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.PreserveDevices
  ( PreserveDevices
      ( ..,
        PreserveDevices_NONE,
        PreserveDevices_PRESERVE
      ),
  )
where

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

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

pattern PreserveDevices_NONE :: PreserveDevices
pattern $bPreserveDevices_NONE :: PreserveDevices
$mPreserveDevices_NONE :: forall {r}. PreserveDevices -> ((# #) -> r) -> ((# #) -> r) -> r
PreserveDevices_NONE = PreserveDevices' "NONE"

pattern PreserveDevices_PRESERVE :: PreserveDevices
pattern $bPreserveDevices_PRESERVE :: PreserveDevices
$mPreserveDevices_PRESERVE :: forall {r}. PreserveDevices -> ((# #) -> r) -> ((# #) -> r) -> r
PreserveDevices_PRESERVE = PreserveDevices' "PRESERVE"

{-# COMPLETE
  PreserveDevices_NONE,
  PreserveDevices_PRESERVE,
  PreserveDevices'
  #-}