{-# 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.WellArchitected.Types.ShareStatus
-- 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.WellArchitected.Types.ShareStatus
  ( ShareStatus
      ( ..,
        ShareStatus_ACCEPTED,
        ShareStatus_EXPIRED,
        ShareStatus_PENDING,
        ShareStatus_REJECTED,
        ShareStatus_REVOKED
      ),
  )
where

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

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

pattern ShareStatus_ACCEPTED :: ShareStatus
pattern $bShareStatus_ACCEPTED :: ShareStatus
$mShareStatus_ACCEPTED :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_ACCEPTED = ShareStatus' "ACCEPTED"

pattern ShareStatus_EXPIRED :: ShareStatus
pattern $bShareStatus_EXPIRED :: ShareStatus
$mShareStatus_EXPIRED :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_EXPIRED = ShareStatus' "EXPIRED"

pattern ShareStatus_PENDING :: ShareStatus
pattern $bShareStatus_PENDING :: ShareStatus
$mShareStatus_PENDING :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_PENDING = ShareStatus' "PENDING"

pattern ShareStatus_REJECTED :: ShareStatus
pattern $bShareStatus_REJECTED :: ShareStatus
$mShareStatus_REJECTED :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_REJECTED = ShareStatus' "REJECTED"

pattern ShareStatus_REVOKED :: ShareStatus
pattern $bShareStatus_REVOKED :: ShareStatus
$mShareStatus_REVOKED :: forall r. ShareStatus -> (Void# -> r) -> (Void# -> r) -> r
ShareStatus_REVOKED = ShareStatus' "REVOKED"

{-# COMPLETE
  ShareStatus_ACCEPTED,
  ShareStatus_EXPIRED,
  ShareStatus_PENDING,
  ShareStatus_REJECTED,
  ShareStatus_REVOKED,
  ShareStatus'
  #-}