module Stratosphere.KafkaConnect.CustomPlugin.CustomPluginFileDescriptionProperty (
        CustomPluginFileDescriptionProperty(..),
        mkCustomPluginFileDescriptionProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomPluginFileDescriptionProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kafkaconnect-customplugin-custompluginfiledescription.html>
    CustomPluginFileDescriptionProperty {CustomPluginFileDescriptionProperty -> ()
haddock_workaround_ :: (),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kafkaconnect-customplugin-custompluginfiledescription.html#cfn-kafkaconnect-customplugin-custompluginfiledescription-filemd5>
                                         CustomPluginFileDescriptionProperty -> Maybe (Value Text)
fileMd5 :: (Prelude.Maybe (Value Prelude.Text)),
                                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kafkaconnect-customplugin-custompluginfiledescription.html#cfn-kafkaconnect-customplugin-custompluginfiledescription-filesize>
                                         CustomPluginFileDescriptionProperty -> Maybe (Value Integer)
fileSize :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty -> Bool
(CustomPluginFileDescriptionProperty
 -> CustomPluginFileDescriptionProperty -> Bool)
-> (CustomPluginFileDescriptionProperty
    -> CustomPluginFileDescriptionProperty -> Bool)
-> Eq CustomPluginFileDescriptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty -> Bool
== :: CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty -> Bool
$c/= :: CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty -> Bool
/= :: CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty -> Bool
Prelude.Eq, Int -> CustomPluginFileDescriptionProperty -> ShowS
[CustomPluginFileDescriptionProperty] -> ShowS
CustomPluginFileDescriptionProperty -> String
(Int -> CustomPluginFileDescriptionProperty -> ShowS)
-> (CustomPluginFileDescriptionProperty -> String)
-> ([CustomPluginFileDescriptionProperty] -> ShowS)
-> Show CustomPluginFileDescriptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomPluginFileDescriptionProperty -> ShowS
showsPrec :: Int -> CustomPluginFileDescriptionProperty -> ShowS
$cshow :: CustomPluginFileDescriptionProperty -> String
show :: CustomPluginFileDescriptionProperty -> String
$cshowList :: [CustomPluginFileDescriptionProperty] -> ShowS
showList :: [CustomPluginFileDescriptionProperty] -> ShowS
Prelude.Show)
mkCustomPluginFileDescriptionProperty ::
  CustomPluginFileDescriptionProperty
mkCustomPluginFileDescriptionProperty :: CustomPluginFileDescriptionProperty
mkCustomPluginFileDescriptionProperty
  = CustomPluginFileDescriptionProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fileMd5 :: Maybe (Value Text)
fileMd5 = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       fileSize :: Maybe (Value Integer)
fileSize = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomPluginFileDescriptionProperty where
  toResourceProperties :: CustomPluginFileDescriptionProperty -> ResourceProperties
toResourceProperties CustomPluginFileDescriptionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomPluginFileDescriptionProperty -> ()
fileMd5 :: CustomPluginFileDescriptionProperty -> Maybe (Value Text)
fileSize :: CustomPluginFileDescriptionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
fileMd5 :: Maybe (Value Text)
fileSize :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KafkaConnect::CustomPlugin.CustomPluginFileDescription",
         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
"FileMd5" (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)
fileMd5,
                            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
"FileSize" (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)
fileSize])}
instance JSON.ToJSON CustomPluginFileDescriptionProperty where
  toJSON :: CustomPluginFileDescriptionProperty -> Value
toJSON CustomPluginFileDescriptionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomPluginFileDescriptionProperty -> ()
fileMd5 :: CustomPluginFileDescriptionProperty -> Maybe (Value Text)
fileSize :: CustomPluginFileDescriptionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
fileMd5 :: Maybe (Value Text)
fileSize :: Maybe (Value Integer)
..}
    = [(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
"FileMd5" (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)
fileMd5,
               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
"FileSize" (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)
fileSize]))
instance Property "FileMd5" CustomPluginFileDescriptionProperty where
  type PropertyType "FileMd5" CustomPluginFileDescriptionProperty = Value Prelude.Text
  set :: PropertyType "FileMd5" CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty
set PropertyType "FileMd5" CustomPluginFileDescriptionProperty
newValue CustomPluginFileDescriptionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomPluginFileDescriptionProperty -> ()
fileMd5 :: CustomPluginFileDescriptionProperty -> Maybe (Value Text)
fileSize :: CustomPluginFileDescriptionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
fileMd5 :: Maybe (Value Text)
fileSize :: Maybe (Value Integer)
..}
    = CustomPluginFileDescriptionProperty
        {fileMd5 :: Maybe (Value Text)
fileMd5 = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FileMd5" CustomPluginFileDescriptionProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
fileSize :: Maybe (Value Integer)
haddock_workaround_ :: ()
fileSize :: Maybe (Value Integer)
..}
instance Property "FileSize" CustomPluginFileDescriptionProperty where
  type PropertyType "FileSize" CustomPluginFileDescriptionProperty = Value Prelude.Integer
  set :: PropertyType "FileSize" CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty
-> CustomPluginFileDescriptionProperty
set PropertyType "FileSize" CustomPluginFileDescriptionProperty
newValue CustomPluginFileDescriptionProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: CustomPluginFileDescriptionProperty -> ()
fileMd5 :: CustomPluginFileDescriptionProperty -> Maybe (Value Text)
fileSize :: CustomPluginFileDescriptionProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
fileMd5 :: Maybe (Value Text)
fileSize :: Maybe (Value Integer)
..}
    = CustomPluginFileDescriptionProperty
        {fileSize :: Maybe (Value Integer)
fileSize = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FileSize" CustomPluginFileDescriptionProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
fileMd5 :: Maybe (Value Text)
haddock_workaround_ :: ()
fileMd5 :: Maybe (Value Text)
..}