All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.management.resources.TemplateLink Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * 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.
 */
public class TemplateLink {
    /**
     * 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.
     */
    @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.
     */
    @JsonProperty(value = "relativePath")
    private String relativePath;

    /**
     * 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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @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.
     *
     * @return the contentVersion value
     */
    public String contentVersion() {
        return this.contentVersion;
    }

    /**
     * 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;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy