module Stratosphere.ApiGateway.UsagePlan (
        module Exports, UsagePlan(..), mkUsagePlan
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ApiGateway.UsagePlan.ApiStageProperty as Exports
import {-# SOURCE #-} Stratosphere.ApiGateway.UsagePlan.QuotaSettingsProperty as Exports
import {-# SOURCE #-} Stratosphere.ApiGateway.UsagePlan.ThrottleSettingsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data UsagePlan
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html>
    UsagePlan {UsagePlan -> ()
haddock_workaround_ :: (),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-apistages>
               UsagePlan -> Maybe [ApiStageProperty]
apiStages :: (Prelude.Maybe [ApiStageProperty]),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-description>
               UsagePlan -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-quota>
               UsagePlan -> Maybe QuotaSettingsProperty
quota :: (Prelude.Maybe QuotaSettingsProperty),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-tags>
               UsagePlan -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-throttle>
               UsagePlan -> Maybe ThrottleSettingsProperty
throttle :: (Prelude.Maybe ThrottleSettingsProperty),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-usageplan.html#cfn-apigateway-usageplan-usageplanname>
               UsagePlan -> Maybe (Value Text)
usagePlanName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (UsagePlan -> UsagePlan -> Bool
(UsagePlan -> UsagePlan -> Bool)
-> (UsagePlan -> UsagePlan -> Bool) -> Eq UsagePlan
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UsagePlan -> UsagePlan -> Bool
== :: UsagePlan -> UsagePlan -> Bool
$c/= :: UsagePlan -> UsagePlan -> Bool
/= :: UsagePlan -> UsagePlan -> Bool
Prelude.Eq, Int -> UsagePlan -> ShowS
[UsagePlan] -> ShowS
UsagePlan -> String
(Int -> UsagePlan -> ShowS)
-> (UsagePlan -> String)
-> ([UsagePlan] -> ShowS)
-> Show UsagePlan
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UsagePlan -> ShowS
showsPrec :: Int -> UsagePlan -> ShowS
$cshow :: UsagePlan -> String
show :: UsagePlan -> String
$cshowList :: [UsagePlan] -> ShowS
showList :: [UsagePlan] -> ShowS
Prelude.Show)
mkUsagePlan :: UsagePlan
mkUsagePlan :: UsagePlan
mkUsagePlan
  = UsagePlan
      {haddock_workaround_ :: ()
haddock_workaround_ = (), apiStages :: Maybe [ApiStageProperty]
apiStages = Maybe [ApiStageProperty]
forall a. Maybe a
Prelude.Nothing,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, quota :: Maybe QuotaSettingsProperty
quota = Maybe QuotaSettingsProperty
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing, throttle :: Maybe ThrottleSettingsProperty
throttle = Maybe ThrottleSettingsProperty
forall a. Maybe a
Prelude.Nothing,
       usagePlanName :: Maybe (Value Text)
usagePlanName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UsagePlan where
  toResourceProperties :: UsagePlan -> ResourceProperties
toResourceProperties UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApiGateway::UsagePlan",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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 -> [ApiStageProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApiStages" ([ApiStageProperty] -> (Key, Value))
-> Maybe [ApiStageProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ApiStageProperty]
apiStages,
                            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
"Description" (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)
description,
                            Key -> QuotaSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Quota" (QuotaSettingsProperty -> (Key, Value))
-> Maybe QuotaSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QuotaSettingsProperty
quota,
                            Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
                            Key -> ThrottleSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Throttle" (ThrottleSettingsProperty -> (Key, Value))
-> Maybe ThrottleSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ThrottleSettingsProperty
throttle,
                            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
"UsagePlanName" (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)
usagePlanName])}
instance JSON.ToJSON UsagePlan where
  toJSON :: UsagePlan -> Value
toJSON UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = [(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 -> [ApiStageProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApiStages" ([ApiStageProperty] -> (Key, Value))
-> Maybe [ApiStageProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ApiStageProperty]
apiStages,
               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
"Description" (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)
description,
               Key -> QuotaSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Quota" (QuotaSettingsProperty -> (Key, Value))
-> Maybe QuotaSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe QuotaSettingsProperty
quota,
               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
               Key -> ThrottleSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Throttle" (ThrottleSettingsProperty -> (Key, Value))
-> Maybe ThrottleSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ThrottleSettingsProperty
throttle,
               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
"UsagePlanName" (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)
usagePlanName]))
instance Property "ApiStages" UsagePlan where
  type PropertyType "ApiStages" UsagePlan = [ApiStageProperty]
  set :: PropertyType "ApiStages" UsagePlan -> UsagePlan -> UsagePlan
set PropertyType "ApiStages" UsagePlan
newValue UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = UsagePlan {apiStages :: Maybe [ApiStageProperty]
apiStages = [ApiStageProperty] -> Maybe [ApiStageProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ApiStageProperty]
PropertyType "ApiStages" UsagePlan
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
instance Property "Description" UsagePlan where
  type PropertyType "Description" UsagePlan = Value Prelude.Text
  set :: PropertyType "Description" UsagePlan -> UsagePlan -> UsagePlan
set PropertyType "Description" UsagePlan
newValue UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = UsagePlan {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" UsagePlan
Value Text
newValue, Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
instance Property "Quota" UsagePlan where
  type PropertyType "Quota" UsagePlan = QuotaSettingsProperty
  set :: PropertyType "Quota" UsagePlan -> UsagePlan -> UsagePlan
set PropertyType "Quota" UsagePlan
newValue UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = UsagePlan {quota :: Maybe QuotaSettingsProperty
quota = QuotaSettingsProperty -> Maybe QuotaSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Quota" UsagePlan
QuotaSettingsProperty
newValue, Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
instance Property "Tags" UsagePlan where
  type PropertyType "Tags" UsagePlan = [Tag]
  set :: PropertyType "Tags" UsagePlan -> UsagePlan -> UsagePlan
set PropertyType "Tags" UsagePlan
newValue UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = UsagePlan {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" UsagePlan
newValue, Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
instance Property "Throttle" UsagePlan where
  type PropertyType "Throttle" UsagePlan = ThrottleSettingsProperty
  set :: PropertyType "Throttle" UsagePlan -> UsagePlan -> UsagePlan
set PropertyType "Throttle" UsagePlan
newValue UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = UsagePlan {throttle :: Maybe ThrottleSettingsProperty
throttle = ThrottleSettingsProperty -> Maybe ThrottleSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Throttle" UsagePlan
ThrottleSettingsProperty
newValue, Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
()
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
usagePlanName :: Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
usagePlanName :: Maybe (Value Text)
..}
instance Property "UsagePlanName" UsagePlan where
  type PropertyType "UsagePlanName" UsagePlan = Value Prelude.Text
  set :: PropertyType "UsagePlanName" UsagePlan -> UsagePlan -> UsagePlan
set PropertyType "UsagePlanName" UsagePlan
newValue UsagePlan {Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: UsagePlan -> ()
apiStages :: UsagePlan -> Maybe [ApiStageProperty]
description :: UsagePlan -> Maybe (Value Text)
quota :: UsagePlan -> Maybe QuotaSettingsProperty
tags :: UsagePlan -> Maybe [Tag]
throttle :: UsagePlan -> Maybe ThrottleSettingsProperty
usagePlanName :: UsagePlan -> Maybe (Value Text)
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
usagePlanName :: Maybe (Value Text)
..}
    = UsagePlan {usagePlanName :: Maybe (Value Text)
usagePlanName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UsagePlanName" UsagePlan
Value Text
newValue, Maybe [Tag]
Maybe [ApiStageProperty]
Maybe (Value Text)
Maybe QuotaSettingsProperty
Maybe ThrottleSettingsProperty
()
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
haddock_workaround_ :: ()
apiStages :: Maybe [ApiStageProperty]
description :: Maybe (Value Text)
quota :: Maybe QuotaSettingsProperty
tags :: Maybe [Tag]
throttle :: Maybe ThrottleSettingsProperty
..}