{-# 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.IoTWireless.Types.PartnerType
-- 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.IoTWireless.Types.PartnerType
  ( PartnerType
      ( ..,
        PartnerType_Sidewalk
      ),
  )
where

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

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

pattern PartnerType_Sidewalk :: PartnerType
pattern $bPartnerType_Sidewalk :: PartnerType
$mPartnerType_Sidewalk :: forall r. PartnerType -> (Void# -> r) -> (Void# -> r) -> r
PartnerType_Sidewalk = PartnerType' "Sidewalk"

{-# COMPLETE
  PartnerType_Sidewalk,
  PartnerType'
  #-}