你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
TemplateLink 类
- java.
lang. Object - com.
microsoft. azure. management. resources. TemplateLink
- com.
public class TemplateLink
表示对该模板的引用的实体。
构造函数摘要
构造函数 | 说明 | |
---|---|---|
TemplateLink() |
方法摘要
修饰符和类型 | 方法和描述 |
---|---|
java.lang.String |
contentVersion()
如果包含 Get,则必须与模板中的内容 |
java.lang.String |
id()
获取模板规格的资源 ID。 |
java.lang.String |
relativePath()
仅当此模板链接引用模板规格时才适用。 |
java.lang.String |
uri()
获取要部署的模板的 URI。 |
Template |
withContentVersion(String contentVersion)
设置(如果包含),必须与模板中的内容 |
Template |
withId(String id)
设置模板规格的资源 ID。 |
Template |
withRelativePath(String relativePath)
仅当此模板链接引用模板规格时设置适用。 |
Template |
withUri(String uri)
设置要部署的模板的 URI。 |
方法继承自 java.lang.Object
构造函数详细信息
TemplateLink
public TemplateLink()
方法详细信息
contentVersion
public String contentVersion()
如果包含 Get,则必须与模板中的 ContentVersion 匹配。
Returns:
id
public String id()
获取模板规范的资源 ID。请使用 id 或 uri 属性,但不能同时使用两者。
Returns:
relativePath
public String relativePath()
仅当此模板链接引用模板规格时才适用。可以选择性地使用此 relativePath 属性按路径引用模板规范项目。
Returns:
uri
public String uri()
获取要部署的模板的 URI。 使用 uri 或 id 属性,但不能同时使用两者。
Returns:
withContentVersion
public TemplateLink withContentVersion(String contentVersion)
设置(如果包含),必须与模板中的 ContentVersion 匹配。
Parameters:
Returns:
withId
public TemplateLink withId(String id)
设置模板规范的资源 ID。请使用 id 或 uri 属性,但不能同时使用两者。
Parameters:
Returns:
withRelativePath
public TemplateLink withRelativePath(String relativePath)
仅当此模板链接引用模板规格时设置适用。可以选择性地使用此 relativePath 属性按路径引用模板规范项目。
Parameters:
Returns:
withUri
public TemplateLink withUri(String uri)
设置要部署的模板的 URI。 使用 uri 或 id 属性,但不能同时使用两者。
Parameters:
Returns: