Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.resources;
import com.fasterxml.jackson.annotation.JsonProperty;
Entity representing the reference to the template.
/**
* Entity representing the reference to the template.
*/
public class TemplateLink {
The URI of the template to deploy. Use either the uri or id property,
but not both.
/**
* The URI of the template to deploy. Use either the uri or id property,
* but not both.
*/
@JsonProperty(value = "uri")
private String uri;
The resource id of a Template Spec. Use either the id or uri property,
but not both.
/**
* The resource id of a Template Spec. Use either the id or uri property,
* but not both.
*/
@JsonProperty(value = "id")
private String id;
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.
/**
* 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.
*/
@JsonProperty(value = "relativePath")
private String relativePath;
If included, must match the ContentVersion in the template.
/**
* If included, must match the ContentVersion in the template.
*/
@JsonProperty(value = "contentVersion")
private String contentVersion;
Get the URI of the template to deploy. Use either the uri or id property, but not both.
Returns: the uri value
/**
* Get the URI of the template to deploy. Use either the uri or id property, but not both.
*
* @return the uri value
*/
public String uri() {
return this.uri;
}
Set the URI of the template to deploy. Use either the uri or id property, but not both.
Params: - uri – the uri value to set
Returns: the TemplateLink object itself.
/**
* Set the URI of the template to deploy. Use either the uri or id property, but not both.
*
* @param uri the uri value to set
* @return the TemplateLink object itself.
*/
public TemplateLink withUri(String uri) {
this.uri = uri;
return this;
}
Get the resource id of a Template Spec. Use either the id or uri property, but not both.
Returns: the id value
/**
* Get the resource id of a Template Spec. Use either the id or uri property, but not both.
*
* @return the id value
*/
public String id() {
return this.id;
}
Set the resource id of a Template Spec. Use either the id or uri property, but not both.
Params: - id – the id value to set
Returns: the TemplateLink object itself.
/**
* Set the resource id of a Template Spec. Use either the id or uri property, but not both.
*
* @param id the id value to set
* @return the TemplateLink object itself.
*/
public TemplateLink withId(String id) {
this.id = id;
return this;
}
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
/**
* 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.
*
* @return the relativePath value
*/
public String relativePath() {
return this.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.
Params: - relativePath – the relativePath value to set
Returns: the TemplateLink object itself.
/**
* 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.
*
* @param relativePath the relativePath value to set
* @return the TemplateLink object itself.
*/
public TemplateLink withRelativePath(String relativePath) {
this.relativePath = relativePath;
return this;
}
Get if included, must match the ContentVersion in the template.
Returns: the contentVersion value
/**
* Get if included, must match the ContentVersion in the template.
*
* @return the contentVersion value
*/
public String contentVersion() {
return this.contentVersion;
}
Set if included, must match the ContentVersion in the template.
Params: - contentVersion – the contentVersion value to set
Returns: the TemplateLink object itself.
/**
* Set if included, must match the ContentVersion in the template.
*
* @param contentVersion the contentVersion value to set
* @return the TemplateLink object itself.
*/
public TemplateLink withContentVersion(String contentVersion) {
this.contentVersion = contentVersion;
return this;
}
}