module Stratosphere.Rbin.Rule.UnlockDelayProperty (
        UnlockDelayProperty(..), mkUnlockDelayProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UnlockDelayProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html>
    UnlockDelayProperty {UnlockDelayProperty -> ()
haddock_workaround_ :: (),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html#cfn-rbin-rule-unlockdelay-unlockdelayunit>
                         UnlockDelayProperty -> Maybe (Value Text)
unlockDelayUnit :: (Prelude.Maybe (Value Prelude.Text)),
                         -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rbin-rule-unlockdelay.html#cfn-rbin-rule-unlockdelay-unlockdelayvalue>
                         UnlockDelayProperty -> Maybe (Value Integer)
unlockDelayValue :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (UnlockDelayProperty -> UnlockDelayProperty -> Bool
(UnlockDelayProperty -> UnlockDelayProperty -> Bool)
-> (UnlockDelayProperty -> UnlockDelayProperty -> Bool)
-> Eq UnlockDelayProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UnlockDelayProperty -> UnlockDelayProperty -> Bool
== :: UnlockDelayProperty -> UnlockDelayProperty -> Bool
$c/= :: UnlockDelayProperty -> UnlockDelayProperty -> Bool
/= :: UnlockDelayProperty -> UnlockDelayProperty -> Bool
Prelude.Eq, Int -> UnlockDelayProperty -> ShowS
[UnlockDelayProperty] -> ShowS
UnlockDelayProperty -> String
(Int -> UnlockDelayProperty -> ShowS)
-> (UnlockDelayProperty -> String)
-> ([UnlockDelayProperty] -> ShowS)
-> Show UnlockDelayProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UnlockDelayProperty -> ShowS
showsPrec :: Int -> UnlockDelayProperty -> ShowS
$cshow :: UnlockDelayProperty -> String
show :: UnlockDelayProperty -> String
$cshowList :: [UnlockDelayProperty] -> ShowS
showList :: [UnlockDelayProperty] -> ShowS
Prelude.Show)
mkUnlockDelayProperty :: UnlockDelayProperty
mkUnlockDelayProperty :: UnlockDelayProperty
mkUnlockDelayProperty
  = UnlockDelayProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), unlockDelayUnit :: Maybe (Value Text)
unlockDelayUnit = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       unlockDelayValue :: Maybe (Value Integer)
unlockDelayValue = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UnlockDelayProperty where
  toResourceProperties :: UnlockDelayProperty -> ResourceProperties
toResourceProperties UnlockDelayProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UnlockDelayProperty -> ()
unlockDelayUnit :: UnlockDelayProperty -> Maybe (Value Text)
unlockDelayValue :: UnlockDelayProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
unlockDelayUnit :: Maybe (Value Text)
unlockDelayValue :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Rbin::Rule.UnlockDelay",
         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
"UnlockDelayUnit" (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)
unlockDelayUnit,
                            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
"UnlockDelayValue" (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)
unlockDelayValue])}
instance JSON.ToJSON UnlockDelayProperty where
  toJSON :: UnlockDelayProperty -> Value
toJSON UnlockDelayProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UnlockDelayProperty -> ()
unlockDelayUnit :: UnlockDelayProperty -> Maybe (Value Text)
unlockDelayValue :: UnlockDelayProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
unlockDelayUnit :: Maybe (Value Text)
unlockDelayValue :: 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
"UnlockDelayUnit" (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)
unlockDelayUnit,
               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
"UnlockDelayValue" (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)
unlockDelayValue]))
instance Property "UnlockDelayUnit" UnlockDelayProperty where
  type PropertyType "UnlockDelayUnit" UnlockDelayProperty = Value Prelude.Text
  set :: PropertyType "UnlockDelayUnit" UnlockDelayProperty
-> UnlockDelayProperty -> UnlockDelayProperty
set PropertyType "UnlockDelayUnit" UnlockDelayProperty
newValue UnlockDelayProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UnlockDelayProperty -> ()
unlockDelayUnit :: UnlockDelayProperty -> Maybe (Value Text)
unlockDelayValue :: UnlockDelayProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
unlockDelayUnit :: Maybe (Value Text)
unlockDelayValue :: Maybe (Value Integer)
..}
    = UnlockDelayProperty {unlockDelayUnit :: Maybe (Value Text)
unlockDelayUnit = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UnlockDelayUnit" UnlockDelayProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
unlockDelayValue :: Maybe (Value Integer)
haddock_workaround_ :: ()
unlockDelayValue :: Maybe (Value Integer)
..}
instance Property "UnlockDelayValue" UnlockDelayProperty where
  type PropertyType "UnlockDelayValue" UnlockDelayProperty = Value Prelude.Integer
  set :: PropertyType "UnlockDelayValue" UnlockDelayProperty
-> UnlockDelayProperty -> UnlockDelayProperty
set PropertyType "UnlockDelayValue" UnlockDelayProperty
newValue UnlockDelayProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UnlockDelayProperty -> ()
unlockDelayUnit :: UnlockDelayProperty -> Maybe (Value Text)
unlockDelayValue :: UnlockDelayProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
unlockDelayUnit :: Maybe (Value Text)
unlockDelayValue :: Maybe (Value Integer)
..}
    = UnlockDelayProperty
        {unlockDelayValue :: Maybe (Value Integer)
unlockDelayValue = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UnlockDelayValue" UnlockDelayProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
unlockDelayUnit :: Maybe (Value Text)
haddock_workaround_ :: ()
unlockDelayUnit :: Maybe (Value Text)
..}