{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Nimble.Types.StreamingImageStatusCode
  ( StreamingImageStatusCode
      ( ..,
        StreamingImageStatusCode_ACCESS_DENIED,
        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.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | The status code.
newtype StreamingImageStatusCode = StreamingImageStatusCode'
  { StreamingImageStatusCode -> Text
fromStreamingImageStatusCode ::
      Data.Text
  }
  deriving stock
    ( Int -> StreamingImageStatusCode -> ShowS
[StreamingImageStatusCode] -> ShowS
StreamingImageStatusCode -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq StreamingImageStatusCode
Int -> StreamingImageStatusCode -> Int
StreamingImageStatusCode -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: StreamingImageStatusCode -> ()
$crnf :: StreamingImageStatusCode -> ()
Prelude.NFData,
      Text -> Either String StreamingImageStatusCode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StreamingImageStatusCode
$cfromText :: Text -> Either String StreamingImageStatusCode
Data.FromText,
      StreamingImageStatusCode -> Text
forall a. (a -> Text) -> ToText a
toText :: StreamingImageStatusCode -> Text
$ctoText :: StreamingImageStatusCode -> Text
Data.ToText,
      StreamingImageStatusCode -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StreamingImageStatusCode -> ByteString
$ctoBS :: StreamingImageStatusCode -> ByteString
Data.ToByteString,
      StreamingImageStatusCode -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StreamingImageStatusCode -> ByteStringBuilder
$cbuild :: StreamingImageStatusCode -> ByteStringBuilder
Data.ToLog,
      HeaderName -> StreamingImageStatusCode -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StreamingImageStatusCode -> [Header]
$ctoHeader :: HeaderName -> StreamingImageStatusCode -> [Header]
Data.ToHeader,
      StreamingImageStatusCode -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StreamingImageStatusCode -> QueryString
$ctoQuery :: StreamingImageStatusCode -> QueryString
Data.ToQuery,
      Value -> Parser [StreamingImageStatusCode]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [StreamingImageStatusCode]
FromJSONKeyFunction StreamingImageStatusCode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StreamingImageStatusCode]
$cfromJSONKeyList :: FromJSONKeyFunction [StreamingImageStatusCode]
fromJSONKey :: FromJSONKeyFunction StreamingImageStatusCode
$cfromJSONKey :: FromJSONKeyFunction StreamingImageStatusCode
Data.FromJSONKey,
      [StreamingImageStatusCode] -> Encoding
[StreamingImageStatusCode] -> Value
StreamingImageStatusCode -> Encoding
StreamingImageStatusCode -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [StreamingImageStatusCode]
ToJSONKeyFunction StreamingImageStatusCode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StreamingImageStatusCode]
$ctoJSONKeyList :: ToJSONKeyFunction [StreamingImageStatusCode]
toJSONKey :: ToJSONKeyFunction StreamingImageStatusCode
$ctoJSONKey :: ToJSONKeyFunction StreamingImageStatusCode
Data.ToJSONKey,
      [Node] -> Either String StreamingImageStatusCode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StreamingImageStatusCode
$cparseXML :: [Node] -> Either String StreamingImageStatusCode
Data.FromXML,
      StreamingImageStatusCode -> XML
forall a. (a -> XML) -> ToXML a
toXML :: StreamingImageStatusCode -> XML
$ctoXML :: StreamingImageStatusCode -> XML
Data.ToXML
    )

pattern StreamingImageStatusCode_ACCESS_DENIED :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_ACCESS_DENIED :: StreamingImageStatusCode
$mStreamingImageStatusCode_ACCESS_DENIED :: forall {r}.
StreamingImageStatusCode -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingImageStatusCode_ACCESS_DENIED = StreamingImageStatusCode' "ACCESS_DENIED"

pattern StreamingImageStatusCode_INTERNAL_ERROR :: StreamingImageStatusCode
pattern $bStreamingImageStatusCode_INTERNAL_ERROR :: StreamingImageStatusCode
$mStreamingImageStatusCode_INTERNAL_ERROR :: forall {r}.
StreamingImageStatusCode -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
StreamingImageStatusCode_STREAMING_IMAGE_UPDATE_IN_PROGRESS = StreamingImageStatusCode' "STREAMING_IMAGE_UPDATE_IN_PROGRESS"

{-# COMPLETE
  StreamingImageStatusCode_ACCESS_DENIED,
  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'
  #-}