{-# 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.AppStream.Types.FleetState
-- 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.AppStream.Types.FleetState
  ( FleetState
      ( ..,
        FleetState_RUNNING,
        FleetState_STARTING,
        FleetState_STOPPED,
        FleetState_STOPPING
      ),
  )
where

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

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

pattern FleetState_RUNNING :: FleetState
pattern $bFleetState_RUNNING :: FleetState
$mFleetState_RUNNING :: forall r. FleetState -> (Void# -> r) -> (Void# -> r) -> r
FleetState_RUNNING = FleetState' "RUNNING"

pattern FleetState_STARTING :: FleetState
pattern $bFleetState_STARTING :: FleetState
$mFleetState_STARTING :: forall r. FleetState -> (Void# -> r) -> (Void# -> r) -> r
FleetState_STARTING = FleetState' "STARTING"

pattern FleetState_STOPPED :: FleetState
pattern $bFleetState_STOPPED :: FleetState
$mFleetState_STOPPED :: forall r. FleetState -> (Void# -> r) -> (Void# -> r) -> r
FleetState_STOPPED = FleetState' "STOPPED"

pattern FleetState_STOPPING :: FleetState
pattern $bFleetState_STOPPING :: FleetState
$mFleetState_STOPPING :: forall r. FleetState -> (Void# -> r) -> (Void# -> r) -> r
FleetState_STOPPING = FleetState' "STOPPING"

{-# COMPLETE
  FleetState_RUNNING,
  FleetState_STARTING,
  FleetState_STOPPED,
  FleetState_STOPPING,
  FleetState'
  #-}