module Stratosphere.QuickSight.Template.DataPathLabelTypeProperty (
        DataPathLabelTypeProperty(..), mkDataPathLabelTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataPathLabelTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-datapathlabeltype.html>
    DataPathLabelTypeProperty {DataPathLabelTypeProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-datapathlabeltype.html#cfn-quicksight-template-datapathlabeltype-fieldid>
                               DataPathLabelTypeProperty -> Maybe (Value Text)
fieldId :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-datapathlabeltype.html#cfn-quicksight-template-datapathlabeltype-fieldvalue>
                               DataPathLabelTypeProperty -> Maybe (Value Text)
fieldValue :: (Prelude.Maybe (Value Prelude.Text)),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-template-datapathlabeltype.html#cfn-quicksight-template-datapathlabeltype-visibility>
                               DataPathLabelTypeProperty -> Maybe Object
visibility :: (Prelude.Maybe JSON.Object)}
  deriving stock (DataPathLabelTypeProperty -> DataPathLabelTypeProperty -> Bool
(DataPathLabelTypeProperty -> DataPathLabelTypeProperty -> Bool)
-> (DataPathLabelTypeProperty -> DataPathLabelTypeProperty -> Bool)
-> Eq DataPathLabelTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataPathLabelTypeProperty -> DataPathLabelTypeProperty -> Bool
== :: DataPathLabelTypeProperty -> DataPathLabelTypeProperty -> Bool
$c/= :: DataPathLabelTypeProperty -> DataPathLabelTypeProperty -> Bool
/= :: DataPathLabelTypeProperty -> DataPathLabelTypeProperty -> Bool
Prelude.Eq, Int -> DataPathLabelTypeProperty -> ShowS
[DataPathLabelTypeProperty] -> ShowS
DataPathLabelTypeProperty -> String
(Int -> DataPathLabelTypeProperty -> ShowS)
-> (DataPathLabelTypeProperty -> String)
-> ([DataPathLabelTypeProperty] -> ShowS)
-> Show DataPathLabelTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataPathLabelTypeProperty -> ShowS
showsPrec :: Int -> DataPathLabelTypeProperty -> ShowS
$cshow :: DataPathLabelTypeProperty -> String
show :: DataPathLabelTypeProperty -> String
$cshowList :: [DataPathLabelTypeProperty] -> ShowS
showList :: [DataPathLabelTypeProperty] -> ShowS
Prelude.Show)
mkDataPathLabelTypeProperty :: DataPathLabelTypeProperty
mkDataPathLabelTypeProperty :: DataPathLabelTypeProperty
mkDataPathLabelTypeProperty
  = DataPathLabelTypeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), fieldId :: Maybe (Value Text)
fieldId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       fieldValue :: Maybe (Value Text)
fieldValue = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, visibility :: Maybe Object
visibility = Maybe Object
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataPathLabelTypeProperty where
  toResourceProperties :: DataPathLabelTypeProperty -> ResourceProperties
toResourceProperties DataPathLabelTypeProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: DataPathLabelTypeProperty -> ()
fieldId :: DataPathLabelTypeProperty -> Maybe (Value Text)
fieldValue :: DataPathLabelTypeProperty -> Maybe (Value Text)
visibility :: DataPathLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
fieldValue :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Template.DataPathLabelType",
         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
"FieldId" (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)
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..=) Key
"FieldValue" (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)
fieldValue,
                            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 DataPathLabelTypeProperty where
  toJSON :: DataPathLabelTypeProperty -> Value
toJSON DataPathLabelTypeProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: DataPathLabelTypeProperty -> ()
fieldId :: DataPathLabelTypeProperty -> Maybe (Value Text)
fieldValue :: DataPathLabelTypeProperty -> Maybe (Value Text)
visibility :: DataPathLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
fieldValue :: 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
           ([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
"FieldId" (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)
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..=) Key
"FieldValue" (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)
fieldValue,
               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" DataPathLabelTypeProperty where
  type PropertyType "FieldId" DataPathLabelTypeProperty = Value Prelude.Text
  set :: PropertyType "FieldId" DataPathLabelTypeProperty
-> DataPathLabelTypeProperty -> DataPathLabelTypeProperty
set PropertyType "FieldId" DataPathLabelTypeProperty
newValue DataPathLabelTypeProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: DataPathLabelTypeProperty -> ()
fieldId :: DataPathLabelTypeProperty -> Maybe (Value Text)
fieldValue :: DataPathLabelTypeProperty -> Maybe (Value Text)
visibility :: DataPathLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
fieldValue :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = DataPathLabelTypeProperty {fieldId :: Maybe (Value Text)
fieldId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FieldId" DataPathLabelTypeProperty
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
fieldValue :: Maybe (Value Text)
visibility :: Maybe Object
haddock_workaround_ :: ()
fieldValue :: Maybe (Value Text)
visibility :: Maybe Object
..}
instance Property "FieldValue" DataPathLabelTypeProperty where
  type PropertyType "FieldValue" DataPathLabelTypeProperty = Value Prelude.Text
  set :: PropertyType "FieldValue" DataPathLabelTypeProperty
-> DataPathLabelTypeProperty -> DataPathLabelTypeProperty
set PropertyType "FieldValue" DataPathLabelTypeProperty
newValue DataPathLabelTypeProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: DataPathLabelTypeProperty -> ()
fieldId :: DataPathLabelTypeProperty -> Maybe (Value Text)
fieldValue :: DataPathLabelTypeProperty -> Maybe (Value Text)
visibility :: DataPathLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
fieldValue :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = DataPathLabelTypeProperty
        {fieldValue :: Maybe (Value Text)
fieldValue = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FieldValue" DataPathLabelTypeProperty
Value Text
newValue, Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
visibility :: Maybe Object
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
visibility :: Maybe Object
..}
instance Property "Visibility" DataPathLabelTypeProperty where
  type PropertyType "Visibility" DataPathLabelTypeProperty = JSON.Object
  set :: PropertyType "Visibility" DataPathLabelTypeProperty
-> DataPathLabelTypeProperty -> DataPathLabelTypeProperty
set PropertyType "Visibility" DataPathLabelTypeProperty
newValue DataPathLabelTypeProperty {Maybe Object
Maybe (Value Text)
()
haddock_workaround_ :: DataPathLabelTypeProperty -> ()
fieldId :: DataPathLabelTypeProperty -> Maybe (Value Text)
fieldValue :: DataPathLabelTypeProperty -> Maybe (Value Text)
visibility :: DataPathLabelTypeProperty -> Maybe Object
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
fieldValue :: Maybe (Value Text)
visibility :: Maybe Object
..}
    = DataPathLabelTypeProperty
        {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" DataPathLabelTypeProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
fieldValue :: Maybe (Value Text)
haddock_workaround_ :: ()
fieldId :: Maybe (Value Text)
fieldValue :: Maybe (Value Text)
..}