module Stratosphere.Connect.Rule.FieldValueProperty (
        FieldValueProperty(..), mkFieldValueProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FieldValueProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-fieldvalue.html>
    FieldValueProperty {FieldValueProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-fieldvalue.html#cfn-connect-rule-fieldvalue-booleanvalue>
                        FieldValueProperty -> Maybe (Value Bool)
booleanValue :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-fieldvalue.html#cfn-connect-rule-fieldvalue-doublevalue>
                        FieldValueProperty -> Maybe (Value Double)
doubleValue :: (Prelude.Maybe (Value Prelude.Double)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-fieldvalue.html#cfn-connect-rule-fieldvalue-emptyvalue>
                        FieldValueProperty -> Maybe Object
emptyValue :: (Prelude.Maybe JSON.Object),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-rule-fieldvalue.html#cfn-connect-rule-fieldvalue-stringvalue>
                        FieldValueProperty -> Maybe (Value Text)
stringValue :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FieldValueProperty -> FieldValueProperty -> Bool
(FieldValueProperty -> FieldValueProperty -> Bool)
-> (FieldValueProperty -> FieldValueProperty -> Bool)
-> Eq FieldValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FieldValueProperty -> FieldValueProperty -> Bool
== :: FieldValueProperty -> FieldValueProperty -> Bool
$c/= :: FieldValueProperty -> FieldValueProperty -> Bool
/= :: FieldValueProperty -> FieldValueProperty -> Bool
Prelude.Eq, Int -> FieldValueProperty -> ShowS
[FieldValueProperty] -> ShowS
FieldValueProperty -> String
(Int -> FieldValueProperty -> ShowS)
-> (FieldValueProperty -> String)
-> ([FieldValueProperty] -> ShowS)
-> Show FieldValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FieldValueProperty -> ShowS
showsPrec :: Int -> FieldValueProperty -> ShowS
$cshow :: FieldValueProperty -> String
show :: FieldValueProperty -> String
$cshowList :: [FieldValueProperty] -> ShowS
showList :: [FieldValueProperty] -> ShowS
Prelude.Show)
mkFieldValueProperty :: FieldValueProperty
mkFieldValueProperty :: FieldValueProperty
mkFieldValueProperty
  = FieldValueProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), booleanValue :: Maybe (Value Bool)
booleanValue = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       doubleValue :: Maybe (Value Double)
doubleValue = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, emptyValue :: Maybe Object
emptyValue = Maybe Object
forall a. Maybe a
Prelude.Nothing,
       stringValue :: Maybe (Value Text)
stringValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FieldValueProperty where
  toResourceProperties :: FieldValueProperty -> ResourceProperties
toResourceProperties FieldValueProperty {Maybe Object
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: FieldValueProperty -> ()
booleanValue :: FieldValueProperty -> Maybe (Value Bool)
doubleValue :: FieldValueProperty -> Maybe (Value Double)
emptyValue :: FieldValueProperty -> Maybe Object
stringValue :: FieldValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::Rule.FieldValue",
         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 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
"BooleanValue" (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)
booleanValue,
                            Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DoubleValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
doubleValue,
                            Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EmptyValue" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
emptyValue,
                            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
"StringValue" (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)
stringValue])}
instance JSON.ToJSON FieldValueProperty where
  toJSON :: FieldValueProperty -> Value
toJSON FieldValueProperty {Maybe Object
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: FieldValueProperty -> ()
booleanValue :: FieldValueProperty -> Maybe (Value Bool)
doubleValue :: FieldValueProperty -> Maybe (Value Double)
emptyValue :: FieldValueProperty -> Maybe Object
stringValue :: FieldValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: 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 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
"BooleanValue" (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)
booleanValue,
               Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DoubleValue" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
doubleValue,
               Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"EmptyValue" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
emptyValue,
               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
"StringValue" (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)
stringValue]))
instance Property "BooleanValue" FieldValueProperty where
  type PropertyType "BooleanValue" FieldValueProperty = Value Prelude.Bool
  set :: PropertyType "BooleanValue" FieldValueProperty
-> FieldValueProperty -> FieldValueProperty
set PropertyType "BooleanValue" FieldValueProperty
newValue FieldValueProperty {Maybe Object
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: FieldValueProperty -> ()
booleanValue :: FieldValueProperty -> Maybe (Value Bool)
doubleValue :: FieldValueProperty -> Maybe (Value Double)
emptyValue :: FieldValueProperty -> Maybe Object
stringValue :: FieldValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
..}
    = FieldValueProperty {booleanValue :: Maybe (Value Bool)
booleanValue = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BooleanValue" FieldValueProperty
Value Bool
newValue, Maybe Object
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
..}
instance Property "DoubleValue" FieldValueProperty where
  type PropertyType "DoubleValue" FieldValueProperty = Value Prelude.Double
  set :: PropertyType "DoubleValue" FieldValueProperty
-> FieldValueProperty -> FieldValueProperty
set PropertyType "DoubleValue" FieldValueProperty
newValue FieldValueProperty {Maybe Object
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: FieldValueProperty -> ()
booleanValue :: FieldValueProperty -> Maybe (Value Bool)
doubleValue :: FieldValueProperty -> Maybe (Value Double)
emptyValue :: FieldValueProperty -> Maybe Object
stringValue :: FieldValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
..}
    = FieldValueProperty {doubleValue :: Maybe (Value Double)
doubleValue = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DoubleValue" FieldValueProperty
Value Double
newValue, Maybe Object
Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
..}
instance Property "EmptyValue" FieldValueProperty where
  type PropertyType "EmptyValue" FieldValueProperty = JSON.Object
  set :: PropertyType "EmptyValue" FieldValueProperty
-> FieldValueProperty -> FieldValueProperty
set PropertyType "EmptyValue" FieldValueProperty
newValue FieldValueProperty {Maybe Object
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: FieldValueProperty -> ()
booleanValue :: FieldValueProperty -> Maybe (Value Bool)
doubleValue :: FieldValueProperty -> Maybe (Value Double)
emptyValue :: FieldValueProperty -> Maybe Object
stringValue :: FieldValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
..}
    = FieldValueProperty {emptyValue :: Maybe Object
emptyValue = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "EmptyValue" FieldValueProperty
newValue, Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
stringValue :: Maybe (Value Text)
..}
instance Property "StringValue" FieldValueProperty where
  type PropertyType "StringValue" FieldValueProperty = Value Prelude.Text
  set :: PropertyType "StringValue" FieldValueProperty
-> FieldValueProperty -> FieldValueProperty
set PropertyType "StringValue" FieldValueProperty
newValue FieldValueProperty {Maybe Object
Maybe (Value Bool)
Maybe (Value Double)
Maybe (Value Text)
()
haddock_workaround_ :: FieldValueProperty -> ()
booleanValue :: FieldValueProperty -> Maybe (Value Bool)
doubleValue :: FieldValueProperty -> Maybe (Value Double)
emptyValue :: FieldValueProperty -> Maybe Object
stringValue :: FieldValueProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
stringValue :: Maybe (Value Text)
..}
    = FieldValueProperty {stringValue :: Maybe (Value Text)
stringValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StringValue" FieldValueProperty
Value Text
newValue, Maybe Object
Maybe (Value Bool)
Maybe (Value Double)
()
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
haddock_workaround_ :: ()
booleanValue :: Maybe (Value Bool)
doubleValue :: Maybe (Value Double)
emptyValue :: Maybe Object
..}