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

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

newtype DeviceServiceName = DeviceServiceName'
  { DeviceServiceName -> Text
fromDeviceServiceName ::
      Core.Text
  }
  deriving stock
    ( Int -> DeviceServiceName -> ShowS
[DeviceServiceName] -> ShowS
DeviceServiceName -> String
(Int -> DeviceServiceName -> ShowS)
-> (DeviceServiceName -> String)
-> ([DeviceServiceName] -> ShowS)
-> Show DeviceServiceName
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]
(Int -> ReadS DeviceServiceName)
-> ReadS [DeviceServiceName]
-> ReadPrec DeviceServiceName
-> ReadPrec [DeviceServiceName]
-> Read 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
(DeviceServiceName -> DeviceServiceName -> Bool)
-> (DeviceServiceName -> DeviceServiceName -> Bool)
-> Eq DeviceServiceName
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
Eq DeviceServiceName
-> (DeviceServiceName -> DeviceServiceName -> Ordering)
-> (DeviceServiceName -> DeviceServiceName -> Bool)
-> (DeviceServiceName -> DeviceServiceName -> Bool)
-> (DeviceServiceName -> DeviceServiceName -> Bool)
-> (DeviceServiceName -> DeviceServiceName -> Bool)
-> (DeviceServiceName -> DeviceServiceName -> DeviceServiceName)
-> (DeviceServiceName -> DeviceServiceName -> DeviceServiceName)
-> Ord 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
$cp1Ord :: Eq DeviceServiceName
Prelude.Ord,
      (forall x. DeviceServiceName -> Rep DeviceServiceName x)
-> (forall x. Rep DeviceServiceName x -> DeviceServiceName)
-> Generic DeviceServiceName
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
    ( Int -> DeviceServiceName -> Int
DeviceServiceName -> Int
(Int -> DeviceServiceName -> Int)
-> (DeviceServiceName -> Int) -> Hashable DeviceServiceName
forall 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 -> ()
(DeviceServiceName -> ()) -> NFData DeviceServiceName
forall a. (a -> ()) -> NFData a
rnf :: DeviceServiceName -> ()
$crnf :: DeviceServiceName -> ()
Prelude.NFData,
      Text -> Either String DeviceServiceName
(Text -> Either String DeviceServiceName)
-> FromText DeviceServiceName
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeviceServiceName
$cfromText :: Text -> Either String DeviceServiceName
Core.FromText,
      DeviceServiceName -> Text
(DeviceServiceName -> Text) -> ToText DeviceServiceName
forall a. (a -> Text) -> ToText a
toText :: DeviceServiceName -> Text
$ctoText :: DeviceServiceName -> Text
Core.ToText,
      DeviceServiceName -> ByteString
(DeviceServiceName -> ByteString) -> ToByteString DeviceServiceName
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeviceServiceName -> ByteString
$ctoBS :: DeviceServiceName -> ByteString
Core.ToByteString,
      DeviceServiceName -> ByteStringBuilder
(DeviceServiceName -> ByteStringBuilder) -> ToLog DeviceServiceName
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeviceServiceName -> ByteStringBuilder
$cbuild :: DeviceServiceName -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DeviceServiceName -> [Header]
(HeaderName -> DeviceServiceName -> [Header])
-> ToHeader DeviceServiceName
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeviceServiceName -> [Header]
$ctoHeader :: HeaderName -> DeviceServiceName -> [Header]
Core.ToHeader,
      DeviceServiceName -> QueryString
(DeviceServiceName -> QueryString) -> ToQuery DeviceServiceName
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeviceServiceName -> QueryString
$ctoQuery :: DeviceServiceName -> QueryString
Core.ToQuery,
      Value -> Parser [DeviceServiceName]
Value -> Parser DeviceServiceName
(Value -> Parser DeviceServiceName)
-> (Value -> Parser [DeviceServiceName])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DeviceServiceName]
FromJSONKeyFunction DeviceServiceName
FromJSONKeyFunction DeviceServiceName
-> FromJSONKeyFunction [DeviceServiceName]
-> FromJSONKey DeviceServiceName
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeviceServiceName]
$cfromJSONKeyList :: FromJSONKeyFunction [DeviceServiceName]
fromJSONKey :: FromJSONKeyFunction DeviceServiceName
$cfromJSONKey :: FromJSONKeyFunction DeviceServiceName
Core.FromJSONKey,
      [DeviceServiceName] -> Encoding
[DeviceServiceName] -> Value
DeviceServiceName -> Encoding
DeviceServiceName -> Value
(DeviceServiceName -> Value)
-> (DeviceServiceName -> Encoding)
-> ([DeviceServiceName] -> Value)
-> ([DeviceServiceName] -> Encoding)
-> ToJSON DeviceServiceName
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
Core.ToJSON,
      ToJSONKeyFunction [DeviceServiceName]
ToJSONKeyFunction DeviceServiceName
ToJSONKeyFunction DeviceServiceName
-> ToJSONKeyFunction [DeviceServiceName]
-> ToJSONKey DeviceServiceName
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeviceServiceName]
$ctoJSONKeyList :: ToJSONKeyFunction [DeviceServiceName]
toJSONKey :: ToJSONKeyFunction DeviceServiceName
$ctoJSONKey :: ToJSONKeyFunction DeviceServiceName
Core.ToJSONKey,
      [Node] -> Either String DeviceServiceName
([Node] -> Either String DeviceServiceName)
-> FromXML DeviceServiceName
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeviceServiceName
$cparseXML :: [Node] -> Either String DeviceServiceName
Core.FromXML,
      DeviceServiceName -> XML
(DeviceServiceName -> XML) -> ToXML DeviceServiceName
forall a. (a -> XML) -> ToXML a
toXML :: DeviceServiceName -> XML
$ctoXML :: DeviceServiceName -> XML
Core.ToXML
    )

pattern DeviceServiceName_NFS_ON_DEVICE_SERVICE :: DeviceServiceName
pattern $bDeviceServiceName_NFS_ON_DEVICE_SERVICE :: DeviceServiceName
$mDeviceServiceName_NFS_ON_DEVICE_SERVICE :: forall r. DeviceServiceName -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
DeviceServiceName_S3_ON_DEVICE_SERVICE = DeviceServiceName' "S3_ON_DEVICE_SERVICE"

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