{-# 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.Nimble.Types.StreamingImageState
-- 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.Nimble.Types.StreamingImageState
  ( StreamingImageState
      ( ..,
        StreamingImageState_CREATE_FAILED,
        StreamingImageState_CREATE_IN_PROGRESS,
        StreamingImageState_DELETED,
        StreamingImageState_DELETE_FAILED,
        StreamingImageState_DELETE_IN_PROGRESS,
        StreamingImageState_READY,
        StreamingImageState_UPDATE_FAILED,
        StreamingImageState_UPDATE_IN_PROGRESS
      ),
  )
where

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

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

pattern StreamingImageState_CREATE_FAILED :: StreamingImageState
pattern $bStreamingImageState_CREATE_FAILED :: StreamingImageState
$mStreamingImageState_CREATE_FAILED :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_CREATE_FAILED = StreamingImageState' "CREATE_FAILED"

pattern StreamingImageState_CREATE_IN_PROGRESS :: StreamingImageState
pattern $bStreamingImageState_CREATE_IN_PROGRESS :: StreamingImageState
$mStreamingImageState_CREATE_IN_PROGRESS :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_CREATE_IN_PROGRESS = StreamingImageState' "CREATE_IN_PROGRESS"

pattern StreamingImageState_DELETED :: StreamingImageState
pattern $bStreamingImageState_DELETED :: StreamingImageState
$mStreamingImageState_DELETED :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_DELETED = StreamingImageState' "DELETED"

pattern StreamingImageState_DELETE_FAILED :: StreamingImageState
pattern $bStreamingImageState_DELETE_FAILED :: StreamingImageState
$mStreamingImageState_DELETE_FAILED :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_DELETE_FAILED = StreamingImageState' "DELETE_FAILED"

pattern StreamingImageState_DELETE_IN_PROGRESS :: StreamingImageState
pattern $bStreamingImageState_DELETE_IN_PROGRESS :: StreamingImageState
$mStreamingImageState_DELETE_IN_PROGRESS :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_DELETE_IN_PROGRESS = StreamingImageState' "DELETE_IN_PROGRESS"

pattern StreamingImageState_READY :: StreamingImageState
pattern $bStreamingImageState_READY :: StreamingImageState
$mStreamingImageState_READY :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_READY = StreamingImageState' "READY"

pattern StreamingImageState_UPDATE_FAILED :: StreamingImageState
pattern $bStreamingImageState_UPDATE_FAILED :: StreamingImageState
$mStreamingImageState_UPDATE_FAILED :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_UPDATE_FAILED = StreamingImageState' "UPDATE_FAILED"

pattern StreamingImageState_UPDATE_IN_PROGRESS :: StreamingImageState
pattern $bStreamingImageState_UPDATE_IN_PROGRESS :: StreamingImageState
$mStreamingImageState_UPDATE_IN_PROGRESS :: forall r. StreamingImageState -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageState_UPDATE_IN_PROGRESS = StreamingImageState' "UPDATE_IN_PROGRESS"

{-# COMPLETE
  StreamingImageState_CREATE_FAILED,
  StreamingImageState_CREATE_IN_PROGRESS,
  StreamingImageState_DELETED,
  StreamingImageState_DELETE_FAILED,
  StreamingImageState_DELETE_IN_PROGRESS,
  StreamingImageState_READY,
  StreamingImageState_UPDATE_FAILED,
  StreamingImageState_UPDATE_IN_PROGRESS,
  StreamingImageState'
  #-}