Deployment.DefinitionStages.WithTemplate Interface

public static interface Deployment.DefinitionStages.WithTemplate

A deployment definition allowing the template to be specified.

Method Summary

Modifier and Type Method and Description
abstract WithParameters withTemplate(Object template)

Specifies the template as a Java object.

abstract WithParameters withTemplate(String templateJson)

Specifies the template as a JSON string.

abstract WithParameters withTemplateLink(String uri, String contentVersion)

Specifies the template as a URL.

Method Details

withTemplate

public abstract Deployment.DefinitionStages.WithParameters withTemplate(Object template)

Specifies the template as a Java object.

Parameters:

template - the Java object

Returns:

the next stage of the definition

withTemplate

public abstract Deployment.DefinitionStages.WithParameters withTemplate(String templateJson)

Specifies the template as a JSON string.

Parameters:

templateJson - the JSON string

Returns:

the next stage of the definition

Throws:

java.io.IOException - exception thrown from serialization/deserialization

withTemplateLink

public abstract Deployment.DefinitionStages.WithParameters withTemplateLink(String uri, String contentVersion)

Specifies the template as a URL.

Parameters:

uri - the location of the remote template file
contentVersion - the version of the template file

Returns:

the next stage of the definition

Applies to