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