{-# 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.LexModels.Types.SlotValueSelectionStrategy
-- 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.LexModels.Types.SlotValueSelectionStrategy
  ( SlotValueSelectionStrategy
      ( ..,
        SlotValueSelectionStrategy_ORIGINAL_VALUE,
        SlotValueSelectionStrategy_TOP_RESOLUTION
      ),
  )
where

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

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

pattern SlotValueSelectionStrategy_ORIGINAL_VALUE :: SlotValueSelectionStrategy
pattern $bSlotValueSelectionStrategy_ORIGINAL_VALUE :: SlotValueSelectionStrategy
$mSlotValueSelectionStrategy_ORIGINAL_VALUE :: forall r.
SlotValueSelectionStrategy -> (Void# -> r) -> (Void# -> r) -> r
SlotValueSelectionStrategy_ORIGINAL_VALUE = SlotValueSelectionStrategy' "ORIGINAL_VALUE"

pattern SlotValueSelectionStrategy_TOP_RESOLUTION :: SlotValueSelectionStrategy
pattern $bSlotValueSelectionStrategy_TOP_RESOLUTION :: SlotValueSelectionStrategy
$mSlotValueSelectionStrategy_TOP_RESOLUTION :: forall r.
SlotValueSelectionStrategy -> (Void# -> r) -> (Void# -> r) -> r
SlotValueSelectionStrategy_TOP_RESOLUTION = SlotValueSelectionStrategy' "TOP_RESOLUTION"

{-# COMPLETE
  SlotValueSelectionStrategy_ORIGINAL_VALUE,
  SlotValueSelectionStrategy_TOP_RESOLUTION,
  SlotValueSelectionStrategy'
  #-}