{-# 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.Inspector2.Types.FixAvailable
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Inspector2.Types.FixAvailable
  ( FixAvailable
      ( ..,
        FixAvailable_NO,
        FixAvailable_PARTIAL,
        FixAvailable_YES
      ),
  )
where

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

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

pattern FixAvailable_NO :: FixAvailable
pattern $bFixAvailable_NO :: FixAvailable
$mFixAvailable_NO :: forall {r}. FixAvailable -> ((# #) -> r) -> ((# #) -> r) -> r
FixAvailable_NO = FixAvailable' "NO"

pattern FixAvailable_PARTIAL :: FixAvailable
pattern $bFixAvailable_PARTIAL :: FixAvailable
$mFixAvailable_PARTIAL :: forall {r}. FixAvailable -> ((# #) -> r) -> ((# #) -> r) -> r
FixAvailable_PARTIAL = FixAvailable' "PARTIAL"

pattern FixAvailable_YES :: FixAvailable
pattern $bFixAvailable_YES :: FixAvailable
$mFixAvailable_YES :: forall {r}. FixAvailable -> ((# #) -> r) -> ((# #) -> r) -> r
FixAvailable_YES = FixAvailable' "YES"

{-# COMPLETE
  FixAvailable_NO,
  FixAvailable_PARTIAL,
  FixAvailable_YES,
  FixAvailable'
  #-}