Compartilhar via


DeploymentStackTemplateDefinitionInner Class

  • java.lang.Object
    • com.azure.resourcemanager.resources.fluent.models.DeploymentStackTemplateDefinitionInner

Implements

public final class DeploymentStackTemplateDefinitionInner
implements JsonSerializable<DeploymentStackTemplateDefinitionInner>

Export Template specific properties of the Deployment stack.

Constructor Summary

Constructor Description
DeploymentStackTemplateDefinitionInner()

Creates an instance of DeploymentStackTemplateDefinitionInner class.

Method Summary

Modifier and Type Method and Description
static DeploymentStackTemplateDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of DeploymentStackTemplateDefinitionInner from the JsonReader.

Object template()

Get the template property: The template content.

DeploymentStacksTemplateLink templateLink()

Get the templateLink property: The URI of the template.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DeploymentStackTemplateDefinitionInner withTemplate(Object template)

Set the template property: The template content.

DeploymentStackTemplateDefinitionInner withTemplateLink(DeploymentStacksTemplateLink templateLink)

Set the templateLink property: The URI of the template.

Methods inherited from java.lang.Object

Constructor Details

DeploymentStackTemplateDefinitionInner

public DeploymentStackTemplateDefinitionInner()

Creates an instance of DeploymentStackTemplateDefinitionInner class.

Method Details

fromJson

public static DeploymentStackTemplateDefinitionInner fromJson(JsonReader jsonReader)

Reads an instance of DeploymentStackTemplateDefinitionInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DeploymentStackTemplateDefinitionInner 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 DeploymentStackTemplateDefinitionInner.

template

public Object template()

Get the template property: The template content. Use this element to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.

Returns:

the template value.

templateLink

public DeploymentStacksTemplateLink templateLink()

Get the templateLink property: The URI of the template. Use either the templateLink property or the template property, but not both.

Returns:

the templateLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTemplate

public DeploymentStackTemplateDefinitionInner withTemplate(Object template)

Set the template property: The template content. Use this element to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both.

Parameters:

template - the template value to set.

Returns:

the DeploymentStackTemplateDefinitionInner object itself.

withTemplateLink

public DeploymentStackTemplateDefinitionInner withTemplateLink(DeploymentStacksTemplateLink templateLink)

Set the templateLink property: The URI of the template. Use either the templateLink property or the template property, but not both.

Parameters:

templateLink - the templateLink value to set.

Returns:

the DeploymentStackTemplateDefinitionInner object itself.

Applies to