com.azure.resourcemanager.applicationinsights.fluent.models.WorkbookTemplateInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-applicationinsights Show documentation
Show all versions of azure-resourcemanager-applicationinsights Show documentation
This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-04-01.
The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.applicationinsights.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateGallery;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateLocalizedGallery;
import com.azure.resourcemanager.applicationinsights.models.WorkbookTemplateResource;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/** An Application Insights workbook template definition. */
@Fluent
public final class WorkbookTemplateInner extends WorkbookTemplateResource {
/*
* Metadata describing a workbook template for an Azure resource.
*/
@JsonProperty(value = "properties")
private WorkbookTemplateProperties innerProperties;
/**
* Get the innerProperties property: Metadata describing a workbook template for an Azure resource.
*
* @return the innerProperties value.
*/
private WorkbookTemplateProperties innerProperties() {
return this.innerProperties;
}
/** {@inheritDoc} */
@Override
public WorkbookTemplateInner withLocation(String location) {
super.withLocation(location);
return this;
}
/** {@inheritDoc} */
@Override
public WorkbookTemplateInner withTags(Map tags) {
super.withTags(tags);
return this;
}
/**
* Get the priority property: Priority of the template. Determines which template to open when a workbook gallery is
* opened in viewer mode.
*
* @return the priority value.
*/
public Integer priority() {
return this.innerProperties() == null ? null : this.innerProperties().priority();
}
/**
* Set the priority property: Priority of the template. Determines which template to open when a workbook gallery is
* opened in viewer mode.
*
* @param priority the priority value to set.
* @return the WorkbookTemplateInner object itself.
*/
public WorkbookTemplateInner withPriority(Integer priority) {
if (this.innerProperties() == null) {
this.innerProperties = new WorkbookTemplateProperties();
}
this.innerProperties().withPriority(priority);
return this;
}
/**
* Get the author property: Information about the author of the workbook template.
*
* @return the author value.
*/
public String author() {
return this.innerProperties() == null ? null : this.innerProperties().author();
}
/**
* Set the author property: Information about the author of the workbook template.
*
* @param author the author value to set.
* @return the WorkbookTemplateInner object itself.
*/
public WorkbookTemplateInner withAuthor(String author) {
if (this.innerProperties() == null) {
this.innerProperties = new WorkbookTemplateProperties();
}
this.innerProperties().withAuthor(author);
return this;
}
/**
* Get the templateData property: Valid JSON object containing workbook template payload.
*
* @return the templateData value.
*/
public Object templateData() {
return this.innerProperties() == null ? null : this.innerProperties().templateData();
}
/**
* Set the templateData property: Valid JSON object containing workbook template payload.
*
* @param templateData the templateData value to set.
* @return the WorkbookTemplateInner object itself.
*/
public WorkbookTemplateInner withTemplateData(Object templateData) {
if (this.innerProperties() == null) {
this.innerProperties = new WorkbookTemplateProperties();
}
this.innerProperties().withTemplateData(templateData);
return this;
}
/**
* Get the galleries property: Workbook galleries supported by the template.
*
* @return the galleries value.
*/
public List galleries() {
return this.innerProperties() == null ? null : this.innerProperties().galleries();
}
/**
* Set the galleries property: Workbook galleries supported by the template.
*
* @param galleries the galleries value to set.
* @return the WorkbookTemplateInner object itself.
*/
public WorkbookTemplateInner withGalleries(List galleries) {
if (this.innerProperties() == null) {
this.innerProperties = new WorkbookTemplateProperties();
}
this.innerProperties().withGalleries(galleries);
return this;
}
/**
* Get the localized property: Key value pair of localized gallery. Each key is the locale code of languages
* supported by the Azure portal.
*
* @return the localized value.
*/
public Map> localized() {
return this.innerProperties() == null ? null : this.innerProperties().localized();
}
/**
* Set the localized property: Key value pair of localized gallery. Each key is the locale code of languages
* supported by the Azure portal.
*
* @param localized the localized value to set.
* @return the WorkbookTemplateInner object itself.
*/
public WorkbookTemplateInner withLocalized(Map> localized) {
if (this.innerProperties() == null) {
this.innerProperties = new WorkbookTemplateProperties();
}
this.innerProperties().withLocalized(localized);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
if (innerProperties() != null) {
innerProperties().validate();
}
}
}