{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DeviceFarm.Types.InstanceStatus
( InstanceStatus
( ..,
InstanceStatus_AVAILABLE,
InstanceStatus_IN_USE,
InstanceStatus_NOT_AVAILABLE,
InstanceStatus_PREPARING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype InstanceStatus = InstanceStatus'
{ InstanceStatus -> Text
fromInstanceStatus ::
Core.Text
}
deriving stock
( Int -> InstanceStatus -> ShowS
[InstanceStatus] -> ShowS
InstanceStatus -> String
(Int -> InstanceStatus -> ShowS)
-> (InstanceStatus -> String)
-> ([InstanceStatus] -> ShowS)
-> Show InstanceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InstanceStatus] -> ShowS
$cshowList :: [InstanceStatus] -> ShowS
show :: InstanceStatus -> String
$cshow :: InstanceStatus -> String
showsPrec :: Int -> InstanceStatus -> ShowS
$cshowsPrec :: Int -> InstanceStatus -> ShowS
Prelude.Show,
ReadPrec [InstanceStatus]
ReadPrec InstanceStatus
Int -> ReadS InstanceStatus
ReadS [InstanceStatus]
(Int -> ReadS InstanceStatus)
-> ReadS [InstanceStatus]
-> ReadPrec InstanceStatus
-> ReadPrec [InstanceStatus]
-> Read InstanceStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InstanceStatus]
$creadListPrec :: ReadPrec [InstanceStatus]
readPrec :: ReadPrec InstanceStatus
$creadPrec :: ReadPrec InstanceStatus
readList :: ReadS [InstanceStatus]
$creadList :: ReadS [InstanceStatus]
readsPrec :: Int -> ReadS InstanceStatus
$creadsPrec :: Int -> ReadS InstanceStatus
Prelude.Read,
InstanceStatus -> InstanceStatus -> Bool
(InstanceStatus -> InstanceStatus -> Bool)
-> (InstanceStatus -> InstanceStatus -> Bool) -> Eq InstanceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InstanceStatus -> InstanceStatus -> Bool
$c/= :: InstanceStatus -> InstanceStatus -> Bool
== :: InstanceStatus -> InstanceStatus -> Bool
$c== :: InstanceStatus -> InstanceStatus -> Bool
Prelude.Eq,
Eq InstanceStatus
Eq InstanceStatus
-> (InstanceStatus -> InstanceStatus -> Ordering)
-> (InstanceStatus -> InstanceStatus -> Bool)
-> (InstanceStatus -> InstanceStatus -> Bool)
-> (InstanceStatus -> InstanceStatus -> Bool)
-> (InstanceStatus -> InstanceStatus -> Bool)
-> (InstanceStatus -> InstanceStatus -> InstanceStatus)
-> (InstanceStatus -> InstanceStatus -> InstanceStatus)
-> Ord InstanceStatus
InstanceStatus -> InstanceStatus -> Bool
InstanceStatus -> InstanceStatus -> Ordering
InstanceStatus -> InstanceStatus -> InstanceStatus
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 :: InstanceStatus -> InstanceStatus -> InstanceStatus
$cmin :: InstanceStatus -> InstanceStatus -> InstanceStatus
max :: InstanceStatus -> InstanceStatus -> InstanceStatus
$cmax :: InstanceStatus -> InstanceStatus -> InstanceStatus
>= :: InstanceStatus -> InstanceStatus -> Bool
$c>= :: InstanceStatus -> InstanceStatus -> Bool
> :: InstanceStatus -> InstanceStatus -> Bool
$c> :: InstanceStatus -> InstanceStatus -> Bool
<= :: InstanceStatus -> InstanceStatus -> Bool
$c<= :: InstanceStatus -> InstanceStatus -> Bool
< :: InstanceStatus -> InstanceStatus -> Bool
$c< :: InstanceStatus -> InstanceStatus -> Bool
compare :: InstanceStatus -> InstanceStatus -> Ordering
$ccompare :: InstanceStatus -> InstanceStatus -> Ordering
$cp1Ord :: Eq InstanceStatus
Prelude.Ord,
(forall x. InstanceStatus -> Rep InstanceStatus x)
-> (forall x. Rep InstanceStatus x -> InstanceStatus)
-> Generic InstanceStatus
forall x. Rep InstanceStatus x -> InstanceStatus
forall x. InstanceStatus -> Rep InstanceStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep InstanceStatus x -> InstanceStatus
$cfrom :: forall x. InstanceStatus -> Rep InstanceStatus x
Prelude.Generic
)
deriving newtype
( Int -> InstanceStatus -> Int
InstanceStatus -> Int
(Int -> InstanceStatus -> Int)
-> (InstanceStatus -> Int) -> Hashable InstanceStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: InstanceStatus -> Int
$chash :: InstanceStatus -> Int
hashWithSalt :: Int -> InstanceStatus -> Int
$chashWithSalt :: Int -> InstanceStatus -> Int
Prelude.Hashable,
InstanceStatus -> ()
(InstanceStatus -> ()) -> NFData InstanceStatus
forall a. (a -> ()) -> NFData a
rnf :: InstanceStatus -> ()
$crnf :: InstanceStatus -> ()
Prelude.NFData,
Text -> Either String InstanceStatus
(Text -> Either String InstanceStatus) -> FromText InstanceStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InstanceStatus
$cfromText :: Text -> Either String InstanceStatus
Core.FromText,
InstanceStatus -> Text
(InstanceStatus -> Text) -> ToText InstanceStatus
forall a. (a -> Text) -> ToText a
toText :: InstanceStatus -> Text
$ctoText :: InstanceStatus -> Text
Core.ToText,
InstanceStatus -> ByteString
(InstanceStatus -> ByteString) -> ToByteString InstanceStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: InstanceStatus -> ByteString
$ctoBS :: InstanceStatus -> ByteString
Core.ToByteString,
InstanceStatus -> ByteStringBuilder
(InstanceStatus -> ByteStringBuilder) -> ToLog InstanceStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InstanceStatus -> ByteStringBuilder
$cbuild :: InstanceStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> InstanceStatus -> [Header]
(HeaderName -> InstanceStatus -> [Header])
-> ToHeader InstanceStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InstanceStatus -> [Header]
$ctoHeader :: HeaderName -> InstanceStatus -> [Header]
Core.ToHeader,
InstanceStatus -> QueryString
(InstanceStatus -> QueryString) -> ToQuery InstanceStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InstanceStatus -> QueryString
$ctoQuery :: InstanceStatus -> QueryString
Core.ToQuery,
Value -> Parser [InstanceStatus]
Value -> Parser InstanceStatus
(Value -> Parser InstanceStatus)
-> (Value -> Parser [InstanceStatus]) -> FromJSON InstanceStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [InstanceStatus]
$cparseJSONList :: Value -> Parser [InstanceStatus]
parseJSON :: Value -> Parser InstanceStatus
$cparseJSON :: Value -> Parser InstanceStatus
Core.FromJSON,
FromJSONKeyFunction [InstanceStatus]
FromJSONKeyFunction InstanceStatus
FromJSONKeyFunction InstanceStatus
-> FromJSONKeyFunction [InstanceStatus]
-> FromJSONKey InstanceStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InstanceStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [InstanceStatus]
fromJSONKey :: FromJSONKeyFunction InstanceStatus
$cfromJSONKey :: FromJSONKeyFunction InstanceStatus
Core.FromJSONKey,
[InstanceStatus] -> Encoding
[InstanceStatus] -> Value
InstanceStatus -> Encoding
InstanceStatus -> Value
(InstanceStatus -> Value)
-> (InstanceStatus -> Encoding)
-> ([InstanceStatus] -> Value)
-> ([InstanceStatus] -> Encoding)
-> ToJSON InstanceStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [InstanceStatus] -> Encoding
$ctoEncodingList :: [InstanceStatus] -> Encoding
toJSONList :: [InstanceStatus] -> Value
$ctoJSONList :: [InstanceStatus] -> Value
toEncoding :: InstanceStatus -> Encoding
$ctoEncoding :: InstanceStatus -> Encoding
toJSON :: InstanceStatus -> Value
$ctoJSON :: InstanceStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [InstanceStatus]
ToJSONKeyFunction InstanceStatus
ToJSONKeyFunction InstanceStatus
-> ToJSONKeyFunction [InstanceStatus] -> ToJSONKey InstanceStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InstanceStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [InstanceStatus]
toJSONKey :: ToJSONKeyFunction InstanceStatus
$ctoJSONKey :: ToJSONKeyFunction InstanceStatus
Core.ToJSONKey,
[Node] -> Either String InstanceStatus
([Node] -> Either String InstanceStatus) -> FromXML InstanceStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InstanceStatus
$cparseXML :: [Node] -> Either String InstanceStatus
Core.FromXML,
InstanceStatus -> XML
(InstanceStatus -> XML) -> ToXML InstanceStatus
forall a. (a -> XML) -> ToXML a
toXML :: InstanceStatus -> XML
$ctoXML :: InstanceStatus -> XML
Core.ToXML
)
pattern InstanceStatus_AVAILABLE :: InstanceStatus
pattern $bInstanceStatus_AVAILABLE :: InstanceStatus
$mInstanceStatus_AVAILABLE :: forall r. InstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
InstanceStatus_AVAILABLE = InstanceStatus' "AVAILABLE"
pattern InstanceStatus_IN_USE :: InstanceStatus
pattern $bInstanceStatus_IN_USE :: InstanceStatus
$mInstanceStatus_IN_USE :: forall r. InstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
InstanceStatus_IN_USE = InstanceStatus' "IN_USE"
pattern InstanceStatus_NOT_AVAILABLE :: InstanceStatus
pattern $bInstanceStatus_NOT_AVAILABLE :: InstanceStatus
$mInstanceStatus_NOT_AVAILABLE :: forall r. InstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
InstanceStatus_NOT_AVAILABLE = InstanceStatus' "NOT_AVAILABLE"
pattern InstanceStatus_PREPARING :: InstanceStatus
pattern $bInstanceStatus_PREPARING :: InstanceStatus
$mInstanceStatus_PREPARING :: forall r. InstanceStatus -> (Void# -> r) -> (Void# -> r) -> r
InstanceStatus_PREPARING = InstanceStatus' "PREPARING"
{-# COMPLETE
InstanceStatus_AVAILABLE,
InstanceStatus_IN_USE,
InstanceStatus_NOT_AVAILABLE,
InstanceStatus_PREPARING,
InstanceStatus'
#-}