你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
GenericResource.DefinitionStages.WithPlan 接口
public static interface GenericResource.DefinitionStages.WithPlan
允许指定计划的泛型资源定义。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
abstract
With |
withPlan(String name, String publisher, String product, String promotionCode)
指定资源的计划。 |
abstract
With |
withoutPlan()
指定资源的计划。 |
方法详细信息
withPlan
public abstract GenericResource.DefinitionStages.WithCreate withPlan(String name, String publisher, String product, String promotionCode)
指定资源的计划。 只能为第三方资源设置计划。
Parameters:
name
- 计划的名称
publisher
- 计划的发布者
product
- 产品名称
promotionCode
- 促销代码(如果有)
Returns:
定义的下一阶段
withoutPlan
public abstract GenericResource.DefinitionStages.WithCreate withoutPlan()
指定资源的计划。
Returns:
定义的下一阶段