module Stratosphere.Cognito.UserPool.SchemaAttributeProperty (
module Exports, SchemaAttributeProperty(..),
mkSchemaAttributeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Cognito.UserPool.NumberAttributeConstraintsProperty as Exports
import {-# SOURCE #-} Stratosphere.Cognito.UserPool.StringAttributeConstraintsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SchemaAttributeProperty
=
SchemaAttributeProperty {SchemaAttributeProperty -> ()
haddock_workaround_ :: (),
SchemaAttributeProperty -> Maybe (Value Text)
attributeDataType :: (Prelude.Maybe (Value Prelude.Text)),
SchemaAttributeProperty -> Maybe (Value Bool)
developerOnlyAttribute :: (Prelude.Maybe (Value Prelude.Bool)),
SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: (Prelude.Maybe (Value Prelude.Bool)),
SchemaAttributeProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
numberAttributeConstraints :: (Prelude.Maybe NumberAttributeConstraintsProperty),
SchemaAttributeProperty -> Maybe (Value Bool)
required :: (Prelude.Maybe (Value Prelude.Bool)),
SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
stringAttributeConstraints :: (Prelude.Maybe StringAttributeConstraintsProperty)}
deriving stock (SchemaAttributeProperty -> SchemaAttributeProperty -> Bool
(SchemaAttributeProperty -> SchemaAttributeProperty -> Bool)
-> (SchemaAttributeProperty -> SchemaAttributeProperty -> Bool)
-> Eq SchemaAttributeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SchemaAttributeProperty -> SchemaAttributeProperty -> Bool
== :: SchemaAttributeProperty -> SchemaAttributeProperty -> Bool
$c/= :: SchemaAttributeProperty -> SchemaAttributeProperty -> Bool
/= :: SchemaAttributeProperty -> SchemaAttributeProperty -> Bool
Prelude.Eq, Int -> SchemaAttributeProperty -> ShowS
[SchemaAttributeProperty] -> ShowS
SchemaAttributeProperty -> String
(Int -> SchemaAttributeProperty -> ShowS)
-> (SchemaAttributeProperty -> String)
-> ([SchemaAttributeProperty] -> ShowS)
-> Show SchemaAttributeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SchemaAttributeProperty -> ShowS
showsPrec :: Int -> SchemaAttributeProperty -> ShowS
$cshow :: SchemaAttributeProperty -> String
show :: SchemaAttributeProperty -> String
$cshowList :: [SchemaAttributeProperty] -> ShowS
showList :: [SchemaAttributeProperty] -> ShowS
Prelude.Show)
mkSchemaAttributeProperty :: SchemaAttributeProperty
mkSchemaAttributeProperty :: SchemaAttributeProperty
mkSchemaAttributeProperty
= SchemaAttributeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), attributeDataType :: Maybe (Value Text)
attributeDataType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
developerOnlyAttribute :: Maybe (Value Bool)
developerOnlyAttribute = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
mutable :: Maybe (Value Bool)
mutable = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
numberAttributeConstraints = Maybe NumberAttributeConstraintsProperty
forall a. Maybe a
Prelude.Nothing,
required :: Maybe (Value Bool)
required = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
stringAttributeConstraints = Maybe StringAttributeConstraintsProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SchemaAttributeProperty where
toResourceProperties :: SchemaAttributeProperty -> ResourceProperties
toResourceProperties SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cognito::UserPool.SchemaAttribute",
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
"AttributeDataType" (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)
attributeDataType,
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..=) Key
"DeveloperOnlyAttribute"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
developerOnlyAttribute,
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..=) Key
"Mutable" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
mutable,
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
"Name" (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)
name,
Key -> NumberAttributeConstraintsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NumberAttributeConstraints"
(NumberAttributeConstraintsProperty -> (Key, Value))
-> Maybe NumberAttributeConstraintsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumberAttributeConstraintsProperty
numberAttributeConstraints,
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..=) Key
"Required" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
required,
Key -> StringAttributeConstraintsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringAttributeConstraints"
(StringAttributeConstraintsProperty -> (Key, Value))
-> Maybe StringAttributeConstraintsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StringAttributeConstraintsProperty
stringAttributeConstraints])}
instance JSON.ToJSON SchemaAttributeProperty where
toJSON :: SchemaAttributeProperty -> Value
toJSON SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= [(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
"AttributeDataType" (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)
attributeDataType,
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..=) Key
"DeveloperOnlyAttribute"
(Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
developerOnlyAttribute,
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..=) Key
"Mutable" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
mutable,
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
"Name" (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)
name,
Key -> NumberAttributeConstraintsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"NumberAttributeConstraints"
(NumberAttributeConstraintsProperty -> (Key, Value))
-> Maybe NumberAttributeConstraintsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumberAttributeConstraintsProperty
numberAttributeConstraints,
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..=) Key
"Required" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
required,
Key -> StringAttributeConstraintsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"StringAttributeConstraints"
(StringAttributeConstraintsProperty -> (Key, Value))
-> Maybe StringAttributeConstraintsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StringAttributeConstraintsProperty
stringAttributeConstraints]))
instance Property "AttributeDataType" SchemaAttributeProperty where
type PropertyType "AttributeDataType" SchemaAttributeProperty = Value Prelude.Text
set :: PropertyType "AttributeDataType" SchemaAttributeProperty
-> SchemaAttributeProperty -> SchemaAttributeProperty
set PropertyType "AttributeDataType" SchemaAttributeProperty
newValue SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= SchemaAttributeProperty
{attributeDataType :: Maybe (Value Text)
attributeDataType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AttributeDataType" SchemaAttributeProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: ()
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
instance Property "DeveloperOnlyAttribute" SchemaAttributeProperty where
type PropertyType "DeveloperOnlyAttribute" SchemaAttributeProperty = Value Prelude.Bool
set :: PropertyType "DeveloperOnlyAttribute" SchemaAttributeProperty
-> SchemaAttributeProperty -> SchemaAttributeProperty
set PropertyType "DeveloperOnlyAttribute" SchemaAttributeProperty
newValue SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= SchemaAttributeProperty
{developerOnlyAttribute :: Maybe (Value Bool)
developerOnlyAttribute = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DeveloperOnlyAttribute" SchemaAttributeProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
instance Property "Mutable" SchemaAttributeProperty where
type PropertyType "Mutable" SchemaAttributeProperty = Value Prelude.Bool
set :: PropertyType "Mutable" SchemaAttributeProperty
-> SchemaAttributeProperty -> SchemaAttributeProperty
set PropertyType "Mutable" SchemaAttributeProperty
newValue SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= SchemaAttributeProperty {mutable :: Maybe (Value Bool)
mutable = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Mutable" SchemaAttributeProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
instance Property "Name" SchemaAttributeProperty where
type PropertyType "Name" SchemaAttributeProperty = Value Prelude.Text
set :: PropertyType "Name" SchemaAttributeProperty
-> SchemaAttributeProperty -> SchemaAttributeProperty
set PropertyType "Name" SchemaAttributeProperty
newValue SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= SchemaAttributeProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" SchemaAttributeProperty
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
instance Property "NumberAttributeConstraints" SchemaAttributeProperty where
type PropertyType "NumberAttributeConstraints" SchemaAttributeProperty = NumberAttributeConstraintsProperty
set :: PropertyType "NumberAttributeConstraints" SchemaAttributeProperty
-> SchemaAttributeProperty -> SchemaAttributeProperty
set PropertyType "NumberAttributeConstraints" SchemaAttributeProperty
newValue SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= SchemaAttributeProperty
{numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
numberAttributeConstraints = NumberAttributeConstraintsProperty
-> Maybe NumberAttributeConstraintsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NumberAttributeConstraints" SchemaAttributeProperty
NumberAttributeConstraintsProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
instance Property "Required" SchemaAttributeProperty where
type PropertyType "Required" SchemaAttributeProperty = Value Prelude.Bool
set :: PropertyType "Required" SchemaAttributeProperty
-> SchemaAttributeProperty -> SchemaAttributeProperty
set PropertyType "Required" SchemaAttributeProperty
newValue SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= SchemaAttributeProperty {required :: Maybe (Value Bool)
required = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Required" SchemaAttributeProperty
Value Bool
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
instance Property "StringAttributeConstraints" SchemaAttributeProperty where
type PropertyType "StringAttributeConstraints" SchemaAttributeProperty = StringAttributeConstraintsProperty
set :: PropertyType "StringAttributeConstraints" SchemaAttributeProperty
-> SchemaAttributeProperty -> SchemaAttributeProperty
set PropertyType "StringAttributeConstraints" SchemaAttributeProperty
newValue SchemaAttributeProperty {Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
Maybe StringAttributeConstraintsProperty
()
haddock_workaround_ :: SchemaAttributeProperty -> ()
attributeDataType :: SchemaAttributeProperty -> Maybe (Value Text)
developerOnlyAttribute :: SchemaAttributeProperty -> Maybe (Value Bool)
mutable :: SchemaAttributeProperty -> Maybe (Value Bool)
name :: SchemaAttributeProperty -> Maybe (Value Text)
numberAttributeConstraints :: SchemaAttributeProperty -> Maybe NumberAttributeConstraintsProperty
required :: SchemaAttributeProperty -> Maybe (Value Bool)
stringAttributeConstraints :: SchemaAttributeProperty -> Maybe StringAttributeConstraintsProperty
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
..}
= SchemaAttributeProperty
{stringAttributeConstraints :: Maybe StringAttributeConstraintsProperty
stringAttributeConstraints = StringAttributeConstraintsProperty
-> Maybe StringAttributeConstraintsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StringAttributeConstraints" SchemaAttributeProperty
StringAttributeConstraintsProperty
newValue, Maybe (Value Bool)
Maybe (Value Text)
Maybe NumberAttributeConstraintsProperty
()
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
haddock_workaround_ :: ()
attributeDataType :: Maybe (Value Text)
developerOnlyAttribute :: Maybe (Value Bool)
mutable :: Maybe (Value Bool)
name :: Maybe (Value Text)
numberAttributeConstraints :: Maybe NumberAttributeConstraintsProperty
required :: Maybe (Value Bool)
..}