{-# 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.WellArchitected.Types.ChoiceStatus
-- 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.WellArchitected.Types.ChoiceStatus
  ( ChoiceStatus
      ( ..,
        ChoiceStatus_NOT_APPLICABLE,
        ChoiceStatus_SELECTED,
        ChoiceStatus_UNSELECTED
      ),
  )
where

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

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

pattern ChoiceStatus_NOT_APPLICABLE :: ChoiceStatus
pattern $bChoiceStatus_NOT_APPLICABLE :: ChoiceStatus
$mChoiceStatus_NOT_APPLICABLE :: forall {r}. ChoiceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ChoiceStatus_NOT_APPLICABLE = ChoiceStatus' "NOT_APPLICABLE"

pattern ChoiceStatus_SELECTED :: ChoiceStatus
pattern $bChoiceStatus_SELECTED :: ChoiceStatus
$mChoiceStatus_SELECTED :: forall {r}. ChoiceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ChoiceStatus_SELECTED = ChoiceStatus' "SELECTED"

pattern ChoiceStatus_UNSELECTED :: ChoiceStatus
pattern $bChoiceStatus_UNSELECTED :: ChoiceStatus
$mChoiceStatus_UNSELECTED :: forall {r}. ChoiceStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ChoiceStatus_UNSELECTED = ChoiceStatus' "UNSELECTED"

{-# COMPLETE
  ChoiceStatus_NOT_APPLICABLE,
  ChoiceStatus_SELECTED,
  ChoiceStatus_UNSELECTED,
  ChoiceStatus'
  #-}