{-# 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.AlexaBusiness.Types.Feature
-- 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.AlexaBusiness.Types.Feature
  ( Feature
      ( ..,
        Feature_ALL,
        Feature_BLUETOOTH,
        Feature_LISTS,
        Feature_NETWORK_PROFILE,
        Feature_NOTIFICATIONS,
        Feature_SETTINGS,
        Feature_SKILLS,
        Feature_VOLUME
      ),
  )
where

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

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

pattern Feature_ALL :: Feature
pattern $bFeature_ALL :: Feature
$mFeature_ALL :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_ALL = Feature' "ALL"

pattern Feature_BLUETOOTH :: Feature
pattern $bFeature_BLUETOOTH :: Feature
$mFeature_BLUETOOTH :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_BLUETOOTH = Feature' "BLUETOOTH"

pattern Feature_LISTS :: Feature
pattern $bFeature_LISTS :: Feature
$mFeature_LISTS :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_LISTS = Feature' "LISTS"

pattern Feature_NETWORK_PROFILE :: Feature
pattern $bFeature_NETWORK_PROFILE :: Feature
$mFeature_NETWORK_PROFILE :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_NETWORK_PROFILE = Feature' "NETWORK_PROFILE"

pattern Feature_NOTIFICATIONS :: Feature
pattern $bFeature_NOTIFICATIONS :: Feature
$mFeature_NOTIFICATIONS :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_NOTIFICATIONS = Feature' "NOTIFICATIONS"

pattern Feature_SETTINGS :: Feature
pattern $bFeature_SETTINGS :: Feature
$mFeature_SETTINGS :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_SETTINGS = Feature' "SETTINGS"

pattern Feature_SKILLS :: Feature
pattern $bFeature_SKILLS :: Feature
$mFeature_SKILLS :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_SKILLS = Feature' "SKILLS"

pattern Feature_VOLUME :: Feature
pattern $bFeature_VOLUME :: Feature
$mFeature_VOLUME :: forall r. Feature -> (Void# -> r) -> (Void# -> r) -> r
Feature_VOLUME = Feature' "VOLUME"

{-# COMPLETE
  Feature_ALL,
  Feature_BLUETOOTH,
  Feature_LISTS,
  Feature_NETWORK_PROFILE,
  Feature_NOTIFICATIONS,
  Feature_SETTINGS,
  Feature_SKILLS,
  Feature_VOLUME,
  Feature'
  #-}