Aracılığıyla paylaş


WorkbookTemplateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.applicationinsights.fluent.models.WorkbookTemplateProperties

Implements

public final class WorkbookTemplateProperties
implements JsonSerializable<WorkbookTemplateProperties>

Properties that contain a workbook template.

Constructor Summary

Constructor Description
WorkbookTemplateProperties()

Creates an instance of WorkbookTemplateProperties class.

Method Summary

Modifier and Type Method and Description
String author()

Get the author property: Information about the author of the workbook template.

static WorkbookTemplateProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkbookTemplateProperties from the JsonReader.

List<WorkbookTemplateGallery> galleries()

Get the galleries property: Workbook galleries supported by the template.

Map<String,List<WorkbookTemplateLocalizedGallery>> localized()

Get the localized property: Key value pair of localized gallery.

Integer priority()

Get the priority property: Priority of the template.

Object templateData()

Get the templateData property: Valid JSON object containing workbook template payload.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WorkbookTemplateProperties withAuthor(String author)

Set the author property: Information about the author of the workbook template.

WorkbookTemplateProperties withGalleries(List<WorkbookTemplateGallery> galleries)

Set the galleries property: Workbook galleries supported by the template.

WorkbookTemplateProperties withLocalized(Map<String,List<WorkbookTemplateLocalizedGallery>> localized)

Set the localized property: Key value pair of localized gallery.

WorkbookTemplateProperties withPriority(Integer priority)

Set the priority property: Priority of the template.

WorkbookTemplateProperties withTemplateData(Object templateData)

Set the templateData property: Valid JSON object containing workbook template payload.

Methods inherited from java.lang.Object

Constructor Details

WorkbookTemplateProperties

public WorkbookTemplateProperties()

Creates an instance of WorkbookTemplateProperties class.

Method Details

author

public String author()

Get the author property: Information about the author of the workbook template.

Returns:

the author value.

fromJson

public static WorkbookTemplateProperties fromJson(JsonReader jsonReader)

Reads an instance of WorkbookTemplateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

galleries

public List<WorkbookTemplateGallery> galleries()

Get the galleries property: Workbook galleries supported by the template.

Returns:

the galleries value.

localized

public Map<String,List<WorkbookTemplateLocalizedGallery>> localized()

Get the localized property: Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.

Returns:

the localized value.

priority

public Integer priority()

Get the priority property: Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.

Returns:

the priority value.

templateData

public Object templateData()

Get the templateData property: Valid JSON object containing workbook template payload.

Returns:

the templateData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuthor

public WorkbookTemplateProperties withAuthor(String author)

Set the author property: Information about the author of the workbook template.

Parameters:

author - the author value to set.

Returns:

the WorkbookTemplateProperties object itself.

withGalleries

public WorkbookTemplateProperties withGalleries(List<WorkbookTemplateGallery> galleries)

Set the galleries property: Workbook galleries supported by the template.

Parameters:

galleries - the galleries value to set.

Returns:

the WorkbookTemplateProperties object itself.

withLocalized

public WorkbookTemplateProperties withLocalized(Map<String,List<WorkbookTemplateLocalizedGallery>> localized)

Set the localized property: Key value pair of localized gallery. Each key is the locale code of languages supported by the Azure portal.

Parameters:

localized - the localized value to set.

Returns:

the WorkbookTemplateProperties object itself.

withPriority

public WorkbookTemplateProperties withPriority(Integer priority)

Set the priority property: Priority of the template. Determines which template to open when a workbook gallery is opened in viewer mode.

Parameters:

priority - the priority value to set.

Returns:

the WorkbookTemplateProperties object itself.

withTemplateData

public WorkbookTemplateProperties withTemplateData(Object templateData)

Set the templateData property: Valid JSON object containing workbook template payload.

Parameters:

templateData - the templateData value to set.

Returns:

the WorkbookTemplateProperties object itself.

Applies to