{-# 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.InteractionMode
-- 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.DeviceFarm.Types.InteractionMode
  ( InteractionMode
      ( ..,
        InteractionMode_INTERACTIVE,
        InteractionMode_NO_VIDEO,
        InteractionMode_VIDEO_ONLY
      ),
  )
where

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

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

pattern InteractionMode_INTERACTIVE :: InteractionMode
pattern $bInteractionMode_INTERACTIVE :: InteractionMode
$mInteractionMode_INTERACTIVE :: forall {r}. InteractionMode -> ((# #) -> r) -> ((# #) -> r) -> r
InteractionMode_INTERACTIVE = InteractionMode' "INTERACTIVE"

pattern InteractionMode_NO_VIDEO :: InteractionMode
pattern $bInteractionMode_NO_VIDEO :: InteractionMode
$mInteractionMode_NO_VIDEO :: forall {r}. InteractionMode -> ((# #) -> r) -> ((# #) -> r) -> r
InteractionMode_NO_VIDEO = InteractionMode' "NO_VIDEO"

pattern InteractionMode_VIDEO_ONLY :: InteractionMode
pattern $bInteractionMode_VIDEO_ONLY :: InteractionMode
$mInteractionMode_VIDEO_ONLY :: forall {r}. InteractionMode -> ((# #) -> r) -> ((# #) -> r) -> r
InteractionMode_VIDEO_ONLY = InteractionMode' "VIDEO_ONLY"

{-# COMPLETE
  InteractionMode_INTERACTIVE,
  InteractionMode_NO_VIDEO,
  InteractionMode_VIDEO_ONLY,
  InteractionMode'
  #-}