{-# 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.StreamingImageStatusCode
-- 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.StreamingImageStatusCode
  ( StreamingImageStatusCode
      ( ..,
        StreamingImageStatusCode_INTERNAL_ERROR,
        StreamingImageStatusCode_STREAMING_IMAGE_CREATE_IN_PROGRESS,
        StreamingImageStatusCode_STREAMING_IMAGE_DELETED,
        StreamingImageStatusCode_STREAMING_IMAGE_DELETE_IN_PROGRESS,
        StreamingImageStatusCode_STREAMING_IMAGE_READY,
        StreamingImageStatusCode_STREAMING_IMAGE_UPDATE_IN_PROGRESS
      ),
  )
where

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

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

pattern StreamingImageStatusCode_INTERNAL_ERROR :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_INTERNAL_ERROR :: StreamingImageStatusCode
$mStreamingImageStatusCode_INTERNAL_ERROR :: forall r.
StreamingImageStatusCode -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageStatusCode_INTERNAL_ERROR = StreamingImageStatusCode' "INTERNAL_ERROR"

pattern StreamingImageStatusCode_STREAMING_IMAGE_CREATE_IN_PROGRESS :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_STREAMING_IMAGE_CREATE_IN_PROGRESS :: StreamingImageStatusCode
$mStreamingImageStatusCode_STREAMING_IMAGE_CREATE_IN_PROGRESS :: forall r.
StreamingImageStatusCode -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageStatusCode_STREAMING_IMAGE_CREATE_IN_PROGRESS = StreamingImageStatusCode' "STREAMING_IMAGE_CREATE_IN_PROGRESS"

pattern StreamingImageStatusCode_STREAMING_IMAGE_DELETED :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_STREAMING_IMAGE_DELETED :: StreamingImageStatusCode
$mStreamingImageStatusCode_STREAMING_IMAGE_DELETED :: forall r.
StreamingImageStatusCode -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageStatusCode_STREAMING_IMAGE_DELETED = StreamingImageStatusCode' "STREAMING_IMAGE_DELETED"

pattern StreamingImageStatusCode_STREAMING_IMAGE_DELETE_IN_PROGRESS :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_STREAMING_IMAGE_DELETE_IN_PROGRESS :: StreamingImageStatusCode
$mStreamingImageStatusCode_STREAMING_IMAGE_DELETE_IN_PROGRESS :: forall r.
StreamingImageStatusCode -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageStatusCode_STREAMING_IMAGE_DELETE_IN_PROGRESS = StreamingImageStatusCode' "STREAMING_IMAGE_DELETE_IN_PROGRESS"

pattern StreamingImageStatusCode_STREAMING_IMAGE_READY :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_STREAMING_IMAGE_READY :: StreamingImageStatusCode
$mStreamingImageStatusCode_STREAMING_IMAGE_READY :: forall r.
StreamingImageStatusCode -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageStatusCode_STREAMING_IMAGE_READY = StreamingImageStatusCode' "STREAMING_IMAGE_READY"

pattern StreamingImageStatusCode_STREAMING_IMAGE_UPDATE_IN_PROGRESS :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_STREAMING_IMAGE_UPDATE_IN_PROGRESS :: StreamingImageStatusCode
$mStreamingImageStatusCode_STREAMING_IMAGE_UPDATE_IN_PROGRESS :: forall r.
StreamingImageStatusCode -> (Void# -> r) -> (Void# -> r) -> r
StreamingImageStatusCode_STREAMING_IMAGE_UPDATE_IN_PROGRESS = StreamingImageStatusCode' "STREAMING_IMAGE_UPDATE_IN_PROGRESS"

{-# COMPLETE
  StreamingImageStatusCode_INTERNAL_ERROR,
  StreamingImageStatusCode_STREAMING_IMAGE_CREATE_IN_PROGRESS,
  StreamingImageStatusCode_STREAMING_IMAGE_DELETED,
  StreamingImageStatusCode_STREAMING_IMAGE_DELETE_IN_PROGRESS,
  StreamingImageStatusCode_STREAMING_IMAGE_READY,
  StreamingImageStatusCode_STREAMING_IMAGE_UPDATE_IN_PROGRESS,
  StreamingImageStatusCode'
  #-}