module Stratosphere.S3.StorageLensGroup.MatchObjectSizeProperty (
        MatchObjectSizeProperty(..), mkMatchObjectSizeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MatchObjectSizeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelensgroup-matchobjectsize.html>
    MatchObjectSizeProperty {MatchObjectSizeProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelensgroup-matchobjectsize.html#cfn-s3-storagelensgroup-matchobjectsize-bytesgreaterthan>
                             MatchObjectSizeProperty -> Maybe (Value Integer)
bytesGreaterThan :: (Prelude.Maybe (Value Prelude.Integer)),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-storagelensgroup-matchobjectsize.html#cfn-s3-storagelensgroup-matchobjectsize-byteslessthan>
                             MatchObjectSizeProperty -> Maybe (Value Integer)
bytesLessThan :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (MatchObjectSizeProperty -> MatchObjectSizeProperty -> Bool
(MatchObjectSizeProperty -> MatchObjectSizeProperty -> Bool)
-> (MatchObjectSizeProperty -> MatchObjectSizeProperty -> Bool)
-> Eq MatchObjectSizeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MatchObjectSizeProperty -> MatchObjectSizeProperty -> Bool
== :: MatchObjectSizeProperty -> MatchObjectSizeProperty -> Bool
$c/= :: MatchObjectSizeProperty -> MatchObjectSizeProperty -> Bool
/= :: MatchObjectSizeProperty -> MatchObjectSizeProperty -> Bool
Prelude.Eq, Int -> MatchObjectSizeProperty -> ShowS
[MatchObjectSizeProperty] -> ShowS
MatchObjectSizeProperty -> String
(Int -> MatchObjectSizeProperty -> ShowS)
-> (MatchObjectSizeProperty -> String)
-> ([MatchObjectSizeProperty] -> ShowS)
-> Show MatchObjectSizeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MatchObjectSizeProperty -> ShowS
showsPrec :: Int -> MatchObjectSizeProperty -> ShowS
$cshow :: MatchObjectSizeProperty -> String
show :: MatchObjectSizeProperty -> String
$cshowList :: [MatchObjectSizeProperty] -> ShowS
showList :: [MatchObjectSizeProperty] -> ShowS
Prelude.Show)
mkMatchObjectSizeProperty :: MatchObjectSizeProperty
mkMatchObjectSizeProperty :: MatchObjectSizeProperty
mkMatchObjectSizeProperty
  = MatchObjectSizeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), bytesGreaterThan :: Maybe (Value Integer)
bytesGreaterThan = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       bytesLessThan :: Maybe (Value Integer)
bytesLessThan = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MatchObjectSizeProperty where
  toResourceProperties :: MatchObjectSizeProperty -> ResourceProperties
toResourceProperties MatchObjectSizeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: MatchObjectSizeProperty -> ()
bytesGreaterThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
bytesLessThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bytesGreaterThan :: Maybe (Value Integer)
bytesLessThan :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::S3::StorageLensGroup.MatchObjectSize",
         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 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
"BytesGreaterThan" (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)
bytesGreaterThan,
                            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
"BytesLessThan" (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)
bytesLessThan])}
instance JSON.ToJSON MatchObjectSizeProperty where
  toJSON :: MatchObjectSizeProperty -> Value
toJSON MatchObjectSizeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: MatchObjectSizeProperty -> ()
bytesGreaterThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
bytesLessThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bytesGreaterThan :: Maybe (Value Integer)
bytesLessThan :: 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 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
"BytesGreaterThan" (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)
bytesGreaterThan,
               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
"BytesLessThan" (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)
bytesLessThan]))
instance Property "BytesGreaterThan" MatchObjectSizeProperty where
  type PropertyType "BytesGreaterThan" MatchObjectSizeProperty = Value Prelude.Integer
  set :: PropertyType "BytesGreaterThan" MatchObjectSizeProperty
-> MatchObjectSizeProperty -> MatchObjectSizeProperty
set PropertyType "BytesGreaterThan" MatchObjectSizeProperty
newValue MatchObjectSizeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: MatchObjectSizeProperty -> ()
bytesGreaterThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
bytesLessThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bytesGreaterThan :: Maybe (Value Integer)
bytesLessThan :: Maybe (Value Integer)
..}
    = MatchObjectSizeProperty
        {bytesGreaterThan :: Maybe (Value Integer)
bytesGreaterThan = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BytesGreaterThan" MatchObjectSizeProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
bytesLessThan :: Maybe (Value Integer)
haddock_workaround_ :: ()
bytesLessThan :: Maybe (Value Integer)
..}
instance Property "BytesLessThan" MatchObjectSizeProperty where
  type PropertyType "BytesLessThan" MatchObjectSizeProperty = Value Prelude.Integer
  set :: PropertyType "BytesLessThan" MatchObjectSizeProperty
-> MatchObjectSizeProperty -> MatchObjectSizeProperty
set PropertyType "BytesLessThan" MatchObjectSizeProperty
newValue MatchObjectSizeProperty {Maybe (Value Integer)
()
haddock_workaround_ :: MatchObjectSizeProperty -> ()
bytesGreaterThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
bytesLessThan :: MatchObjectSizeProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
bytesGreaterThan :: Maybe (Value Integer)
bytesLessThan :: Maybe (Value Integer)
..}
    = MatchObjectSizeProperty
        {bytesLessThan :: Maybe (Value Integer)
bytesLessThan = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BytesLessThan" MatchObjectSizeProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
bytesGreaterThan :: Maybe (Value Integer)
haddock_workaround_ :: ()
bytesGreaterThan :: Maybe (Value Integer)
..}