你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Deployment.DefinitionStages.WithTemplate 接口
public static interface Deployment.DefinitionStages.WithTemplate
允许指定模板的部署定义。
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
abstract
With |
withTemplate(Object template)
将模板指定为 Java 对象。 |
abstract
With |
withTemplate(String templateJson)
将模板指定为 JSON 字符串。 |
abstract
With |
withTemplateLink(String uri, String contentVersion)
将模板指定为 URL。 |
方法详细信息
withTemplate
public abstract Deployment.DefinitionStages.WithParameters withTemplate(Object template)
将模板指定为 Java 对象。
Parameters:
template
- Java 对象
Returns:
定义的下一阶段
withTemplate
public abstract Deployment.DefinitionStages.WithParameters withTemplate(String templateJson)
将模板指定为 JSON 字符串。
Parameters:
templateJson
- JSON 字符串
Returns:
定义的下一阶段
Throws:
java.io.IOException
- 序列化/反序列化引发的异常
withTemplateLink
public abstract Deployment.DefinitionStages.WithParameters withTemplateLink(String uri, String contentVersion)
将模板指定为 URL。
Parameters:
uri
- 远程模板文件的位置
contentVersion
- 模板文件的版本
Returns:
定义的下一阶段