module Stratosphere.QuickSight.Template.FieldTooltipItemProperty (
        FieldTooltipItemProperty(..), mkFieldTooltipItemProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FieldTooltipItemProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fieldtooltipitem.html>
    FieldTooltipItemProperty {FieldTooltipItemProperty -> ()
haddock_workaround_ :: (),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fieldtooltipitem.html#cfn-quicksight-template-fieldtooltipitem-fieldid>
                              FieldTooltipItemProperty -> Value Text
fieldId :: (Value Prelude.Text),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fieldtooltipitem.html#cfn-quicksight-template-fieldtooltipitem-label>
                              FieldTooltipItemProperty -> Maybe (Value Text)
label :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fieldtooltipitem.html#cfn-quicksight-template-fieldtooltipitem-tooltiptarget>
                              FieldTooltipItemProperty -> Maybe (Value Text)
tooltipTarget :: (Prelude.Maybe (Value Prelude.Text)),
                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-fieldtooltipitem.html#cfn-quicksight-template-fieldtooltipitem-visibility>
                              FieldTooltipItemProperty -> Maybe Object
visibility :: (Prelude.Maybe JSON.Object)}
  deriving stock (FieldTooltipItemProperty -> FieldTooltipItemProperty -> Bool
(FieldTooltipItemProperty -> FieldTooltipItemProperty -> Bool)
-> (FieldTooltipItemProperty -> FieldTooltipItemProperty -> Bool)
-> Eq FieldTooltipItemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FieldTooltipItemProperty -> FieldTooltipItemProperty -> Bool
== :: FieldTooltipItemProperty -> FieldTooltipItemProperty -> Bool
$c/= :: FieldTooltipItemProperty -> FieldTooltipItemProperty -> Bool
/= :: FieldTooltipItemProperty -> FieldTooltipItemProperty -> Bool
Prelude.Eq, Int -> FieldTooltipItemProperty -> ShowS
[FieldTooltipItemProperty] -> ShowS
FieldTooltipItemProperty -> String
(Int -> FieldTooltipItemProperty -> ShowS)
-> (FieldTooltipItemProperty -> String)
-> ([FieldTooltipItemProperty] -> ShowS)
-> Show FieldTooltipItemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FieldTooltipItemProperty -> ShowS
showsPrec :: Int -> FieldTooltipItemProperty -> ShowS
$cshow :: FieldTooltipItemProperty -> String
show :: FieldTooltipItemProperty -> String
$cshowList :: [FieldTooltipItemProperty] -> ShowS
showList :: [FieldTooltipItemProperty] -> ShowS
Prelude.Show)
mkFieldTooltipItemProperty ::
  Value Prelude.Text -> FieldTooltipItemProperty
mkFieldTooltipItemProperty :: Value Text -> FieldTooltipItemProperty
mkFieldTooltipItemProperty Value Text
fieldId
  = FieldTooltipItemProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fieldId :: Value Text
fieldId = Value Text
fieldId,
       label :: Maybe (Value Text)
label = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tooltipTarget :: Maybe (Value Text)
tooltipTarget = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       visibility :: Maybe Object
visibility = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FieldTooltipItemProperty where
  toResourceProperties :: FieldTooltipItemProperty -> ResourceProperties
toResourceProperties FieldTooltipItemProperty {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FieldTooltipItemProperty -> ()
fieldId :: FieldTooltipItemProperty -> Value Text
label :: FieldTooltipItemProperty -> Maybe (Value Text)
tooltipTarget :: FieldTooltipItemProperty -> Maybe (Value Text)
visibility :: FieldTooltipItemProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.FieldTooltipItem",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"FieldId" 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..= Value Text
fieldId]
                           ([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
"Label" (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)
label,
                               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
"TooltipTarget" (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)
tooltipTarget,
                               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
"Visibility" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
visibility]))}
instance JSON.ToJSON FieldTooltipItemProperty where
  toJSON :: FieldTooltipItemProperty -> Value
toJSON FieldTooltipItemProperty {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FieldTooltipItemProperty -> ()
fieldId :: FieldTooltipItemProperty -> Value Text
label :: FieldTooltipItemProperty -> Maybe (Value Text)
tooltipTarget :: FieldTooltipItemProperty -> Maybe (Value Text)
visibility :: FieldTooltipItemProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"FieldId" 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..= Value Text
fieldId]
              ([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
"Label" (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)
label,
                  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
"TooltipTarget" (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)
tooltipTarget,
                  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
"Visibility" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
visibility])))
instance Property "FieldId" FieldTooltipItemProperty where
  type PropertyType "FieldId" FieldTooltipItemProperty = Value Prelude.Text
  set :: PropertyType "FieldId" FieldTooltipItemProperty
-> FieldTooltipItemProperty -> FieldTooltipItemProperty
set PropertyType "FieldId" FieldTooltipItemProperty
newValue FieldTooltipItemProperty {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FieldTooltipItemProperty -> ()
fieldId :: FieldTooltipItemProperty -> Value Text
label :: FieldTooltipItemProperty -> Maybe (Value Text)
tooltipTarget :: FieldTooltipItemProperty -> Maybe (Value Text)
visibility :: FieldTooltipItemProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = FieldTooltipItemProperty {fieldId :: Value Text
fieldId = PropertyType "FieldId" FieldTooltipItemProperty
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
haddock_workaround_ :: ()
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
instance Property "Label" FieldTooltipItemProperty where
  type PropertyType "Label" FieldTooltipItemProperty = Value Prelude.Text
  set :: PropertyType "Label" FieldTooltipItemProperty
-> FieldTooltipItemProperty -> FieldTooltipItemProperty
set PropertyType "Label" FieldTooltipItemProperty
newValue FieldTooltipItemProperty {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FieldTooltipItemProperty -> ()
fieldId :: FieldTooltipItemProperty -> Value Text
label :: FieldTooltipItemProperty -> Maybe (Value Text)
tooltipTarget :: FieldTooltipItemProperty -> Maybe (Value Text)
visibility :: FieldTooltipItemProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = FieldTooltipItemProperty {label :: Maybe (Value Text)
label = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Label" FieldTooltipItemProperty
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
instance Property "TooltipTarget" FieldTooltipItemProperty where
  type PropertyType "TooltipTarget" FieldTooltipItemProperty = Value Prelude.Text
  set :: PropertyType "TooltipTarget" FieldTooltipItemProperty
-> FieldTooltipItemProperty -> FieldTooltipItemProperty
set PropertyType "TooltipTarget" FieldTooltipItemProperty
newValue FieldTooltipItemProperty {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FieldTooltipItemProperty -> ()
fieldId :: FieldTooltipItemProperty -> Value Text
label :: FieldTooltipItemProperty -> Maybe (Value Text)
tooltipTarget :: FieldTooltipItemProperty -> Maybe (Value Text)
visibility :: FieldTooltipItemProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = FieldTooltipItemProperty
        {tooltipTarget :: Maybe (Value Text)
tooltipTarget = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TooltipTarget" FieldTooltipItemProperty
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
visibility :: Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
visibility :: Maybe Object
..}
instance Property "Visibility" FieldTooltipItemProperty where
  type PropertyType "Visibility" FieldTooltipItemProperty = JSON.Object
  set :: PropertyType "Visibility" FieldTooltipItemProperty
-> FieldTooltipItemProperty -> FieldTooltipItemProperty
set PropertyType "Visibility" FieldTooltipItemProperty
newValue FieldTooltipItemProperty {Maybe Object
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: FieldTooltipItemProperty -> ()
fieldId :: FieldTooltipItemProperty -> Value Text
label :: FieldTooltipItemProperty -> Maybe (Value Text)
tooltipTarget :: FieldTooltipItemProperty -> Maybe (Value Text)
visibility :: FieldTooltipItemProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = FieldTooltipItemProperty {visibility :: Maybe Object
visibility = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "Visibility" FieldTooltipItemProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
haddock_workaround_ :: ()
fieldId :: Value Text
label :: Maybe (Value Text)
tooltipTarget :: Maybe (Value Text)
..}