{-# 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.DataSourceStatus
-- 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.DataSourceStatus
  ( DataSourceStatus
      ( ..,
        DataSourceStatus_DISABLED,
        DataSourceStatus_ENABLED
      ),
  )
where

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

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

pattern DataSourceStatus_DISABLED :: DataSourceStatus
pattern $bDataSourceStatus_DISABLED :: DataSourceStatus
$mDataSourceStatus_DISABLED :: forall r. DataSourceStatus -> (Void# -> r) -> (Void# -> r) -> r
DataSourceStatus_DISABLED = DataSourceStatus' "DISABLED"

pattern DataSourceStatus_ENABLED :: DataSourceStatus
pattern $bDataSourceStatus_ENABLED :: DataSourceStatus
$mDataSourceStatus_ENABLED :: forall r. DataSourceStatus -> (Void# -> r) -> (Void# -> r) -> r
DataSourceStatus_ENABLED = DataSourceStatus' "ENABLED"

{-# COMPLETE
  DataSourceStatus_DISABLED,
  DataSourceStatus_ENABLED,
  DataSourceStatus'
  #-}