Class ApplicationInsightsComponentFavoriteInner
java.lang.Object
com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentFavoriteInner
Properties that define a favorite that is associated to an Application Insights component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncategory()
Get the category property: Favorite category, as defined by the user at creation time.config()
Get the config property: Configuration of this particular favorite, which are driven by the Azure portal UX.Get the favoriteId property: Internally assigned unique id of the favorite definition.Get the favoriteType property: Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.Get the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a template.name()
Get the name property: The user-defined name of the favorite.Get the sourceType property: The source of the favorite definition.tags()
Get the tags property: A list of 0 or more tags that are associated with this favorite definition.Get the timeModified property: Date and time in UTC of the last modification that was made to this favorite definition.userId()
Get the userId property: Unique user id of the specific user that owns this favorite.void
validate()
Validates the instance.version()
Get the version property: This instance's version of the data model.withCategory
(String category) Set the category property: Favorite category, as defined by the user at creation time.withConfig
(String config) Set the config property: Configuration of this particular favorite, which are driven by the Azure portal UX.withFavoriteType
(FavoriteType favoriteType) Set the favoriteType property: Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.withIsGeneratedFromTemplate
(Boolean isGeneratedFromTemplate) Set the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a template.Set the name property: The user-defined name of the favorite.withSourceType
(String sourceType) Set the sourceType property: The source of the favorite definition.Set the tags property: A list of 0 or more tags that are associated with this favorite definition.withVersion
(String version) Set the version property: This instance's version of the data model.
-
Constructor Details
-
ApplicationInsightsComponentFavoriteInner
public ApplicationInsightsComponentFavoriteInner()
-
-
Method Details
-
name
Get the name property: The user-defined name of the favorite.- Returns:
- the name value.
-
withName
Set the name property: The user-defined name of the favorite.- Parameters:
name
- the name value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
config
Get the config property: Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON.- Returns:
- the config value.
-
withConfig
Set the config property: Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON.- Parameters:
config
- the config value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
version
Get the version property: This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.- Returns:
- the version value.
-
withVersion
Set the version property: This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.- Parameters:
version
- the version value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
favoriteId
Get the favoriteId property: Internally assigned unique id of the favorite definition.- Returns:
- the favoriteId value.
-
favoriteType
Get the favoriteType property: Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.- Returns:
- the favoriteType value.
-
withFavoriteType
Set the favoriteType property: Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.- Parameters:
favoriteType
- the favoriteType value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
sourceType
Get the sourceType property: The source of the favorite definition.- Returns:
- the sourceType value.
-
withSourceType
Set the sourceType property: The source of the favorite definition.- Parameters:
sourceType
- the sourceType value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
timeModified
Get the timeModified property: Date and time in UTC of the last modification that was made to this favorite definition.- Returns:
- the timeModified value.
-
tags
Get the tags property: A list of 0 or more tags that are associated with this favorite definition.- Returns:
- the tags value.
-
withTags
Set the tags property: A list of 0 or more tags that are associated with this favorite definition.- Parameters:
tags
- the tags value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
category
Get the category property: Favorite category, as defined by the user at creation time.- Returns:
- the category value.
-
withCategory
Set the category property: Favorite category, as defined by the user at creation time.- Parameters:
category
- the category value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
isGeneratedFromTemplate
Get the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a template.- Returns:
- the isGeneratedFromTemplate value.
-
withIsGeneratedFromTemplate
public ApplicationInsightsComponentFavoriteInner withIsGeneratedFromTemplate(Boolean isGeneratedFromTemplate) Set the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a template.- Parameters:
isGeneratedFromTemplate
- the isGeneratedFromTemplate value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
userId
Get the userId property: Unique user id of the specific user that owns this favorite.- Returns:
- the userId value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-