{-# 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.GuardDuty.Types.PublishingStatus
-- 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.GuardDuty.Types.PublishingStatus
  ( PublishingStatus
      ( ..,
        PublishingStatus_PENDING_VERIFICATION,
        PublishingStatus_PUBLISHING,
        PublishingStatus_STOPPED,
        PublishingStatus_UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY
      ),
  )
where

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

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

pattern PublishingStatus_PENDING_VERIFICATION :: PublishingStatus
pattern $bPublishingStatus_PENDING_VERIFICATION :: PublishingStatus
$mPublishingStatus_PENDING_VERIFICATION :: forall r. PublishingStatus -> (Void# -> r) -> (Void# -> r) -> r
PublishingStatus_PENDING_VERIFICATION = PublishingStatus' "PENDING_VERIFICATION"

pattern PublishingStatus_PUBLISHING :: PublishingStatus
pattern $bPublishingStatus_PUBLISHING :: PublishingStatus
$mPublishingStatus_PUBLISHING :: forall r. PublishingStatus -> (Void# -> r) -> (Void# -> r) -> r
PublishingStatus_PUBLISHING = PublishingStatus' "PUBLISHING"

pattern PublishingStatus_STOPPED :: PublishingStatus
pattern $bPublishingStatus_STOPPED :: PublishingStatus
$mPublishingStatus_STOPPED :: forall r. PublishingStatus -> (Void# -> r) -> (Void# -> r) -> r
PublishingStatus_STOPPED = PublishingStatus' "STOPPED"

pattern PublishingStatus_UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY :: PublishingStatus
pattern $bPublishingStatus_UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY :: PublishingStatus
$mPublishingStatus_UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY :: forall r. PublishingStatus -> (Void# -> r) -> (Void# -> r) -> r
PublishingStatus_UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY = PublishingStatus' "UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY"

{-# COMPLETE
  PublishingStatus_PENDING_VERIFICATION,
  PublishingStatus_PUBLISHING,
  PublishingStatus_STOPPED,
  PublishingStatus_UNABLE_TO_PUBLISH_FIX_DESTINATION_PROPERTY,
  PublishingStatus'
  #-}