{-# 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.Braket.Types.DeviceType
-- 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.Braket.Types.DeviceType
  ( DeviceType
      ( ..,
        DeviceType_QPU,
        DeviceType_SIMULATOR
      ),
  )
where

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

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

pattern DeviceType_QPU :: DeviceType
pattern $bDeviceType_QPU :: DeviceType
$mDeviceType_QPU :: forall r. DeviceType -> (Void# -> r) -> (Void# -> r) -> r
DeviceType_QPU = DeviceType' "QPU"

pattern DeviceType_SIMULATOR :: DeviceType
pattern $bDeviceType_SIMULATOR :: DeviceType
$mDeviceType_SIMULATOR :: forall r. DeviceType -> (Void# -> r) -> (Void# -> r) -> r
DeviceType_SIMULATOR = DeviceType' "SIMULATOR"

{-# COMPLETE
  DeviceType_QPU,
  DeviceType_SIMULATOR,
  DeviceType'
  #-}