module Stratosphere.Backup.BackupSelection.ConditionsProperty (
        module Exports, ConditionsProperty(..), mkConditionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Backup.BackupSelection.ConditionParameterProperty as Exports
import Stratosphere.ResourceProperties
data ConditionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditions.html>
    ConditionsProperty {ConditionsProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditions.html#cfn-backup-backupselection-conditions-stringequals>
                        ConditionsProperty -> Maybe [ConditionParameterProperty]
stringEquals :: (Prelude.Maybe [ConditionParameterProperty]),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditions.html#cfn-backup-backupselection-conditions-stringlike>
                        ConditionsProperty -> Maybe [ConditionParameterProperty]
stringLike :: (Prelude.Maybe [ConditionParameterProperty]),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditions.html#cfn-backup-backupselection-conditions-stringnotequals>
                        ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotEquals :: (Prelude.Maybe [ConditionParameterProperty]),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-backup-backupselection-conditions.html#cfn-backup-backupselection-conditions-stringnotlike>
                        ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotLike :: (Prelude.Maybe [ConditionParameterProperty])}
  deriving stock (ConditionsProperty -> ConditionsProperty -> Bool
(ConditionsProperty -> ConditionsProperty -> Bool)
-> (ConditionsProperty -> ConditionsProperty -> Bool)
-> Eq ConditionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConditionsProperty -> ConditionsProperty -> Bool
== :: ConditionsProperty -> ConditionsProperty -> Bool
$c/= :: ConditionsProperty -> ConditionsProperty -> Bool
/= :: ConditionsProperty -> ConditionsProperty -> Bool
Prelude.Eq, Int -> ConditionsProperty -> ShowS
[ConditionsProperty] -> ShowS
ConditionsProperty -> String
(Int -> ConditionsProperty -> ShowS)
-> (ConditionsProperty -> String)
-> ([ConditionsProperty] -> ShowS)
-> Show ConditionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConditionsProperty -> ShowS
showsPrec :: Int -> ConditionsProperty -> ShowS
$cshow :: ConditionsProperty -> String
show :: ConditionsProperty -> String
$cshowList :: [ConditionsProperty] -> ShowS
showList :: [ConditionsProperty] -> ShowS
Prelude.Show)
mkConditionsProperty :: ConditionsProperty
mkConditionsProperty :: ConditionsProperty
mkConditionsProperty
  = ConditionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), stringEquals :: Maybe [ConditionParameterProperty]
stringEquals = Maybe [ConditionParameterProperty]
forall a. Maybe a
Prelude.Nothing,
       stringLike :: Maybe [ConditionParameterProperty]
stringLike = Maybe [ConditionParameterProperty]
forall a. Maybe a
Prelude.Nothing, stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotEquals = Maybe [ConditionParameterProperty]
forall a. Maybe a
Prelude.Nothing,
       stringNotLike :: Maybe [ConditionParameterProperty]
stringNotLike = Maybe [ConditionParameterProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConditionsProperty where
  toResourceProperties :: ConditionsProperty -> ResourceProperties
toResourceProperties ConditionsProperty {Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ConditionsProperty -> ()
stringEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Backup::BackupSelection.Conditions",
         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 -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringEquals" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringEquals,
                            Key -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringLike" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringLike,
                            Key -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringNotEquals" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringNotEquals,
                            Key -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringNotLike" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringNotLike])}
instance JSON.ToJSON ConditionsProperty where
  toJSON :: ConditionsProperty -> Value
toJSON ConditionsProperty {Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ConditionsProperty -> ()
stringEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
    = [(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 -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringEquals" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringEquals,
               Key -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringLike" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringLike,
               Key -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringNotEquals" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringNotEquals,
               Key -> [ConditionParameterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringNotLike" ([ConditionParameterProperty] -> (Key, Value))
-> Maybe [ConditionParameterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConditionParameterProperty]
stringNotLike]))
instance Property "StringEquals" ConditionsProperty where
  type PropertyType "StringEquals" ConditionsProperty = [ConditionParameterProperty]
  set :: PropertyType "StringEquals" ConditionsProperty
-> ConditionsProperty -> ConditionsProperty
set PropertyType "StringEquals" ConditionsProperty
newValue ConditionsProperty {Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ConditionsProperty -> ()
stringEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
    = ConditionsProperty {stringEquals :: Maybe [ConditionParameterProperty]
stringEquals = [ConditionParameterProperty] -> Maybe [ConditionParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ConditionParameterProperty]
PropertyType "StringEquals" ConditionsProperty
newValue, Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ()
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
instance Property "StringLike" ConditionsProperty where
  type PropertyType "StringLike" ConditionsProperty = [ConditionParameterProperty]
  set :: PropertyType "StringLike" ConditionsProperty
-> ConditionsProperty -> ConditionsProperty
set PropertyType "StringLike" ConditionsProperty
newValue ConditionsProperty {Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ConditionsProperty -> ()
stringEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
    = ConditionsProperty {stringLike :: Maybe [ConditionParameterProperty]
stringLike = [ConditionParameterProperty] -> Maybe [ConditionParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ConditionParameterProperty]
PropertyType "StringLike" ConditionsProperty
newValue, Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
instance Property "StringNotEquals" ConditionsProperty where
  type PropertyType "StringNotEquals" ConditionsProperty = [ConditionParameterProperty]
  set :: PropertyType "StringNotEquals" ConditionsProperty
-> ConditionsProperty -> ConditionsProperty
set PropertyType "StringNotEquals" ConditionsProperty
newValue ConditionsProperty {Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ConditionsProperty -> ()
stringEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
    = ConditionsProperty {stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotEquals = [ConditionParameterProperty] -> Maybe [ConditionParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ConditionParameterProperty]
PropertyType "StringNotEquals" ConditionsProperty
newValue, Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
instance Property "StringNotLike" ConditionsProperty where
  type PropertyType "StringNotLike" ConditionsProperty = [ConditionParameterProperty]
  set :: PropertyType "StringNotLike" ConditionsProperty
-> ConditionsProperty -> ConditionsProperty
set PropertyType "StringNotLike" ConditionsProperty
newValue ConditionsProperty {Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ConditionsProperty -> ()
stringEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotEquals :: ConditionsProperty -> Maybe [ConditionParameterProperty]
stringNotLike :: ConditionsProperty -> Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
stringNotLike :: Maybe [ConditionParameterProperty]
..}
    = ConditionsProperty {stringNotLike :: Maybe [ConditionParameterProperty]
stringNotLike = [ConditionParameterProperty] -> Maybe [ConditionParameterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ConditionParameterProperty]
PropertyType "StringNotLike" ConditionsProperty
newValue, Maybe [ConditionParameterProperty]
()
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
haddock_workaround_ :: ()
stringEquals :: Maybe [ConditionParameterProperty]
stringLike :: Maybe [ConditionParameterProperty]
stringNotEquals :: Maybe [ConditionParameterProperty]
..}