{-# 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.Omics.Types.ReadSetStatus
-- 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.Omics.Types.ReadSetStatus
  ( ReadSetStatus
      ( ..,
        ReadSetStatus_ACTIVATING,
        ReadSetStatus_ACTIVE,
        ReadSetStatus_ARCHIVED,
        ReadSetStatus_DELETED,
        ReadSetStatus_DELETING
      ),
  )
where

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

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

pattern ReadSetStatus_ACTIVATING :: ReadSetStatus
pattern $bReadSetStatus_ACTIVATING :: ReadSetStatus
$mReadSetStatus_ACTIVATING :: forall {r}. ReadSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReadSetStatus_ACTIVATING = ReadSetStatus' "ACTIVATING"

pattern ReadSetStatus_ACTIVE :: ReadSetStatus
pattern $bReadSetStatus_ACTIVE :: ReadSetStatus
$mReadSetStatus_ACTIVE :: forall {r}. ReadSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReadSetStatus_ACTIVE = ReadSetStatus' "ACTIVE"

pattern ReadSetStatus_ARCHIVED :: ReadSetStatus
pattern $bReadSetStatus_ARCHIVED :: ReadSetStatus
$mReadSetStatus_ARCHIVED :: forall {r}. ReadSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReadSetStatus_ARCHIVED = ReadSetStatus' "ARCHIVED"

pattern ReadSetStatus_DELETED :: ReadSetStatus
pattern $bReadSetStatus_DELETED :: ReadSetStatus
$mReadSetStatus_DELETED :: forall {r}. ReadSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReadSetStatus_DELETED = ReadSetStatus' "DELETED"

pattern ReadSetStatus_DELETING :: ReadSetStatus
pattern $bReadSetStatus_DELETING :: ReadSetStatus
$mReadSetStatus_DELETING :: forall {r}. ReadSetStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ReadSetStatus_DELETING = ReadSetStatus' "DELETING"

{-# COMPLETE
  ReadSetStatus_ACTIVATING,
  ReadSetStatus_ACTIVE,
  ReadSetStatus_ARCHIVED,
  ReadSetStatus_DELETED,
  ReadSetStatus_DELETING,
  ReadSetStatus'
  #-}