다음을 통해 공유


TemplateLink Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.TemplateLink

public class TemplateLink

Entity representing the reference to the template.

Constructor Summary

Constructor Description
TemplateLink()

Method Summary

Modifier and Type Method and Description
java.lang.String contentVersion()

Get if included, must match the ContentVersion in the template.

java.lang.String id()

Get the resource id of a Template Spec.

java.lang.String relativePath()

Get applicable only if this template link references a Template Spec.

java.lang.String uri()

Get the URI of the template to deploy.

TemplateLink withContentVersion(String contentVersion)

Set if included, must match the ContentVersion in the template.

TemplateLink withId(String id)

Set the resource id of a Template Spec.

TemplateLink withRelativePath(String relativePath)

Set applicable only if this template link references a Template Spec.

TemplateLink withUri(String uri)

Set the URI of the template to deploy.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

public TemplateLink()

Method Details

public String contentVersion()

Get if included, must match the ContentVersion in the template.

Returns:

the contentVersion value

public String id()

Get the resource id of a Template Spec. Use either the id or uri property, but not both.

Returns:

the id value

public String relativePath()

Get applicable only if this template link references a Template Spec. This relativePath property can optionally be used to reference a Template Spec artifact by path.

Returns:

the relativePath value

public String uri()

Get the URI of the template to deploy. Use either the uri or id property, but not both.

Returns:

the uri value

public TemplateLink withContentVersion(String contentVersion)

Set if included, must match the ContentVersion in the template.

Parameters:

contentVersion - the contentVersion value to set

Returns:

the TemplateLink object itself.

public TemplateLink withId(String id)

Set the resource id of a Template Spec. Use either the id or uri property, but not both.

Parameters:

id - the id value to set

Returns:

the TemplateLink object itself.

public TemplateLink withRelativePath(String relativePath)

Set applicable only if this template link references a Template Spec. This relativePath property can optionally be used to reference a Template Spec artifact by path.

Parameters:

relativePath - the relativePath value to set

Returns:

the TemplateLink object itself.

public TemplateLink withUri(String uri)

Set the URI of the template to deploy. Use either the uri or id property, but not both.

Parameters:

uri - the uri value to set

Returns:

the TemplateLink object itself.

Applies to