{-# 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.WorkSpaces.Types.ClientDeviceType
-- 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.WorkSpaces.Types.ClientDeviceType
  ( ClientDeviceType
      ( ..,
        ClientDeviceType_DeviceTypeAndroid,
        ClientDeviceType_DeviceTypeIos,
        ClientDeviceType_DeviceTypeLinux,
        ClientDeviceType_DeviceTypeOsx,
        ClientDeviceType_DeviceTypeWeb,
        ClientDeviceType_DeviceTypeWindows
      ),
  )
where

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

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

pattern ClientDeviceType_DeviceTypeAndroid :: ClientDeviceType
pattern $bClientDeviceType_DeviceTypeAndroid :: ClientDeviceType
$mClientDeviceType_DeviceTypeAndroid :: forall {r}. ClientDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientDeviceType_DeviceTypeAndroid = ClientDeviceType' "DeviceTypeAndroid"

pattern ClientDeviceType_DeviceTypeIos :: ClientDeviceType
pattern $bClientDeviceType_DeviceTypeIos :: ClientDeviceType
$mClientDeviceType_DeviceTypeIos :: forall {r}. ClientDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientDeviceType_DeviceTypeIos = ClientDeviceType' "DeviceTypeIos"

pattern ClientDeviceType_DeviceTypeLinux :: ClientDeviceType
pattern $bClientDeviceType_DeviceTypeLinux :: ClientDeviceType
$mClientDeviceType_DeviceTypeLinux :: forall {r}. ClientDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientDeviceType_DeviceTypeLinux = ClientDeviceType' "DeviceTypeLinux"

pattern ClientDeviceType_DeviceTypeOsx :: ClientDeviceType
pattern $bClientDeviceType_DeviceTypeOsx :: ClientDeviceType
$mClientDeviceType_DeviceTypeOsx :: forall {r}. ClientDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientDeviceType_DeviceTypeOsx = ClientDeviceType' "DeviceTypeOsx"

pattern ClientDeviceType_DeviceTypeWeb :: ClientDeviceType
pattern $bClientDeviceType_DeviceTypeWeb :: ClientDeviceType
$mClientDeviceType_DeviceTypeWeb :: forall {r}. ClientDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientDeviceType_DeviceTypeWeb = ClientDeviceType' "DeviceTypeWeb"

pattern ClientDeviceType_DeviceTypeWindows :: ClientDeviceType
pattern $bClientDeviceType_DeviceTypeWindows :: ClientDeviceType
$mClientDeviceType_DeviceTypeWindows :: forall {r}. ClientDeviceType -> ((# #) -> r) -> ((# #) -> r) -> r
ClientDeviceType_DeviceTypeWindows = ClientDeviceType' "DeviceTypeWindows"

{-# COMPLETE
  ClientDeviceType_DeviceTypeAndroid,
  ClientDeviceType_DeviceTypeIos,
  ClientDeviceType_DeviceTypeLinux,
  ClientDeviceType_DeviceTypeOsx,
  ClientDeviceType_DeviceTypeWeb,
  ClientDeviceType_DeviceTypeWindows,
  ClientDeviceType'
  #-}