module Stratosphere.Omics.Workflow.SourceReferenceProperty (
        SourceReferenceProperty(..), mkSourceReferenceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SourceReferenceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflow-sourcereference.html>
    SourceReferenceProperty {SourceReferenceProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflow-sourcereference.html#cfn-omics-workflow-sourcereference-type>
                             SourceReferenceProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-workflow-sourcereference.html#cfn-omics-workflow-sourcereference-value>
                             SourceReferenceProperty -> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (SourceReferenceProperty -> SourceReferenceProperty -> Bool
(SourceReferenceProperty -> SourceReferenceProperty -> Bool)
-> (SourceReferenceProperty -> SourceReferenceProperty -> Bool)
-> Eq SourceReferenceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SourceReferenceProperty -> SourceReferenceProperty -> Bool
== :: SourceReferenceProperty -> SourceReferenceProperty -> Bool
$c/= :: SourceReferenceProperty -> SourceReferenceProperty -> Bool
/= :: SourceReferenceProperty -> SourceReferenceProperty -> Bool
Prelude.Eq, Int -> SourceReferenceProperty -> ShowS
[SourceReferenceProperty] -> ShowS
SourceReferenceProperty -> String
(Int -> SourceReferenceProperty -> ShowS)
-> (SourceReferenceProperty -> String)
-> ([SourceReferenceProperty] -> ShowS)
-> Show SourceReferenceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SourceReferenceProperty -> ShowS
showsPrec :: Int -> SourceReferenceProperty -> ShowS
$cshow :: SourceReferenceProperty -> String
show :: SourceReferenceProperty -> String
$cshowList :: [SourceReferenceProperty] -> ShowS
showList :: [SourceReferenceProperty] -> ShowS
Prelude.Show)
mkSourceReferenceProperty :: SourceReferenceProperty
mkSourceReferenceProperty :: SourceReferenceProperty
mkSourceReferenceProperty
  = SourceReferenceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SourceReferenceProperty where
  toResourceProperties :: SourceReferenceProperty -> ResourceProperties
toResourceProperties SourceReferenceProperty {Maybe (Value Text)
()
haddock_workaround_ :: SourceReferenceProperty -> ()
type' :: SourceReferenceProperty -> Maybe (Value Text)
value :: SourceReferenceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Omics::Workflow.SourceReference",
         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
"type" (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)
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..=) Key
"value" (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)
value])}
instance JSON.ToJSON SourceReferenceProperty where
  toJSON :: SourceReferenceProperty -> Value
toJSON SourceReferenceProperty {Maybe (Value Text)
()
haddock_workaround_ :: SourceReferenceProperty -> ()
type' :: SourceReferenceProperty -> Maybe (Value Text)
value :: SourceReferenceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
value :: 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
"type" (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)
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..=) Key
"value" (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)
value]))
instance Property "type" SourceReferenceProperty where
  type PropertyType "type" SourceReferenceProperty = Value Prelude.Text
  set :: PropertyType "type" SourceReferenceProperty
-> SourceReferenceProperty -> SourceReferenceProperty
set PropertyType "type" SourceReferenceProperty
newValue SourceReferenceProperty {Maybe (Value Text)
()
haddock_workaround_ :: SourceReferenceProperty -> ()
type' :: SourceReferenceProperty -> Maybe (Value Text)
value :: SourceReferenceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = SourceReferenceProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "type" SourceReferenceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
value :: Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
instance Property "value" SourceReferenceProperty where
  type PropertyType "value" SourceReferenceProperty = Value Prelude.Text
  set :: PropertyType "value" SourceReferenceProperty
-> SourceReferenceProperty -> SourceReferenceProperty
set PropertyType "value" SourceReferenceProperty
newValue SourceReferenceProperty {Maybe (Value Text)
()
haddock_workaround_ :: SourceReferenceProperty -> ()
type' :: SourceReferenceProperty -> Maybe (Value Text)
value :: SourceReferenceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
value :: Maybe (Value Text)
..}
    = SourceReferenceProperty {value :: Maybe (Value Text)
value = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "value" SourceReferenceProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
type' :: Maybe (Value Text)
..}