module Stratosphere.IoTFleetWise.DecoderManifest.NetworkInterfacesItemsProperty (
module Exports, NetworkInterfacesItemsProperty(..),
mkNetworkInterfacesItemsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTFleetWise.DecoderManifest.CanInterfaceProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTFleetWise.DecoderManifest.CustomDecodingInterfaceProperty as Exports
import {-# SOURCE #-} Stratosphere.IoTFleetWise.DecoderManifest.ObdInterfaceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NetworkInterfacesItemsProperty
=
NetworkInterfacesItemsProperty {NetworkInterfacesItemsProperty -> ()
haddock_workaround_ :: (),
NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
canInterface :: (Prelude.Maybe CanInterfaceProperty),
NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
customDecodingInterface :: (Prelude.Maybe CustomDecodingInterfaceProperty),
NetworkInterfacesItemsProperty -> Value Text
interfaceId :: (Value Prelude.Text),
NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
obdInterface :: (Prelude.Maybe ObdInterfaceProperty),
NetworkInterfacesItemsProperty -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> Bool
(NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> Bool)
-> (NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> Bool)
-> Eq NetworkInterfacesItemsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> Bool
== :: NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> Bool
$c/= :: NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> Bool
/= :: NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> Bool
Prelude.Eq, Int -> NetworkInterfacesItemsProperty -> ShowS
[NetworkInterfacesItemsProperty] -> ShowS
NetworkInterfacesItemsProperty -> String
(Int -> NetworkInterfacesItemsProperty -> ShowS)
-> (NetworkInterfacesItemsProperty -> String)
-> ([NetworkInterfacesItemsProperty] -> ShowS)
-> Show NetworkInterfacesItemsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NetworkInterfacesItemsProperty -> ShowS
showsPrec :: Int -> NetworkInterfacesItemsProperty -> ShowS
$cshow :: NetworkInterfacesItemsProperty -> String
show :: NetworkInterfacesItemsProperty -> String
$cshowList :: [NetworkInterfacesItemsProperty] -> ShowS
showList :: [NetworkInterfacesItemsProperty] -> ShowS
Prelude.Show)
mkNetworkInterfacesItemsProperty ::
Value Prelude.Text
-> Value Prelude.Text -> NetworkInterfacesItemsProperty
mkNetworkInterfacesItemsProperty :: Value Text -> Value Text -> NetworkInterfacesItemsProperty
mkNetworkInterfacesItemsProperty Value Text
interfaceId Value Text
type'
= NetworkInterfacesItemsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), interfaceId :: Value Text
interfaceId = Value Text
interfaceId,
type' :: Value Text
type' = Value Text
type', canInterface :: Maybe CanInterfaceProperty
canInterface = Maybe CanInterfaceProperty
forall a. Maybe a
Prelude.Nothing,
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
customDecodingInterface = Maybe CustomDecodingInterfaceProperty
forall a. Maybe a
Prelude.Nothing,
obdInterface :: Maybe ObdInterfaceProperty
obdInterface = Maybe ObdInterfaceProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NetworkInterfacesItemsProperty where
toResourceProperties :: NetworkInterfacesItemsProperty -> ResourceProperties
toResourceProperties NetworkInterfacesItemsProperty {Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: NetworkInterfacesItemsProperty -> ()
canInterface :: NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
customDecodingInterface :: NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
interfaceId :: NetworkInterfacesItemsProperty -> Value Text
obdInterface :: NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
type' :: NetworkInterfacesItemsProperty -> Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTFleetWise::DecoderManifest.NetworkInterfacesItems",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"InterfaceId" 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
interfaceId, Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CanInterfaceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CanInterface" (CanInterfaceProperty -> (Key, Value))
-> Maybe CanInterfaceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CanInterfaceProperty
canInterface,
Key -> CustomDecodingInterfaceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomDecodingInterface"
(CustomDecodingInterfaceProperty -> (Key, Value))
-> Maybe CustomDecodingInterfaceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomDecodingInterfaceProperty
customDecodingInterface,
Key -> ObdInterfaceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ObdInterface" (ObdInterfaceProperty -> (Key, Value))
-> Maybe ObdInterfaceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObdInterfaceProperty
obdInterface]))}
instance JSON.ToJSON NetworkInterfacesItemsProperty where
toJSON :: NetworkInterfacesItemsProperty -> Value
toJSON NetworkInterfacesItemsProperty {Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: NetworkInterfacesItemsProperty -> ()
canInterface :: NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
customDecodingInterface :: NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
interfaceId :: NetworkInterfacesItemsProperty -> Value Text
obdInterface :: NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
type' :: NetworkInterfacesItemsProperty -> Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"InterfaceId" 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
interfaceId, Key
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> CanInterfaceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CanInterface" (CanInterfaceProperty -> (Key, Value))
-> Maybe CanInterfaceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CanInterfaceProperty
canInterface,
Key -> CustomDecodingInterfaceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CustomDecodingInterface"
(CustomDecodingInterfaceProperty -> (Key, Value))
-> Maybe CustomDecodingInterfaceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CustomDecodingInterfaceProperty
customDecodingInterface,
Key -> ObdInterfaceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ObdInterface" (ObdInterfaceProperty -> (Key, Value))
-> Maybe ObdInterfaceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ObdInterfaceProperty
obdInterface])))
instance Property "CanInterface" NetworkInterfacesItemsProperty where
type PropertyType "CanInterface" NetworkInterfacesItemsProperty = CanInterfaceProperty
set :: PropertyType "CanInterface" NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> NetworkInterfacesItemsProperty
set PropertyType "CanInterface" NetworkInterfacesItemsProperty
newValue NetworkInterfacesItemsProperty {Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: NetworkInterfacesItemsProperty -> ()
canInterface :: NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
customDecodingInterface :: NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
interfaceId :: NetworkInterfacesItemsProperty -> Value Text
obdInterface :: NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
type' :: NetworkInterfacesItemsProperty -> Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
= NetworkInterfacesItemsProperty
{canInterface :: Maybe CanInterfaceProperty
canInterface = CanInterfaceProperty -> Maybe CanInterfaceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CanInterface" NetworkInterfacesItemsProperty
CanInterfaceProperty
newValue, Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: ()
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
haddock_workaround_ :: ()
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
instance Property "CustomDecodingInterface" NetworkInterfacesItemsProperty where
type PropertyType "CustomDecodingInterface" NetworkInterfacesItemsProperty = CustomDecodingInterfaceProperty
set :: PropertyType
"CustomDecodingInterface" NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> NetworkInterfacesItemsProperty
set PropertyType
"CustomDecodingInterface" NetworkInterfacesItemsProperty
newValue NetworkInterfacesItemsProperty {Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: NetworkInterfacesItemsProperty -> ()
canInterface :: NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
customDecodingInterface :: NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
interfaceId :: NetworkInterfacesItemsProperty -> Value Text
obdInterface :: NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
type' :: NetworkInterfacesItemsProperty -> Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
= NetworkInterfacesItemsProperty
{customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
customDecodingInterface = CustomDecodingInterfaceProperty
-> Maybe CustomDecodingInterfaceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CustomDecodingInterface" NetworkInterfacesItemsProperty
CustomDecodingInterfaceProperty
newValue, Maybe CanInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
instance Property "InterfaceId" NetworkInterfacesItemsProperty where
type PropertyType "InterfaceId" NetworkInterfacesItemsProperty = Value Prelude.Text
set :: PropertyType "InterfaceId" NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> NetworkInterfacesItemsProperty
set PropertyType "InterfaceId" NetworkInterfacesItemsProperty
newValue NetworkInterfacesItemsProperty {Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: NetworkInterfacesItemsProperty -> ()
canInterface :: NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
customDecodingInterface :: NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
interfaceId :: NetworkInterfacesItemsProperty -> Value Text
obdInterface :: NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
type' :: NetworkInterfacesItemsProperty -> Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
= NetworkInterfacesItemsProperty {interfaceId :: Value Text
interfaceId = PropertyType "InterfaceId" NetworkInterfacesItemsProperty
Value Text
newValue, Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
instance Property "ObdInterface" NetworkInterfacesItemsProperty where
type PropertyType "ObdInterface" NetworkInterfacesItemsProperty = ObdInterfaceProperty
set :: PropertyType "ObdInterface" NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> NetworkInterfacesItemsProperty
set PropertyType "ObdInterface" NetworkInterfacesItemsProperty
newValue NetworkInterfacesItemsProperty {Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: NetworkInterfacesItemsProperty -> ()
canInterface :: NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
customDecodingInterface :: NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
interfaceId :: NetworkInterfacesItemsProperty -> Value Text
obdInterface :: NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
type' :: NetworkInterfacesItemsProperty -> Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
= NetworkInterfacesItemsProperty
{obdInterface :: Maybe ObdInterfaceProperty
obdInterface = ObdInterfaceProperty -> Maybe ObdInterfaceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ObdInterface" NetworkInterfacesItemsProperty
ObdInterfaceProperty
newValue, Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
()
Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
type' :: Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
type' :: Value Text
..}
instance Property "Type" NetworkInterfacesItemsProperty where
type PropertyType "Type" NetworkInterfacesItemsProperty = Value Prelude.Text
set :: PropertyType "Type" NetworkInterfacesItemsProperty
-> NetworkInterfacesItemsProperty -> NetworkInterfacesItemsProperty
set PropertyType "Type" NetworkInterfacesItemsProperty
newValue NetworkInterfacesItemsProperty {Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: NetworkInterfacesItemsProperty -> ()
canInterface :: NetworkInterfacesItemsProperty -> Maybe CanInterfaceProperty
customDecodingInterface :: NetworkInterfacesItemsProperty
-> Maybe CustomDecodingInterfaceProperty
interfaceId :: NetworkInterfacesItemsProperty -> Value Text
obdInterface :: NetworkInterfacesItemsProperty -> Maybe ObdInterfaceProperty
type' :: NetworkInterfacesItemsProperty -> Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
type' :: Value Text
..}
= NetworkInterfacesItemsProperty {type' :: Value Text
type' = PropertyType "Type" NetworkInterfacesItemsProperty
Value Text
newValue, Maybe CanInterfaceProperty
Maybe CustomDecodingInterfaceProperty
Maybe ObdInterfaceProperty
()
Value Text
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
haddock_workaround_ :: ()
canInterface :: Maybe CanInterfaceProperty
customDecodingInterface :: Maybe CustomDecodingInterfaceProperty
interfaceId :: Value Text
obdInterface :: Maybe ObdInterfaceProperty
..}