{-# 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.Snowball.Types.DeviceServiceName
-- 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.Snowball.Types.DeviceServiceName
  ( DeviceServiceName
      ( ..,
        DeviceServiceName_NFS_ON_DEVICE_SERVICE,
        DeviceServiceName_S3_ON_DEVICE_SERVICE
      ),
  )
where

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

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

pattern DeviceServiceName_NFS_ON_DEVICE_SERVICE :: DeviceServiceName
pattern $bDeviceServiceName_NFS_ON_DEVICE_SERVICE :: DeviceServiceName
$mDeviceServiceName_NFS_ON_DEVICE_SERVICE :: forall {r}. DeviceServiceName -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceServiceName_NFS_ON_DEVICE_SERVICE = DeviceServiceName' "NFS_ON_DEVICE_SERVICE"

pattern DeviceServiceName_S3_ON_DEVICE_SERVICE :: DeviceServiceName
pattern $bDeviceServiceName_S3_ON_DEVICE_SERVICE :: DeviceServiceName
$mDeviceServiceName_S3_ON_DEVICE_SERVICE :: forall {r}. DeviceServiceName -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceServiceName_S3_ON_DEVICE_SERVICE = DeviceServiceName' "S3_ON_DEVICE_SERVICE"

{-# COMPLETE
  DeviceServiceName_NFS_ON_DEVICE_SERVICE,
  DeviceServiceName_S3_ON_DEVICE_SERVICE,
  DeviceServiceName'
  #-}