module Stratosphere.IoTFleetWise.DecoderManifest.CustomDecodingInterfaceProperty (
        CustomDecodingInterfaceProperty(..),
        mkCustomDecodingInterfaceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomDecodingInterfaceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-customdecodinginterface.html>
    CustomDecodingInterfaceProperty {CustomDecodingInterfaceProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotfleetwise-decodermanifest-customdecodinginterface.html#cfn-iotfleetwise-decodermanifest-customdecodinginterface-name>
                                     CustomDecodingInterfaceProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (CustomDecodingInterfaceProperty
-> CustomDecodingInterfaceProperty -> Bool
(CustomDecodingInterfaceProperty
 -> CustomDecodingInterfaceProperty -> Bool)
-> (CustomDecodingInterfaceProperty
    -> CustomDecodingInterfaceProperty -> Bool)
-> Eq CustomDecodingInterfaceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomDecodingInterfaceProperty
-> CustomDecodingInterfaceProperty -> Bool
== :: CustomDecodingInterfaceProperty
-> CustomDecodingInterfaceProperty -> Bool
$c/= :: CustomDecodingInterfaceProperty
-> CustomDecodingInterfaceProperty -> Bool
/= :: CustomDecodingInterfaceProperty
-> CustomDecodingInterfaceProperty -> Bool
Prelude.Eq, Int -> CustomDecodingInterfaceProperty -> ShowS
[CustomDecodingInterfaceProperty] -> ShowS
CustomDecodingInterfaceProperty -> String
(Int -> CustomDecodingInterfaceProperty -> ShowS)
-> (CustomDecodingInterfaceProperty -> String)
-> ([CustomDecodingInterfaceProperty] -> ShowS)
-> Show CustomDecodingInterfaceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomDecodingInterfaceProperty -> ShowS
showsPrec :: Int -> CustomDecodingInterfaceProperty -> ShowS
$cshow :: CustomDecodingInterfaceProperty -> String
show :: CustomDecodingInterfaceProperty -> String
$cshowList :: [CustomDecodingInterfaceProperty] -> ShowS
showList :: [CustomDecodingInterfaceProperty] -> ShowS
Prelude.Show)
mkCustomDecodingInterfaceProperty ::
  Value Prelude.Text -> CustomDecodingInterfaceProperty
mkCustomDecodingInterfaceProperty :: Value Text -> CustomDecodingInterfaceProperty
mkCustomDecodingInterfaceProperty Value Text
name
  = CustomDecodingInterfaceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties CustomDecodingInterfaceProperty where
  toResourceProperties :: CustomDecodingInterfaceProperty -> ResourceProperties
toResourceProperties CustomDecodingInterfaceProperty {()
Value Text
haddock_workaround_ :: CustomDecodingInterfaceProperty -> ()
name :: CustomDecodingInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTFleetWise::DecoderManifest.CustomDecodingInterface",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]}
instance JSON.ToJSON CustomDecodingInterfaceProperty where
  toJSON :: CustomDecodingInterfaceProperty -> Value
toJSON CustomDecodingInterfaceProperty {()
Value Text
haddock_workaround_ :: CustomDecodingInterfaceProperty -> ()
name :: CustomDecodingInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Name" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
name]
instance Property "Name" CustomDecodingInterfaceProperty where
  type PropertyType "Name" CustomDecodingInterfaceProperty = Value Prelude.Text
  set :: PropertyType "Name" CustomDecodingInterfaceProperty
-> CustomDecodingInterfaceProperty
-> CustomDecodingInterfaceProperty
set PropertyType "Name" CustomDecodingInterfaceProperty
newValue CustomDecodingInterfaceProperty {()
Value Text
haddock_workaround_ :: CustomDecodingInterfaceProperty -> ()
name :: CustomDecodingInterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = CustomDecodingInterfaceProperty {name :: Value Text
name = PropertyType "Name" CustomDecodingInterfaceProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}