{-# 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.IoTFleetWise.Types.VehicleAssociationBehavior
-- 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.IoTFleetWise.Types.VehicleAssociationBehavior
  ( VehicleAssociationBehavior
      ( ..,
        VehicleAssociationBehavior_CreateIotThing,
        VehicleAssociationBehavior_ValidateIotThingExists
      ),
  )
where

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

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

pattern VehicleAssociationBehavior_CreateIotThing :: VehicleAssociationBehavior
pattern $bVehicleAssociationBehavior_CreateIotThing :: VehicleAssociationBehavior
$mVehicleAssociationBehavior_CreateIotThing :: forall {r}.
VehicleAssociationBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
VehicleAssociationBehavior_CreateIotThing = VehicleAssociationBehavior' "CreateIotThing"

pattern VehicleAssociationBehavior_ValidateIotThingExists :: VehicleAssociationBehavior
pattern $bVehicleAssociationBehavior_ValidateIotThingExists :: VehicleAssociationBehavior
$mVehicleAssociationBehavior_ValidateIotThingExists :: forall {r}.
VehicleAssociationBehavior -> ((# #) -> r) -> ((# #) -> r) -> r
VehicleAssociationBehavior_ValidateIotThingExists = VehicleAssociationBehavior' "ValidateIotThingExists"

{-# COMPLETE
  VehicleAssociationBehavior_CreateIotThing,
  VehicleAssociationBehavior_ValidateIotThingExists,
  VehicleAssociationBehavior'
  #-}