RecommendationRuleInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. RecommendationRuleInner
- com.
- com.
- com.
public final class RecommendationRuleInner
extends ProxyOnlyResource
Represents a recommendation rule that the recommendation engine can perform.
Constructor Summary
Constructor | Description |
---|---|
RecommendationRuleInner() |
Creates an instance of Recommendation |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
actionName()
Get the action |
String |
bladeName()
Get the blade |
List<String> |
categoryTags()
Get the category |
Channels |
channels()
Get the channels property: List of available channels that this rule applies. |
String |
description()
Get the description property: Localized detailed description of the rule. |
String |
displayName()
Get the display |
String |
extensionName()
Get the extension |
String |
forwardLink()
Get the forward |
static
Recommendation |
fromJson(JsonReader jsonReader)
Reads an instance of Recommendation |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Boolean |
isDynamic()
Get the is |
Notification |
level()
Get the level property: Level of impact indicating how critical this rule is. |
String |
message()
Get the message property: Localized name of the rule (Good for UI). |
String |
name()
Get the name property: The name of the resource. |
UUID |
recommendationId()
Get the recommendation |
String |
recommendationName()
Get the recommendation |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Recommendation |
withActionName(String actionName)
Set the action |
Recommendation |
withBladeName(String bladeName)
Set the blade |
Recommendation |
withChannels(Channels channels)
Set the channels property: List of available channels that this rule applies. |
Recommendation |
withDescription(String description)
Set the description property: Localized detailed description of the rule. |
Recommendation |
withDisplayName(String displayName)
Set the display |
Recommendation |
withExtensionName(String extensionName)
Set the extension |
Recommendation |
withForwardLink(String forwardLink)
Set the forward |
Recommendation |
withIsDynamic(Boolean isDynamic)
Set the is |
Recommendation |
withKind(String kind)
Set the kind property: Kind of resource. |
Recommendation |
withLevel(NotificationLevel level)
Set the level property: Level of impact indicating how critical this rule is. |
Recommendation |
withMessage(String message)
Set the message property: Localized name of the rule (Good for UI). |
Recommendation |
withRecommendationId(UUID recommendationId)
Set the recommendation |
Recommendation |
withRecommendationName(String recommendationName)
Set the recommendation |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
RecommendationRuleInner
public RecommendationRuleInner()
Creates an instance of RecommendationRuleInner class.
Method Details
actionName
public String actionName()
Get the actionName property: Name of action that is recommended by this rule in string.
Returns:
bladeName
public String bladeName()
Get the bladeName property: Deep link to a blade on the portal. Applicable to dynamic rule only.
Returns:
categoryTags
public List
Get the categoryTags property: The list of category tags that this recommendation rule belongs to.
Returns:
channels
public Channels channels()
Get the channels property: List of available channels that this rule applies.
Returns:
description
public String description()
Get the description property: Localized detailed description of the rule.
Returns:
displayName
public String displayName()
Get the displayName property: UI friendly name of the rule.
Returns:
extensionName
public String extensionName()
Get the extensionName property: Extension name of the portal if exists. Applicable to dynamic rule only.
Returns:
forwardLink
public String forwardLink()
Get the forwardLink property: Forward link to an external document associated with the rule. Applicable to dynamic rule only.
Returns:
fromJson
public static RecommendationRuleInner fromJson(JsonReader jsonReader)
Reads an instance of RecommendationRuleInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RecommendationRuleInner.id()Returns:
isDynamic
public Boolean isDynamic()
Get the isDynamic property: True if this is associated with a dynamically added rule.
Returns:
level
public NotificationLevel level()
Get the level property: Level of impact indicating how critical this rule is.
Returns:
message
public String message()
Get the message property: Localized name of the rule (Good for UI).
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RecommendationRuleInner.name()Returns:
recommendationId
public UUID recommendationId()
Get the recommendationId property: Recommendation ID of an associated recommendation object tied to the rule, if exists. If such an object doesn't exist, it is set to null.
Returns:
recommendationName
public String recommendationName()
Get the recommendationName property: Unique name of the rule.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RecommendationRuleInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RecommendationRuleInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
RecommendationRuleInner.validate()withActionName
public RecommendationRuleInner withActionName(String actionName)
Set the actionName property: Name of action that is recommended by this rule in string.
Parameters:
Returns:
withBladeName
public RecommendationRuleInner withBladeName(String bladeName)
Set the bladeName property: Deep link to a blade on the portal. Applicable to dynamic rule only.
Parameters:
Returns:
withChannels
public RecommendationRuleInner withChannels(Channels channels)
Set the channels property: List of available channels that this rule applies.
Parameters:
Returns:
withDescription
public RecommendationRuleInner withDescription(String description)
Set the description property: Localized detailed description of the rule.
Parameters:
Returns:
withDisplayName
public RecommendationRuleInner withDisplayName(String displayName)
Set the displayName property: UI friendly name of the rule.
Parameters:
Returns:
withExtensionName
public RecommendationRuleInner withExtensionName(String extensionName)
Set the extensionName property: Extension name of the portal if exists. Applicable to dynamic rule only.
Parameters:
Returns:
withForwardLink
public RecommendationRuleInner withForwardLink(String forwardLink)
Set the forwardLink property: Forward link to an external document associated with the rule. Applicable to dynamic rule only.
Parameters:
Returns:
withIsDynamic
public RecommendationRuleInner withIsDynamic(Boolean isDynamic)
Set the isDynamic property: True if this is associated with a dynamically added rule.
Parameters:
Returns:
withKind
public RecommendationRuleInner withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
RecommendationRuleInner.withKind(String kind)Parameters:
withLevel
public RecommendationRuleInner withLevel(NotificationLevel level)
Set the level property: Level of impact indicating how critical this rule is.
Parameters:
Returns:
withMessage
public RecommendationRuleInner withMessage(String message)
Set the message property: Localized name of the rule (Good for UI).
Parameters:
Returns:
withRecommendationId
public RecommendationRuleInner withRecommendationId(UUID recommendationId)
Set the recommendationId property: Recommendation ID of an associated recommendation object tied to the rule, if exists. If such an object doesn't exist, it is set to null.
Parameters:
Returns:
withRecommendationName
public RecommendationRuleInner withRecommendationName(String recommendationName)
Set the recommendationName property: Unique name of the rule.
Parameters:
Returns:
Applies to
Azure SDK for Java