module Stratosphere.GroundStation.DataflowEndpointGroup.ConnectionDetailsProperty (
module Exports, ConnectionDetailsProperty(..),
mkConnectionDetailsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GroundStation.DataflowEndpointGroup.SocketAddressProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConnectionDetailsProperty
=
ConnectionDetailsProperty {ConnectionDetailsProperty -> ()
haddock_workaround_ :: (),
ConnectionDetailsProperty -> Maybe (Value Integer)
mtu :: (Prelude.Maybe (Value Prelude.Integer)),
ConnectionDetailsProperty -> Maybe SocketAddressProperty
socketAddress :: (Prelude.Maybe SocketAddressProperty)}
deriving stock (ConnectionDetailsProperty -> ConnectionDetailsProperty -> Bool
(ConnectionDetailsProperty -> ConnectionDetailsProperty -> Bool)
-> (ConnectionDetailsProperty -> ConnectionDetailsProperty -> Bool)
-> Eq ConnectionDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConnectionDetailsProperty -> ConnectionDetailsProperty -> Bool
== :: ConnectionDetailsProperty -> ConnectionDetailsProperty -> Bool
$c/= :: ConnectionDetailsProperty -> ConnectionDetailsProperty -> Bool
/= :: ConnectionDetailsProperty -> ConnectionDetailsProperty -> Bool
Prelude.Eq, Int -> ConnectionDetailsProperty -> ShowS
[ConnectionDetailsProperty] -> ShowS
ConnectionDetailsProperty -> String
(Int -> ConnectionDetailsProperty -> ShowS)
-> (ConnectionDetailsProperty -> String)
-> ([ConnectionDetailsProperty] -> ShowS)
-> Show ConnectionDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConnectionDetailsProperty -> ShowS
showsPrec :: Int -> ConnectionDetailsProperty -> ShowS
$cshow :: ConnectionDetailsProperty -> String
show :: ConnectionDetailsProperty -> String
$cshowList :: [ConnectionDetailsProperty] -> ShowS
showList :: [ConnectionDetailsProperty] -> ShowS
Prelude.Show)
mkConnectionDetailsProperty :: ConnectionDetailsProperty
mkConnectionDetailsProperty :: ConnectionDetailsProperty
mkConnectionDetailsProperty
= ConnectionDetailsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), mtu :: Maybe (Value Integer)
mtu = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
socketAddress :: Maybe SocketAddressProperty
socketAddress = Maybe SocketAddressProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConnectionDetailsProperty where
toResourceProperties :: ConnectionDetailsProperty -> ResourceProperties
toResourceProperties ConnectionDetailsProperty {Maybe (Value Integer)
Maybe SocketAddressProperty
()
haddock_workaround_ :: ConnectionDetailsProperty -> ()
mtu :: ConnectionDetailsProperty -> Maybe (Value Integer)
socketAddress :: ConnectionDetailsProperty -> Maybe SocketAddressProperty
haddock_workaround_ :: ()
mtu :: Maybe (Value Integer)
socketAddress :: Maybe SocketAddressProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::GroundStation::DataflowEndpointGroup.ConnectionDetails",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Mtu" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
mtu,
Key -> SocketAddressProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SocketAddress" (SocketAddressProperty -> (Key, Value))
-> Maybe SocketAddressProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SocketAddressProperty
socketAddress])}
instance JSON.ToJSON ConnectionDetailsProperty where
toJSON :: ConnectionDetailsProperty -> Value
toJSON ConnectionDetailsProperty {Maybe (Value Integer)
Maybe SocketAddressProperty
()
haddock_workaround_ :: ConnectionDetailsProperty -> ()
mtu :: ConnectionDetailsProperty -> Maybe (Value Integer)
socketAddress :: ConnectionDetailsProperty -> Maybe SocketAddressProperty
haddock_workaround_ :: ()
mtu :: Maybe (Value Integer)
socketAddress :: Maybe SocketAddressProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Mtu" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
mtu,
Key -> SocketAddressProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SocketAddress" (SocketAddressProperty -> (Key, Value))
-> Maybe SocketAddressProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SocketAddressProperty
socketAddress]))
instance Property "Mtu" ConnectionDetailsProperty where
type PropertyType "Mtu" ConnectionDetailsProperty = Value Prelude.Integer
set :: PropertyType "Mtu" ConnectionDetailsProperty
-> ConnectionDetailsProperty -> ConnectionDetailsProperty
set PropertyType "Mtu" ConnectionDetailsProperty
newValue ConnectionDetailsProperty {Maybe (Value Integer)
Maybe SocketAddressProperty
()
haddock_workaround_ :: ConnectionDetailsProperty -> ()
mtu :: ConnectionDetailsProperty -> Maybe (Value Integer)
socketAddress :: ConnectionDetailsProperty -> Maybe SocketAddressProperty
haddock_workaround_ :: ()
mtu :: Maybe (Value Integer)
socketAddress :: Maybe SocketAddressProperty
..}
= ConnectionDetailsProperty {mtu :: Maybe (Value Integer)
mtu = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Mtu" ConnectionDetailsProperty
Value Integer
newValue, Maybe SocketAddressProperty
()
haddock_workaround_ :: ()
socketAddress :: Maybe SocketAddressProperty
haddock_workaround_ :: ()
socketAddress :: Maybe SocketAddressProperty
..}
instance Property "SocketAddress" ConnectionDetailsProperty where
type PropertyType "SocketAddress" ConnectionDetailsProperty = SocketAddressProperty
set :: PropertyType "SocketAddress" ConnectionDetailsProperty
-> ConnectionDetailsProperty -> ConnectionDetailsProperty
set PropertyType "SocketAddress" ConnectionDetailsProperty
newValue ConnectionDetailsProperty {Maybe (Value Integer)
Maybe SocketAddressProperty
()
haddock_workaround_ :: ConnectionDetailsProperty -> ()
mtu :: ConnectionDetailsProperty -> Maybe (Value Integer)
socketAddress :: ConnectionDetailsProperty -> Maybe SocketAddressProperty
haddock_workaround_ :: ()
mtu :: Maybe (Value Integer)
socketAddress :: Maybe SocketAddressProperty
..}
= ConnectionDetailsProperty
{socketAddress :: Maybe SocketAddressProperty
socketAddress = SocketAddressProperty -> Maybe SocketAddressProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SocketAddress" ConnectionDetailsProperty
SocketAddressProperty
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
mtu :: Maybe (Value Integer)
haddock_workaround_ :: ()
mtu :: Maybe (Value Integer)
..}