{-# 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.SecurityHub.Types.StandardsStatus
-- 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.SecurityHub.Types.StandardsStatus
  ( StandardsStatus
      ( ..,
        StandardsStatus_DELETING,
        StandardsStatus_FAILED,
        StandardsStatus_INCOMPLETE,
        StandardsStatus_PENDING,
        StandardsStatus_READY
      ),
  )
where

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

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

pattern StandardsStatus_DELETING :: StandardsStatus
pattern $bStandardsStatus_DELETING :: StandardsStatus
$mStandardsStatus_DELETING :: forall r. StandardsStatus -> (Void# -> r) -> (Void# -> r) -> r
StandardsStatus_DELETING = StandardsStatus' "DELETING"

pattern StandardsStatus_FAILED :: StandardsStatus
pattern $bStandardsStatus_FAILED :: StandardsStatus
$mStandardsStatus_FAILED :: forall r. StandardsStatus -> (Void# -> r) -> (Void# -> r) -> r
StandardsStatus_FAILED = StandardsStatus' "FAILED"

pattern StandardsStatus_INCOMPLETE :: StandardsStatus
pattern $bStandardsStatus_INCOMPLETE :: StandardsStatus
$mStandardsStatus_INCOMPLETE :: forall r. StandardsStatus -> (Void# -> r) -> (Void# -> r) -> r
StandardsStatus_INCOMPLETE = StandardsStatus' "INCOMPLETE"

pattern StandardsStatus_PENDING :: StandardsStatus
pattern $bStandardsStatus_PENDING :: StandardsStatus
$mStandardsStatus_PENDING :: forall r. StandardsStatus -> (Void# -> r) -> (Void# -> r) -> r
StandardsStatus_PENDING = StandardsStatus' "PENDING"

pattern StandardsStatus_READY :: StandardsStatus
pattern $bStandardsStatus_READY :: StandardsStatus
$mStandardsStatus_READY :: forall r. StandardsStatus -> (Void# -> r) -> (Void# -> r) -> r
StandardsStatus_READY = StandardsStatus' "READY"

{-# COMPLETE
  StandardsStatus_DELETING,
  StandardsStatus_FAILED,
  StandardsStatus_INCOMPLETE,
  StandardsStatus_PENDING,
  StandardsStatus_READY,
  StandardsStatus'
  #-}