Class ApplicationInsightsComponentFavoriteInner
- java.lang.Object
-
- com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentFavoriteInner
-
public final class ApplicationInsightsComponentFavoriteInner extends Object
Properties that define a favorite that is associated to an Application Insights component.
-
-
Constructor Summary
Constructors Constructor Description ApplicationInsightsComponentFavoriteInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
category()
Get the category property: Favorite category, as defined by the user at creation time.String
config()
Get the config property: Configuration of this particular favorite, which are driven by the Azure portal UX.String
favoriteId()
Get the favoriteId property: Internally assigned unique id of the favorite definition.FavoriteType
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.Boolean
isGeneratedFromTemplate()
Get the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a template.String
name()
Get the name property: The user-defined name of the favorite.String
sourceType()
Get the sourceType property: The source of the favorite definition.List<String>
tags()
Get the tags property: A list of 0 or more tags that are associated with this favorite definition.String
timeModified()
Get the timeModified property: Date and time in UTC of the last modification that was made to this favorite definition.String
userId()
Get the userId property: Unique user id of the specific user that owns this favorite.void
validate()
Validates the instance.String
version()
Get the version property: This instance's version of the data model.ApplicationInsightsComponentFavoriteInner
withCategory(String category)
Set the category property: Favorite category, as defined by the user at creation time.ApplicationInsightsComponentFavoriteInner
withConfig(String config)
Set the config property: Configuration of this particular favorite, which are driven by the Azure portal UX.ApplicationInsightsComponentFavoriteInner
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.ApplicationInsightsComponentFavoriteInner
withIsGeneratedFromTemplate(Boolean isGeneratedFromTemplate)
Set the isGeneratedFromTemplate property: Flag denoting wether or not this favorite was generated from a template.ApplicationInsightsComponentFavoriteInner
withName(String name)
Set the name property: The user-defined name of the favorite.ApplicationInsightsComponentFavoriteInner
withSourceType(String sourceType)
Set the sourceType property: The source of the favorite definition.ApplicationInsightsComponentFavoriteInner
withTags(List<String> tags)
Set the tags property: A list of 0 or more tags that are associated with this favorite definition.ApplicationInsightsComponentFavoriteInner
withVersion(String version)
Set the version property: This instance's version of the data model.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The user-defined name of the favorite.- Returns:
- the name value.
-
withName
public ApplicationInsightsComponentFavoriteInner withName(String name)
Set the name property: The user-defined name of the favorite.- Parameters:
name
- the name value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
config
public String 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
public ApplicationInsightsComponentFavoriteInner withConfig(String config)
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
public String 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
public ApplicationInsightsComponentFavoriteInner withVersion(String version)
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
public String favoriteId()
Get the favoriteId property: Internally assigned unique id of the favorite definition.- Returns:
- the favoriteId value.
-
favoriteType
public FavoriteType 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
public ApplicationInsightsComponentFavoriteInner 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.- Parameters:
favoriteType
- the favoriteType value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
sourceType
public String sourceType()
Get the sourceType property: The source of the favorite definition.- Returns:
- the sourceType value.
-
withSourceType
public ApplicationInsightsComponentFavoriteInner withSourceType(String sourceType)
Set the sourceType property: The source of the favorite definition.- Parameters:
sourceType
- the sourceType value to set.- Returns:
- the ApplicationInsightsComponentFavoriteInner object itself.
-
timeModified
public String 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
public List<String> tags()
Get the tags property: A list of 0 or more tags that are associated with this favorite definition.- Returns:
- the tags value.
-
withTags
public ApplicationInsightsComponentFavoriteInner withTags(List<String> tags)
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
public String category()
Get the category property: Favorite category, as defined by the user at creation time.- Returns:
- the category value.
-
withCategory
public ApplicationInsightsComponentFavoriteInner withCategory(String category)
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
public Boolean 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
public String 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.
-
-