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