{-# 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.Lightsail.Types.TreatMissingData
-- 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.Lightsail.Types.TreatMissingData
  ( TreatMissingData
      ( ..,
        TreatMissingData_Breaching,
        TreatMissingData_Ignore,
        TreatMissingData_Missing,
        TreatMissingData_NotBreaching
      ),
  )
where

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

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

pattern TreatMissingData_Breaching :: TreatMissingData
pattern $bTreatMissingData_Breaching :: TreatMissingData
$mTreatMissingData_Breaching :: forall r. TreatMissingData -> (Void# -> r) -> (Void# -> r) -> r
TreatMissingData_Breaching = TreatMissingData' "breaching"

pattern TreatMissingData_Ignore :: TreatMissingData
pattern $bTreatMissingData_Ignore :: TreatMissingData
$mTreatMissingData_Ignore :: forall r. TreatMissingData -> (Void# -> r) -> (Void# -> r) -> r
TreatMissingData_Ignore = TreatMissingData' "ignore"

pattern TreatMissingData_Missing :: TreatMissingData
pattern $bTreatMissingData_Missing :: TreatMissingData
$mTreatMissingData_Missing :: forall r. TreatMissingData -> (Void# -> r) -> (Void# -> r) -> r
TreatMissingData_Missing = TreatMissingData' "missing"

pattern TreatMissingData_NotBreaching :: TreatMissingData
pattern $bTreatMissingData_NotBreaching :: TreatMissingData
$mTreatMissingData_NotBreaching :: forall r. TreatMissingData -> (Void# -> r) -> (Void# -> r) -> r
TreatMissingData_NotBreaching = TreatMissingData' "notBreaching"

{-# COMPLETE
  TreatMissingData_Breaching,
  TreatMissingData_Ignore,
  TreatMissingData_Missing,
  TreatMissingData_NotBreaching,
  TreatMissingData'
  #-}