module Stratosphere.Connect.UserHierarchyStructure.LevelFourProperty (
        LevelFourProperty(..), mkLevelFourProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LevelFourProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html>
    LevelFourProperty {LevelFourProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-hierarchylevelarn>
                       LevelFourProperty -> Maybe (Value Text)
hierarchyLevelArn :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-hierarchylevelid>
                       LevelFourProperty -> Maybe (Value Text)
hierarchyLevelId :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-connect-userhierarchystructure-levelfour.html#cfn-connect-userhierarchystructure-levelfour-name>
                       LevelFourProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (LevelFourProperty -> LevelFourProperty -> Bool
(LevelFourProperty -> LevelFourProperty -> Bool)
-> (LevelFourProperty -> LevelFourProperty -> Bool)
-> Eq LevelFourProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LevelFourProperty -> LevelFourProperty -> Bool
== :: LevelFourProperty -> LevelFourProperty -> Bool
$c/= :: LevelFourProperty -> LevelFourProperty -> Bool
/= :: LevelFourProperty -> LevelFourProperty -> Bool
Prelude.Eq, Int -> LevelFourProperty -> ShowS
[LevelFourProperty] -> ShowS
LevelFourProperty -> String
(Int -> LevelFourProperty -> ShowS)
-> (LevelFourProperty -> String)
-> ([LevelFourProperty] -> ShowS)
-> Show LevelFourProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LevelFourProperty -> ShowS
showsPrec :: Int -> LevelFourProperty -> ShowS
$cshow :: LevelFourProperty -> String
show :: LevelFourProperty -> String
$cshowList :: [LevelFourProperty] -> ShowS
showList :: [LevelFourProperty] -> ShowS
Prelude.Show)
mkLevelFourProperty :: Value Prelude.Text -> LevelFourProperty
mkLevelFourProperty :: Value Text -> LevelFourProperty
mkLevelFourProperty Value Text
name
  = LevelFourProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name,
       hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       hierarchyLevelId :: Maybe (Value Text)
hierarchyLevelId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LevelFourProperty where
  toResourceProperties :: LevelFourProperty -> ResourceProperties
toResourceProperties LevelFourProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelFourProperty -> ()
hierarchyLevelArn :: LevelFourProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelFourProperty -> Maybe (Value Text)
name :: LevelFourProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::UserHierarchyStructure.LevelFour",
         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
"Name" 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
name]
                           ([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
"HierarchyLevelArn" (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)
hierarchyLevelArn,
                               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
"HierarchyLevelId" (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)
hierarchyLevelId]))}
instance JSON.ToJSON LevelFourProperty where
  toJSON :: LevelFourProperty -> Value
toJSON LevelFourProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelFourProperty -> ()
hierarchyLevelArn :: LevelFourProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelFourProperty -> Maybe (Value Text)
name :: LevelFourProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
    = [(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
"Name" 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
name]
              ([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
"HierarchyLevelArn" (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)
hierarchyLevelArn,
                  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
"HierarchyLevelId" (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)
hierarchyLevelId])))
instance Property "HierarchyLevelArn" LevelFourProperty where
  type PropertyType "HierarchyLevelArn" LevelFourProperty = Value Prelude.Text
  set :: PropertyType "HierarchyLevelArn" LevelFourProperty
-> LevelFourProperty -> LevelFourProperty
set PropertyType "HierarchyLevelArn" LevelFourProperty
newValue LevelFourProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelFourProperty -> ()
hierarchyLevelArn :: LevelFourProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelFourProperty -> Maybe (Value Text)
name :: LevelFourProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
    = LevelFourProperty {hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HierarchyLevelArn" LevelFourProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
instance Property "HierarchyLevelId" LevelFourProperty where
  type PropertyType "HierarchyLevelId" LevelFourProperty = Value Prelude.Text
  set :: PropertyType "HierarchyLevelId" LevelFourProperty
-> LevelFourProperty -> LevelFourProperty
set PropertyType "HierarchyLevelId" LevelFourProperty
newValue LevelFourProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelFourProperty -> ()
hierarchyLevelArn :: LevelFourProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelFourProperty -> Maybe (Value Text)
name :: LevelFourProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
    = LevelFourProperty {hierarchyLevelId :: Maybe (Value Text)
hierarchyLevelId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HierarchyLevelId" LevelFourProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
name :: Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
name :: Value Text
..}
instance Property "Name" LevelFourProperty where
  type PropertyType "Name" LevelFourProperty = Value Prelude.Text
  set :: PropertyType "Name" LevelFourProperty
-> LevelFourProperty -> LevelFourProperty
set PropertyType "Name" LevelFourProperty
newValue LevelFourProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: LevelFourProperty -> ()
hierarchyLevelArn :: LevelFourProperty -> Maybe (Value Text)
hierarchyLevelId :: LevelFourProperty -> Maybe (Value Text)
name :: LevelFourProperty -> Value Text
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
name :: Value Text
..}
    = LevelFourProperty {name :: Value Text
name = PropertyType "Name" LevelFourProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
haddock_workaround_ :: ()
hierarchyLevelArn :: Maybe (Value Text)
hierarchyLevelId :: Maybe (Value Text)
..}