module Stratosphere.IoTWireless.PartnerAccount.SidewalkAccountInfoWithFingerprintProperty (
        SidewalkAccountInfoWithFingerprintProperty(..),
        mkSidewalkAccountInfoWithFingerprintProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SidewalkAccountInfoWithFingerprintProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-partneraccount-sidewalkaccountinfowithfingerprint.html>
    SidewalkAccountInfoWithFingerprintProperty {SidewalkAccountInfoWithFingerprintProperty -> ()
haddock_workaround_ :: (),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-partneraccount-sidewalkaccountinfowithfingerprint.html#cfn-iotwireless-partneraccount-sidewalkaccountinfowithfingerprint-amazonid>
                                                SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
amazonId :: (Prelude.Maybe (Value Prelude.Text)),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-partneraccount-sidewalkaccountinfowithfingerprint.html#cfn-iotwireless-partneraccount-sidewalkaccountinfowithfingerprint-arn>
                                                SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
arn :: (Prelude.Maybe (Value Prelude.Text)),
                                                -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-partneraccount-sidewalkaccountinfowithfingerprint.html#cfn-iotwireless-partneraccount-sidewalkaccountinfowithfingerprint-fingerprint>
                                                SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
fingerprint :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty -> Bool
(SidewalkAccountInfoWithFingerprintProperty
 -> SidewalkAccountInfoWithFingerprintProperty -> Bool)
-> (SidewalkAccountInfoWithFingerprintProperty
    -> SidewalkAccountInfoWithFingerprintProperty -> Bool)
-> Eq SidewalkAccountInfoWithFingerprintProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty -> Bool
== :: SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty -> Bool
$c/= :: SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty -> Bool
/= :: SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty -> Bool
Prelude.Eq, Int -> SidewalkAccountInfoWithFingerprintProperty -> ShowS
[SidewalkAccountInfoWithFingerprintProperty] -> ShowS
SidewalkAccountInfoWithFingerprintProperty -> String
(Int -> SidewalkAccountInfoWithFingerprintProperty -> ShowS)
-> (SidewalkAccountInfoWithFingerprintProperty -> String)
-> ([SidewalkAccountInfoWithFingerprintProperty] -> ShowS)
-> Show SidewalkAccountInfoWithFingerprintProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SidewalkAccountInfoWithFingerprintProperty -> ShowS
showsPrec :: Int -> SidewalkAccountInfoWithFingerprintProperty -> ShowS
$cshow :: SidewalkAccountInfoWithFingerprintProperty -> String
show :: SidewalkAccountInfoWithFingerprintProperty -> String
$cshowList :: [SidewalkAccountInfoWithFingerprintProperty] -> ShowS
showList :: [SidewalkAccountInfoWithFingerprintProperty] -> ShowS
Prelude.Show)
mkSidewalkAccountInfoWithFingerprintProperty ::
  SidewalkAccountInfoWithFingerprintProperty
mkSidewalkAccountInfoWithFingerprintProperty :: SidewalkAccountInfoWithFingerprintProperty
mkSidewalkAccountInfoWithFingerprintProperty
  = SidewalkAccountInfoWithFingerprintProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), amazonId :: Maybe (Value Text)
amazonId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       arn :: Maybe (Value Text)
arn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, fingerprint :: Maybe (Value Text)
fingerprint = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SidewalkAccountInfoWithFingerprintProperty where
  toResourceProperties :: SidewalkAccountInfoWithFingerprintProperty -> ResourceProperties
toResourceProperties
    SidewalkAccountInfoWithFingerprintProperty {Maybe (Value Text)
()
haddock_workaround_ :: SidewalkAccountInfoWithFingerprintProperty -> ()
amazonId :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
arn :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
fingerprint :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
arn :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTWireless::PartnerAccount.SidewalkAccountInfoWithFingerprint",
         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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AmazonId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
amazonId,
                            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..=) Key
"Arn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
arn,
                            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..=) Key
"Fingerprint" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
fingerprint])}
instance JSON.ToJSON SidewalkAccountInfoWithFingerprintProperty where
  toJSON :: SidewalkAccountInfoWithFingerprintProperty -> Value
toJSON SidewalkAccountInfoWithFingerprintProperty {Maybe (Value Text)
()
haddock_workaround_ :: SidewalkAccountInfoWithFingerprintProperty -> ()
amazonId :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
arn :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
fingerprint :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
arn :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
..}
    = [(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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AmazonId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
amazonId,
               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..=) Key
"Arn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
arn,
               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..=) Key
"Fingerprint" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
fingerprint]))
instance Property "AmazonId" SidewalkAccountInfoWithFingerprintProperty where
  type PropertyType "AmazonId" SidewalkAccountInfoWithFingerprintProperty = Value Prelude.Text
  set :: PropertyType "AmazonId" SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty
set PropertyType "AmazonId" SidewalkAccountInfoWithFingerprintProperty
newValue SidewalkAccountInfoWithFingerprintProperty {Maybe (Value Text)
()
haddock_workaround_ :: SidewalkAccountInfoWithFingerprintProperty -> ()
amazonId :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
arn :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
fingerprint :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
arn :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
..}
    = SidewalkAccountInfoWithFingerprintProperty
        {amazonId :: Maybe (Value Text)
amazonId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AmazonId" SidewalkAccountInfoWithFingerprintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
haddock_workaround_ :: ()
arn :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
..}
instance Property "Arn" SidewalkAccountInfoWithFingerprintProperty where
  type PropertyType "Arn" SidewalkAccountInfoWithFingerprintProperty = Value Prelude.Text
  set :: PropertyType "Arn" SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty
set PropertyType "Arn" SidewalkAccountInfoWithFingerprintProperty
newValue SidewalkAccountInfoWithFingerprintProperty {Maybe (Value Text)
()
haddock_workaround_ :: SidewalkAccountInfoWithFingerprintProperty -> ()
amazonId :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
arn :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
fingerprint :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
arn :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
..}
    = SidewalkAccountInfoWithFingerprintProperty
        {arn :: Maybe (Value Text)
arn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Arn" SidewalkAccountInfoWithFingerprintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
..}
instance Property "Fingerprint" SidewalkAccountInfoWithFingerprintProperty where
  type PropertyType "Fingerprint" SidewalkAccountInfoWithFingerprintProperty = Value Prelude.Text
  set :: PropertyType
  "Fingerprint" SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty
-> SidewalkAccountInfoWithFingerprintProperty
set PropertyType
  "Fingerprint" SidewalkAccountInfoWithFingerprintProperty
newValue SidewalkAccountInfoWithFingerprintProperty {Maybe (Value Text)
()
haddock_workaround_ :: SidewalkAccountInfoWithFingerprintProperty -> ()
amazonId :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
arn :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
fingerprint :: SidewalkAccountInfoWithFingerprintProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
arn :: Maybe (Value Text)
fingerprint :: Maybe (Value Text)
..}
    = SidewalkAccountInfoWithFingerprintProperty
        {fingerprint :: Maybe (Value Text)
fingerprint = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "Fingerprint" SidewalkAccountInfoWithFingerprintProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
arn :: Maybe (Value Text)
haddock_workaround_ :: ()
amazonId :: Maybe (Value Text)
arn :: Maybe (Value Text)
..}