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

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

newtype ChoiceStatus = ChoiceStatus'
  { ChoiceStatus -> Text
fromChoiceStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ChoiceStatus -> ShowS
[ChoiceStatus] -> ShowS
ChoiceStatus -> String
(Int -> ChoiceStatus -> ShowS)
-> (ChoiceStatus -> String)
-> ([ChoiceStatus] -> ShowS)
-> Show ChoiceStatus
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]
(Int -> ReadS ChoiceStatus)
-> ReadS [ChoiceStatus]
-> ReadPrec ChoiceStatus
-> ReadPrec [ChoiceStatus]
-> Read 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
(ChoiceStatus -> ChoiceStatus -> Bool)
-> (ChoiceStatus -> ChoiceStatus -> Bool) -> Eq ChoiceStatus
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
Eq ChoiceStatus
-> (ChoiceStatus -> ChoiceStatus -> Ordering)
-> (ChoiceStatus -> ChoiceStatus -> Bool)
-> (ChoiceStatus -> ChoiceStatus -> Bool)
-> (ChoiceStatus -> ChoiceStatus -> Bool)
-> (ChoiceStatus -> ChoiceStatus -> Bool)
-> (ChoiceStatus -> ChoiceStatus -> ChoiceStatus)
-> (ChoiceStatus -> ChoiceStatus -> ChoiceStatus)
-> Ord 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
$cp1Ord :: Eq ChoiceStatus
Prelude.Ord,
      (forall x. ChoiceStatus -> Rep ChoiceStatus x)
-> (forall x. Rep ChoiceStatus x -> ChoiceStatus)
-> Generic ChoiceStatus
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
    ( Int -> ChoiceStatus -> Int
ChoiceStatus -> Int
(Int -> ChoiceStatus -> Int)
-> (ChoiceStatus -> Int) -> Hashable ChoiceStatus
forall 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 -> ()
(ChoiceStatus -> ()) -> NFData ChoiceStatus
forall a. (a -> ()) -> NFData a
rnf :: ChoiceStatus -> ()
$crnf :: ChoiceStatus -> ()
Prelude.NFData,
      Text -> Either String ChoiceStatus
(Text -> Either String ChoiceStatus) -> FromText ChoiceStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChoiceStatus
$cfromText :: Text -> Either String ChoiceStatus
Core.FromText,
      ChoiceStatus -> Text
(ChoiceStatus -> Text) -> ToText ChoiceStatus
forall a. (a -> Text) -> ToText a
toText :: ChoiceStatus -> Text
$ctoText :: ChoiceStatus -> Text
Core.ToText,
      ChoiceStatus -> ByteString
(ChoiceStatus -> ByteString) -> ToByteString ChoiceStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChoiceStatus -> ByteString
$ctoBS :: ChoiceStatus -> ByteString
Core.ToByteString,
      ChoiceStatus -> ByteStringBuilder
(ChoiceStatus -> ByteStringBuilder) -> ToLog ChoiceStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChoiceStatus -> ByteStringBuilder
$cbuild :: ChoiceStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ChoiceStatus -> [Header]
(HeaderName -> ChoiceStatus -> [Header]) -> ToHeader ChoiceStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChoiceStatus -> [Header]
$ctoHeader :: HeaderName -> ChoiceStatus -> [Header]
Core.ToHeader,
      ChoiceStatus -> QueryString
(ChoiceStatus -> QueryString) -> ToQuery ChoiceStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChoiceStatus -> QueryString
$ctoQuery :: ChoiceStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ChoiceStatus]
Value -> Parser ChoiceStatus
(Value -> Parser ChoiceStatus)
-> (Value -> Parser [ChoiceStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ChoiceStatus]
FromJSONKeyFunction ChoiceStatus
FromJSONKeyFunction ChoiceStatus
-> FromJSONKeyFunction [ChoiceStatus] -> FromJSONKey ChoiceStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChoiceStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ChoiceStatus]
fromJSONKey :: FromJSONKeyFunction ChoiceStatus
$cfromJSONKey :: FromJSONKeyFunction ChoiceStatus
Core.FromJSONKey,
      [ChoiceStatus] -> Encoding
[ChoiceStatus] -> Value
ChoiceStatus -> Encoding
ChoiceStatus -> Value
(ChoiceStatus -> Value)
-> (ChoiceStatus -> Encoding)
-> ([ChoiceStatus] -> Value)
-> ([ChoiceStatus] -> Encoding)
-> ToJSON ChoiceStatus
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
Core.ToJSON,
      ToJSONKeyFunction [ChoiceStatus]
ToJSONKeyFunction ChoiceStatus
ToJSONKeyFunction ChoiceStatus
-> ToJSONKeyFunction [ChoiceStatus] -> ToJSONKey ChoiceStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChoiceStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ChoiceStatus]
toJSONKey :: ToJSONKeyFunction ChoiceStatus
$ctoJSONKey :: ToJSONKeyFunction ChoiceStatus
Core.ToJSONKey,
      [Node] -> Either String ChoiceStatus
([Node] -> Either String ChoiceStatus) -> FromXML ChoiceStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChoiceStatus
$cparseXML :: [Node] -> Either String ChoiceStatus
Core.FromXML,
      ChoiceStatus -> XML
(ChoiceStatus -> XML) -> ToXML ChoiceStatus
forall a. (a -> XML) -> ToXML a
toXML :: ChoiceStatus -> XML
$ctoXML :: ChoiceStatus -> XML
Core.ToXML
    )

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

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

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

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