module Stratosphere.FraudDetector.Detector.OutcomeProperty ( OutcomeProperty(..), mkOutcomeProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Tag import Stratosphere.Value data OutcomeProperty = -- | See: OutcomeProperty {haddock_workaround_ :: (), -- | See: arn :: (Prelude.Maybe (Value Prelude.Text)), -- | See: createdTime :: (Prelude.Maybe (Value Prelude.Text)), -- | See: description :: (Prelude.Maybe (Value Prelude.Text)), -- | See: inline :: (Prelude.Maybe (Value Prelude.Bool)), -- | See: lastUpdatedTime :: (Prelude.Maybe (Value Prelude.Text)), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: tags :: (Prelude.Maybe [Tag])} deriving stock (Prelude.Eq, Prelude.Show) mkOutcomeProperty :: OutcomeProperty mkOutcomeProperty = OutcomeProperty {haddock_workaround_ = (), arn = Prelude.Nothing, createdTime = Prelude.Nothing, description = Prelude.Nothing, inline = Prelude.Nothing, lastUpdatedTime = Prelude.Nothing, name = Prelude.Nothing, tags = Prelude.Nothing} instance ToResourceProperties OutcomeProperty where toResourceProperties OutcomeProperty {..} = ResourceProperties {awsType = "AWS::FraudDetector::Detector.Outcome", supportsTags = Prelude.True, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Arn" Prelude.<$> arn, (JSON..=) "CreatedTime" Prelude.<$> createdTime, (JSON..=) "Description" Prelude.<$> description, (JSON..=) "Inline" Prelude.<$> inline, (JSON..=) "LastUpdatedTime" Prelude.<$> lastUpdatedTime, (JSON..=) "Name" Prelude.<$> name, (JSON..=) "Tags" Prelude.<$> tags])} instance JSON.ToJSON OutcomeProperty where toJSON OutcomeProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Arn" Prelude.<$> arn, (JSON..=) "CreatedTime" Prelude.<$> createdTime, (JSON..=) "Description" Prelude.<$> description, (JSON..=) "Inline" Prelude.<$> inline, (JSON..=) "LastUpdatedTime" Prelude.<$> lastUpdatedTime, (JSON..=) "Name" Prelude.<$> name, (JSON..=) "Tags" Prelude.<$> tags])) instance Property "Arn" OutcomeProperty where type PropertyType "Arn" OutcomeProperty = Value Prelude.Text set newValue OutcomeProperty {..} = OutcomeProperty {arn = Prelude.pure newValue, ..} instance Property "CreatedTime" OutcomeProperty where type PropertyType "CreatedTime" OutcomeProperty = Value Prelude.Text set newValue OutcomeProperty {..} = OutcomeProperty {createdTime = Prelude.pure newValue, ..} instance Property "Description" OutcomeProperty where type PropertyType "Description" OutcomeProperty = Value Prelude.Text set newValue OutcomeProperty {..} = OutcomeProperty {description = Prelude.pure newValue, ..} instance Property "Inline" OutcomeProperty where type PropertyType "Inline" OutcomeProperty = Value Prelude.Bool set newValue OutcomeProperty {..} = OutcomeProperty {inline = Prelude.pure newValue, ..} instance Property "LastUpdatedTime" OutcomeProperty where type PropertyType "LastUpdatedTime" OutcomeProperty = Value Prelude.Text set newValue OutcomeProperty {..} = OutcomeProperty {lastUpdatedTime = Prelude.pure newValue, ..} instance Property "Name" OutcomeProperty where type PropertyType "Name" OutcomeProperty = Value Prelude.Text set newValue OutcomeProperty {..} = OutcomeProperty {name = Prelude.pure newValue, ..} instance Property "Tags" OutcomeProperty where type PropertyType "Tags" OutcomeProperty = [Tag] set newValue OutcomeProperty {..} = OutcomeProperty {tags = Prelude.pure newValue, ..}