Compartilhar via


DeploymentStacksTemplateLink Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.models.DeploymentStacksTemplateLink

Implements

public final class DeploymentStacksTemplateLink
implements JsonSerializable<DeploymentStacksTemplateLink>

Entity representing the reference to the template.

Constructor Summary

Constructor Description
DeploymentStacksTemplateLink()

Creates an instance of DeploymentStacksTemplateLink class.

Method Summary

Modifier and Type Method and Description
String contentVersion()

Get the contentVersion property: If included, must match the ContentVersion in the template.

static DeploymentStacksTemplateLink fromJson(JsonReader jsonReader)

Reads an instance of DeploymentStacksTemplateLink from the JsonReader.

String id()

Get the id property: The resourceId of a Template Spec.

String queryString()

Get the queryString property: The query string (for example, a SAS token) to be used with the templateLink URI.

String relativePath()

Get the relativePath property: The relativePath property can be used to deploy a linked template at a location relative to the parent.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: The URI of the template to deploy.

void validate()

Validates the instance.

DeploymentStacksTemplateLink withContentVersion(String contentVersion)

Set the contentVersion property: If included, must match the ContentVersion in the template.

DeploymentStacksTemplateLink withId(String id)

Set the id property: The resourceId of a Template Spec.

DeploymentStacksTemplateLink withQueryString(String queryString)

Set the queryString property: The query string (for example, a SAS token) to be used with the templateLink URI.

DeploymentStacksTemplateLink 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.

DeploymentStacksTemplateLink withUri(String uri)

Set the uri property: The URI of the template to deploy.

Methods inherited from java.lang.Object

Constructor Details

public DeploymentStacksTemplateLink()

Creates an instance of DeploymentStacksTemplateLink class.

Method Details

public String contentVersion()

Get the contentVersion property: If included, must match the ContentVersion in the template.

Returns:

the contentVersion value.

public static DeploymentStacksTemplateLink fromJson(JsonReader jsonReader)

Reads an instance of DeploymentStacksTemplateLink from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeploymentStacksTemplateLink if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the DeploymentStacksTemplateLink.

public String id()

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

Returns:

the id value.

public String queryString()

Get the queryString property: The query string (for example, a SAS token) to be used with the templateLink URI.

Returns:

the queryString value.

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:

the relativePath value.

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

the uri value.

public void validate()

Validates the instance.

public DeploymentStacksTemplateLink withContentVersion(String contentVersion)

Set the contentVersion property: If included, must match the ContentVersion in the template.

Parameters:

contentVersion - the contentVersion value to set.

Returns:

the DeploymentStacksTemplateLink object itself.

public DeploymentStacksTemplateLink withId(String id)

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

Parameters:

id - the id value to set.

Returns:

the DeploymentStacksTemplateLink object itself.

public DeploymentStacksTemplateLink withQueryString(String queryString)

Set the queryString property: The query string (for example, a SAS token) to be used with the templateLink URI.

Parameters:

queryString - the queryString value to set.

Returns:

the DeploymentStacksTemplateLink object itself.

public DeploymentStacksTemplateLink 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:

relativePath - the relativePath value to set.

Returns:

the DeploymentStacksTemplateLink object itself.

public DeploymentStacksTemplateLink 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:

uri - the uri value to set.

Returns:

the DeploymentStacksTemplateLink object itself.

Applies to