{-# 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.ServiceCatalog.Types.ShareStatus
-- 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.ServiceCatalog.Types.ShareStatus
  ( ShareStatus
      ( ..,
        ShareStatus_COMPLETED,
        ShareStatus_COMPLETED_WITH_ERRORS,
        ShareStatus_ERROR,
        ShareStatus_IN_PROGRESS,
        ShareStatus_NOT_STARTED
      ),
  )
where

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

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

pattern ShareStatus_COMPLETED :: ShareStatus
pattern $bShareStatus_COMPLETED :: ShareStatus
$mShareStatus_COMPLETED :: forall {r}. ShareStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ShareStatus_COMPLETED = ShareStatus' "COMPLETED"

pattern ShareStatus_COMPLETED_WITH_ERRORS :: ShareStatus
pattern $bShareStatus_COMPLETED_WITH_ERRORS :: ShareStatus
$mShareStatus_COMPLETED_WITH_ERRORS :: forall {r}. ShareStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ShareStatus_COMPLETED_WITH_ERRORS = ShareStatus' "COMPLETED_WITH_ERRORS"

pattern ShareStatus_ERROR :: ShareStatus
pattern $bShareStatus_ERROR :: ShareStatus
$mShareStatus_ERROR :: forall {r}. ShareStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ShareStatus_ERROR = ShareStatus' "ERROR"

pattern ShareStatus_IN_PROGRESS :: ShareStatus
pattern $bShareStatus_IN_PROGRESS :: ShareStatus
$mShareStatus_IN_PROGRESS :: forall {r}. ShareStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ShareStatus_IN_PROGRESS = ShareStatus' "IN_PROGRESS"

pattern ShareStatus_NOT_STARTED :: ShareStatus
pattern $bShareStatus_NOT_STARTED :: ShareStatus
$mShareStatus_NOT_STARTED :: forall {r}. ShareStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ShareStatus_NOT_STARTED = ShareStatus' "NOT_STARTED"

{-# COMPLETE
  ShareStatus_COMPLETED,
  ShareStatus_COMPLETED_WITH_ERRORS,
  ShareStatus_ERROR,
  ShareStatus_IN_PROGRESS,
  ShareStatus_NOT_STARTED,
  ShareStatus'
  #-}