{-# 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.DeviceFarm.Types.DevicePoolType
-- 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.DeviceFarm.Types.DevicePoolType
  ( DevicePoolType
      ( ..,
        DevicePoolType_CURATED,
        DevicePoolType_PRIVATE
      ),
  )
where

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

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

pattern DevicePoolType_CURATED :: DevicePoolType
pattern $bDevicePoolType_CURATED :: DevicePoolType
$mDevicePoolType_CURATED :: forall r. DevicePoolType -> (Void# -> r) -> (Void# -> r) -> r
DevicePoolType_CURATED = DevicePoolType' "CURATED"

pattern DevicePoolType_PRIVATE :: DevicePoolType
pattern $bDevicePoolType_PRIVATE :: DevicePoolType
$mDevicePoolType_PRIVATE :: forall r. DevicePoolType -> (Void# -> r) -> (Void# -> r) -> r
DevicePoolType_PRIVATE = DevicePoolType' "PRIVATE"

{-# COMPLETE
  DevicePoolType_CURATED,
  DevicePoolType_PRIVATE,
  DevicePoolType'
  #-}