{-# 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.DevOpsGuru.Types.OptInStatus
-- 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.DevOpsGuru.Types.OptInStatus
  ( OptInStatus
      ( ..,
        OptInStatus_DISABLED,
        OptInStatus_ENABLED
      ),
  )
where

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

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

pattern OptInStatus_DISABLED :: OptInStatus
pattern $bOptInStatus_DISABLED :: OptInStatus
$mOptInStatus_DISABLED :: forall r. OptInStatus -> (Void# -> r) -> (Void# -> r) -> r
OptInStatus_DISABLED = OptInStatus' "DISABLED"

pattern OptInStatus_ENABLED :: OptInStatus
pattern $bOptInStatus_ENABLED :: OptInStatus
$mOptInStatus_ENABLED :: forall r. OptInStatus -> (Void# -> r) -> (Void# -> r) -> r
OptInStatus_ENABLED = OptInStatus' "ENABLED"

{-# COMPLETE
  OptInStatus_DISABLED,
  OptInStatus_ENABLED,
  OptInStatus'
  #-}