module Stratosphere.FSx.FileSystem.UserAndGroupQuotasProperty (
UserAndGroupQuotasProperty(..), mkUserAndGroupQuotasProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserAndGroupQuotasProperty
=
UserAndGroupQuotasProperty {UserAndGroupQuotasProperty -> ()
haddock_workaround_ :: (),
UserAndGroupQuotasProperty -> Maybe (Value Integer)
id :: (Prelude.Maybe (Value Prelude.Integer)),
UserAndGroupQuotasProperty -> Maybe (Value Integer)
storageCapacityQuotaGiB :: (Prelude.Maybe (Value Prelude.Integer)),
UserAndGroupQuotasProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
(UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool)
-> (UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> Bool)
-> Eq UserAndGroupQuotasProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
== :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
$c/= :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
/= :: UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty -> Bool
Prelude.Eq, Int -> UserAndGroupQuotasProperty -> ShowS
[UserAndGroupQuotasProperty] -> ShowS
UserAndGroupQuotasProperty -> String
(Int -> UserAndGroupQuotasProperty -> ShowS)
-> (UserAndGroupQuotasProperty -> String)
-> ([UserAndGroupQuotasProperty] -> ShowS)
-> Show UserAndGroupQuotasProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserAndGroupQuotasProperty -> ShowS
showsPrec :: Int -> UserAndGroupQuotasProperty -> ShowS
$cshow :: UserAndGroupQuotasProperty -> String
show :: UserAndGroupQuotasProperty -> String
$cshowList :: [UserAndGroupQuotasProperty] -> ShowS
showList :: [UserAndGroupQuotasProperty] -> ShowS
Prelude.Show)
mkUserAndGroupQuotasProperty :: UserAndGroupQuotasProperty
mkUserAndGroupQuotasProperty :: UserAndGroupQuotasProperty
mkUserAndGroupQuotasProperty
= UserAndGroupQuotasProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), id :: Maybe (Value Integer)
id = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
storageCapacityQuotaGiB :: Maybe (Value Integer)
storageCapacityQuotaGiB = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UserAndGroupQuotasProperty where
toResourceProperties :: UserAndGroupQuotasProperty -> ResourceProperties
toResourceProperties UserAndGroupQuotasProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
type' :: UserAndGroupQuotasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
storageCapacityQuotaGiB :: Maybe (Value Integer)
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::FSx::FileSystem.UserAndGroupQuotas",
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
"Id" (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)
id,
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
"StorageCapacityQuotaGiB"
(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)
storageCapacityQuotaGiB,
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
"Type" (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)
type'])}
instance JSON.ToJSON UserAndGroupQuotasProperty where
toJSON :: UserAndGroupQuotasProperty -> Value
toJSON UserAndGroupQuotasProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
type' :: UserAndGroupQuotasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
storageCapacityQuotaGiB :: Maybe (Value Integer)
type' :: Maybe (Value Text)
..}
= [(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
"Id" (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)
id,
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
"StorageCapacityQuotaGiB"
(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)
storageCapacityQuotaGiB,
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
"Type" (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)
type']))
instance Property "Id" UserAndGroupQuotasProperty where
type PropertyType "Id" UserAndGroupQuotasProperty = Value Prelude.Integer
set :: PropertyType "Id" UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty
set PropertyType "Id" UserAndGroupQuotasProperty
newValue UserAndGroupQuotasProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
type' :: UserAndGroupQuotasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
storageCapacityQuotaGiB :: Maybe (Value Integer)
type' :: Maybe (Value Text)
..}
= UserAndGroupQuotasProperty {id :: Maybe (Value Integer)
id = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Id" UserAndGroupQuotasProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
storageCapacityQuotaGiB :: Maybe (Value Integer)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
storageCapacityQuotaGiB :: Maybe (Value Integer)
type' :: Maybe (Value Text)
..}
instance Property "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty where
type PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty = Value Prelude.Integer
set :: PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty
set PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty
newValue UserAndGroupQuotasProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
type' :: UserAndGroupQuotasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
storageCapacityQuotaGiB :: Maybe (Value Integer)
type' :: Maybe (Value Text)
..}
= UserAndGroupQuotasProperty
{storageCapacityQuotaGiB :: Maybe (Value Integer)
storageCapacityQuotaGiB = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StorageCapacityQuotaGiB" UserAndGroupQuotasProperty
Value Integer
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
type' :: Maybe (Value Text)
..}
instance Property "Type" UserAndGroupQuotasProperty where
type PropertyType "Type" UserAndGroupQuotasProperty = Value Prelude.Text
set :: PropertyType "Type" UserAndGroupQuotasProperty
-> UserAndGroupQuotasProperty -> UserAndGroupQuotasProperty
set PropertyType "Type" UserAndGroupQuotasProperty
newValue UserAndGroupQuotasProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: UserAndGroupQuotasProperty -> ()
id :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
storageCapacityQuotaGiB :: UserAndGroupQuotasProperty -> Maybe (Value Integer)
type' :: UserAndGroupQuotasProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
storageCapacityQuotaGiB :: Maybe (Value Integer)
type' :: Maybe (Value Text)
..}
= UserAndGroupQuotasProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" UserAndGroupQuotasProperty
Value Text
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
storageCapacityQuotaGiB :: Maybe (Value Integer)
haddock_workaround_ :: ()
id :: Maybe (Value Integer)
storageCapacityQuotaGiB :: Maybe (Value Integer)
..}