TemplateLink Class
- java.
lang. Object - com.
azure. resourcemanager. resources. models. TemplateLink
- com.
Implements
public final class TemplateLink
implements JsonSerializable<TemplateLink>
Entity representing the reference to the template.
Constructor Summary
Constructor | Description |
---|---|
TemplateLink() |
Creates an instance of Template |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
contentVersion()
Get the content |
static
Template |
fromJson(JsonReader jsonReader)
Reads an instance of Template |
String |
id()
Get the id property: The resource id of a Template Spec. |
String |
queryString()
Get the query |
String |
relativePath()
Get the relative |
Json |
toJson(JsonWriter jsonWriter) |
String |
uri()
Get the uri property: The URI of the template to deploy. |
void |
validate()
Validates the instance. |
Template |
withContentVersion(String contentVersion)
Set the content |
Template |
withId(String id)
Set the id property: The resource id of a Template Spec. |
Template |
withQueryString(String queryString)
Set the query |
Template |
withRelativePath(String relativePath)
Set the relative |
Template |
withUri(String uri)
Set the uri property: The URI of the template to deploy. |
Methods inherited from java.lang.Object
Constructor Details
TemplateLink
public TemplateLink()
Creates an instance of TemplateLink class.
Method Details
contentVersion
public String contentVersion()
Get the contentVersion property: If included, must match the ContentVersion in the template.
Returns:
fromJson
public static TemplateLink fromJson(JsonReader jsonReader)
Reads an instance of TemplateLink from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The resource id of a Template Spec. Use either the id or uri property, but not both.
Returns:
queryString
public String queryString()
Get the queryString property: The query string (for example, a SAS token) to be used with the templateLink URI.
Returns:
relativePath
public String relativePath()
Get the relativePath property: The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs.
Returns:
toJson
uri
public String uri()
Get the uri property: The URI of the template to deploy. Use either the uri or id property, but not both.
Returns:
validate
public void validate()
Validates the instance.
withContentVersion
public TemplateLink withContentVersion(String contentVersion)
Set the contentVersion property: If included, must match the ContentVersion in the template.
Parameters:
Returns:
withId
public TemplateLink withId(String id)
Set the id property: The resource id of a Template Spec. Use either the id or uri property, but not both.
Parameters:
Returns:
withQueryString
public TemplateLink withQueryString(String queryString)
Set the queryString property: The query string (for example, a SAS token) to be used with the templateLink URI.
Parameters:
Returns:
withRelativePath
public TemplateLink withRelativePath(String relativePath)
Set the relativePath property: The relativePath property can be used to deploy a linked template at a location relative to the parent. If the parent template was linked with a TemplateSpec, this will reference an artifact in the TemplateSpec. If the parent was linked with a URI, the child deployment will be a combination of the parent and relativePath URIs.
Parameters:
Returns:
withUri
public TemplateLink withUri(String uri)
Set the uri property: The URI of the template to deploy. Use either the uri or id property, but not both.
Parameters:
Returns:
Applies to
Azure SDK for Java