module Stratosphere.CustomerProfiles.Domain.AutoMergingProperty (
        module Exports, AutoMergingProperty(..), mkAutoMergingProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CustomerProfiles.Domain.ConflictResolutionProperty as Exports
import {-# SOURCE #-} Stratosphere.CustomerProfiles.Domain.ConsolidationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AutoMergingProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-automerging.html>
    AutoMergingProperty {AutoMergingProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-automerging.html#cfn-customerprofiles-domain-automerging-conflictresolution>
                         AutoMergingProperty -> Maybe ConflictResolutionProperty
conflictResolution :: (Prelude.Maybe ConflictResolutionProperty),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-automerging.html#cfn-customerprofiles-domain-automerging-consolidation>
                         AutoMergingProperty -> Maybe ConsolidationProperty
consolidation :: (Prelude.Maybe ConsolidationProperty),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-automerging.html#cfn-customerprofiles-domain-automerging-enabled>
                         AutoMergingProperty -> Value Bool
enabled :: (Value Prelude.Bool),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-customerprofiles-domain-automerging.html#cfn-customerprofiles-domain-automerging-minallowedconfidencescoreformerging>
                         AutoMergingProperty -> Maybe (Value Double)
minAllowedConfidenceScoreForMerging :: (Prelude.Maybe (Value Prelude.Double))}
  deriving stock (AutoMergingProperty -> AutoMergingProperty -> Bool
(AutoMergingProperty -> AutoMergingProperty -> Bool)
-> (AutoMergingProperty -> AutoMergingProperty -> Bool)
-> Eq AutoMergingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AutoMergingProperty -> AutoMergingProperty -> Bool
== :: AutoMergingProperty -> AutoMergingProperty -> Bool
$c/= :: AutoMergingProperty -> AutoMergingProperty -> Bool
/= :: AutoMergingProperty -> AutoMergingProperty -> Bool
Prelude.Eq, Int -> AutoMergingProperty -> ShowS
[AutoMergingProperty] -> ShowS
AutoMergingProperty -> String
(Int -> AutoMergingProperty -> ShowS)
-> (AutoMergingProperty -> String)
-> ([AutoMergingProperty] -> ShowS)
-> Show AutoMergingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AutoMergingProperty -> ShowS
showsPrec :: Int -> AutoMergingProperty -> ShowS
$cshow :: AutoMergingProperty -> String
show :: AutoMergingProperty -> String
$cshowList :: [AutoMergingProperty] -> ShowS
showList :: [AutoMergingProperty] -> ShowS
Prelude.Show)
mkAutoMergingProperty :: Value Prelude.Bool -> AutoMergingProperty
mkAutoMergingProperty :: Value Bool -> AutoMergingProperty
mkAutoMergingProperty Value Bool
enabled
  = AutoMergingProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), enabled :: Value Bool
enabled = Value Bool
enabled,
       conflictResolution :: Maybe ConflictResolutionProperty
conflictResolution = Maybe ConflictResolutionProperty
forall a. Maybe a
Prelude.Nothing,
       consolidation :: Maybe ConsolidationProperty
consolidation = Maybe ConsolidationProperty
forall a. Maybe a
Prelude.Nothing,
       minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
minAllowedConfidenceScoreForMerging = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AutoMergingProperty where
  toResourceProperties :: AutoMergingProperty -> ResourceProperties
toResourceProperties AutoMergingProperty {Maybe (Value Double)
Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: AutoMergingProperty -> ()
conflictResolution :: AutoMergingProperty -> Maybe ConflictResolutionProperty
consolidation :: AutoMergingProperty -> Maybe ConsolidationProperty
enabled :: AutoMergingProperty -> Value Bool
minAllowedConfidenceScoreForMerging :: AutoMergingProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CustomerProfiles::Domain.AutoMerging",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ConflictResolutionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConflictResolution" (ConflictResolutionProperty -> (Key, Value))
-> Maybe ConflictResolutionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConflictResolutionProperty
conflictResolution,
                               Key -> ConsolidationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Consolidation" (ConsolidationProperty -> (Key, Value))
-> Maybe ConsolidationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConsolidationProperty
consolidation,
                               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinAllowedConfidenceScoreForMerging"
                                 (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minAllowedConfidenceScoreForMerging]))}
instance JSON.ToJSON AutoMergingProperty where
  toJSON :: AutoMergingProperty -> Value
toJSON AutoMergingProperty {Maybe (Value Double)
Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: AutoMergingProperty -> ()
conflictResolution :: AutoMergingProperty -> Maybe ConflictResolutionProperty
consolidation :: AutoMergingProperty -> Maybe ConsolidationProperty
enabled :: AutoMergingProperty -> Value Bool
minAllowedConfidenceScoreForMerging :: AutoMergingProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"Enabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
enabled]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ConflictResolutionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ConflictResolution" (ConflictResolutionProperty -> (Key, Value))
-> Maybe ConflictResolutionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConflictResolutionProperty
conflictResolution,
                  Key -> ConsolidationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Consolidation" (ConsolidationProperty -> (Key, Value))
-> Maybe ConsolidationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ConsolidationProperty
consolidation,
                  Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MinAllowedConfidenceScoreForMerging"
                    (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
minAllowedConfidenceScoreForMerging])))
instance Property "ConflictResolution" AutoMergingProperty where
  type PropertyType "ConflictResolution" AutoMergingProperty = ConflictResolutionProperty
  set :: PropertyType "ConflictResolution" AutoMergingProperty
-> AutoMergingProperty -> AutoMergingProperty
set PropertyType "ConflictResolution" AutoMergingProperty
newValue AutoMergingProperty {Maybe (Value Double)
Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: AutoMergingProperty -> ()
conflictResolution :: AutoMergingProperty -> Maybe ConflictResolutionProperty
consolidation :: AutoMergingProperty -> Maybe ConsolidationProperty
enabled :: AutoMergingProperty -> Value Bool
minAllowedConfidenceScoreForMerging :: AutoMergingProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
    = AutoMergingProperty
        {conflictResolution :: Maybe ConflictResolutionProperty
conflictResolution = ConflictResolutionProperty -> Maybe ConflictResolutionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConflictResolution" AutoMergingProperty
ConflictResolutionProperty
newValue, Maybe (Value Double)
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: ()
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
haddock_workaround_ :: ()
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
instance Property "Consolidation" AutoMergingProperty where
  type PropertyType "Consolidation" AutoMergingProperty = ConsolidationProperty
  set :: PropertyType "Consolidation" AutoMergingProperty
-> AutoMergingProperty -> AutoMergingProperty
set PropertyType "Consolidation" AutoMergingProperty
newValue AutoMergingProperty {Maybe (Value Double)
Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: AutoMergingProperty -> ()
conflictResolution :: AutoMergingProperty -> Maybe ConflictResolutionProperty
consolidation :: AutoMergingProperty -> Maybe ConsolidationProperty
enabled :: AutoMergingProperty -> Value Bool
minAllowedConfidenceScoreForMerging :: AutoMergingProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
    = AutoMergingProperty {consolidation :: Maybe ConsolidationProperty
consolidation = ConsolidationProperty -> Maybe ConsolidationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Consolidation" AutoMergingProperty
ConsolidationProperty
newValue, Maybe (Value Double)
Maybe ConflictResolutionProperty
()
Value Bool
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
instance Property "Enabled" AutoMergingProperty where
  type PropertyType "Enabled" AutoMergingProperty = Value Prelude.Bool
  set :: PropertyType "Enabled" AutoMergingProperty
-> AutoMergingProperty -> AutoMergingProperty
set PropertyType "Enabled" AutoMergingProperty
newValue AutoMergingProperty {Maybe (Value Double)
Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: AutoMergingProperty -> ()
conflictResolution :: AutoMergingProperty -> Maybe ConflictResolutionProperty
consolidation :: AutoMergingProperty -> Maybe ConsolidationProperty
enabled :: AutoMergingProperty -> Value Bool
minAllowedConfidenceScoreForMerging :: AutoMergingProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
    = AutoMergingProperty {enabled :: Value Bool
enabled = PropertyType "Enabled" AutoMergingProperty
Value Bool
newValue, Maybe (Value Double)
Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
instance Property "MinAllowedConfidenceScoreForMerging" AutoMergingProperty where
  type PropertyType "MinAllowedConfidenceScoreForMerging" AutoMergingProperty = Value Prelude.Double
  set :: PropertyType
  "MinAllowedConfidenceScoreForMerging" AutoMergingProperty
-> AutoMergingProperty -> AutoMergingProperty
set PropertyType
  "MinAllowedConfidenceScoreForMerging" AutoMergingProperty
newValue AutoMergingProperty {Maybe (Value Double)
Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: AutoMergingProperty -> ()
conflictResolution :: AutoMergingProperty -> Maybe ConflictResolutionProperty
consolidation :: AutoMergingProperty -> Maybe ConsolidationProperty
enabled :: AutoMergingProperty -> Value Bool
minAllowedConfidenceScoreForMerging :: AutoMergingProperty -> Maybe (Value Double)
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
..}
    = AutoMergingProperty
        {minAllowedConfidenceScoreForMerging :: Maybe (Value Double)
minAllowedConfidenceScoreForMerging = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MinAllowedConfidenceScoreForMerging" AutoMergingProperty
Value Double
newValue, Maybe ConflictResolutionProperty
Maybe ConsolidationProperty
()
Value Bool
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
haddock_workaround_ :: ()
conflictResolution :: Maybe ConflictResolutionProperty
consolidation :: Maybe ConsolidationProperty
enabled :: Value Bool
..}