Class RecommendationInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.appservice.models.ProxyOnlyResource
com.azure.resourcemanager.appservice.fluent.models.RecommendationInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
Represents a recommendation result generated by the recommendation engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the actionName property: Name of action recommended by this object.Get the bladeName property: Deep link to a blade on the portal.Get the categoryTags property: The list of category tags that this recommendation belongs to.channels()Get the channels property: List of channels that this recommendation can apply.Get the creationTime property: Timestamp when this instance was created.Get the displayName property: UI friendly name of the rule (may not be unique).enabled()Get the enabled property: True if this recommendation is still valid (i.e.endTime()Get the endTime property: The end time in UTC of a range that the recommendation refers to.Get the extensionName property: Extension name of the portal if exists.Get the forwardLink property: Forward link to an external document associated with the rule.static RecommendationInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecommendationInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the isDynamic property: True if this is associated with a dynamically added rule.level()Get the level property: Level indicating how critical this recommendation can impact.message()Get the message property: Recommendation text.name()Get the name property: The name of the resource.Get the nextNotificationTime property: When to notify this recommendation next in UTC.Get the notificationExpirationTime property: Date and time in UTC when this notification expires.Get the notifiedTime property: Last timestamp in UTC this instance was actually notified.Get the recommendationId property: A GUID value that each recommendation object is associated with.Get the resourceId property: Full ARM resource ID string that this recommendation object is associated with.Get the resourceScope property: Name of a resource type this recommendation applies, e.g.ruleName()Get the ruleName property: Unique name of the rule.score()Get the score property: A metric value measured by the rule.Get the startTime property: The beginning time in UTC of a range that the recommendation refers to.states()Get the states property: The list of states of this recommendation.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.withActionName(String actionName) Set the actionName property: Name of action recommended by this object.withBladeName(String bladeName) Set the bladeName property: Deep link to a blade on the portal.withChannels(Channels channels) Set the channels property: List of channels that this recommendation can apply.withCreationTime(OffsetDateTime creationTime) Set the creationTime property: Timestamp when this instance was created.withDisplayName(String displayName) Set the displayName property: UI friendly name of the rule (may not be unique).withEnabled(Integer enabled) Set the enabled property: True if this recommendation is still valid (i.e.withEndTime(OffsetDateTime endTime) Set the endTime property: The end time in UTC of a range that the recommendation refers to.withExtensionName(String extensionName) Set the extensionName property: Extension name of the portal if exists.withForwardLink(String forwardLink) Set the forwardLink property: Forward link to an external document associated with the rule.withIsDynamic(Boolean isDynamic) Set the isDynamic property: True if this is associated with a dynamically added rule.Set the kind property: Kind of resource.withLevel(NotificationLevel level) Set the level property: Level indicating how critical this recommendation can impact.withMessage(String message) Set the message property: Recommendation text.withNextNotificationTime(OffsetDateTime nextNotificationTime) Set the nextNotificationTime property: When to notify this recommendation next in UTC.withNotificationExpirationTime(OffsetDateTime notificationExpirationTime) Set the notificationExpirationTime property: Date and time in UTC when this notification expires.withNotifiedTime(OffsetDateTime notifiedTime) Set the notifiedTime property: Last timestamp in UTC this instance was actually notified.withRecommendationId(UUID recommendationId) Set the recommendationId property: A GUID value that each recommendation object is associated with.withResourceId(String resourceId) Set the resourceId property: Full ARM resource ID string that this recommendation object is associated with.withResourceScope(ResourceScopeType resourceScope) Set the resourceScope property: Name of a resource type this recommendation applies, e.g.withRuleName(String ruleName) Set the ruleName property: Unique name of the rule.Set the score property: A metric value measured by the rule.withStartTime(OffsetDateTime startTime) Set the startTime property: The beginning time in UTC of a range that the recommendation refers to.withStates(List<String> states) Set the states property: The list of states of this recommendation.Methods inherited from class ProxyOnlyResource
kindMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecommendationInner
public RecommendationInner()Creates an instance of RecommendationInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
typein classProxyOnlyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classProxyOnlyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classProxyOnlyResource- Returns:
- the id value.
-
withKind
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
creationTime
Get the creationTime property: Timestamp when this instance was created.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Timestamp when this instance was created.- Parameters:
creationTime- the creationTime value to set.- Returns:
- the RecommendationInner object itself.
-
recommendationId
Get the recommendationId property: A GUID value that each recommendation object is associated with.- Returns:
- the recommendationId value.
-
withRecommendationId
Set the recommendationId property: A GUID value that each recommendation object is associated with.- Parameters:
recommendationId- the recommendationId value to set.- Returns:
- the RecommendationInner object itself.
-
resourceId
Get the resourceId property: Full ARM resource ID string that this recommendation object is associated with.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: Full ARM resource ID string that this recommendation object is associated with.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the RecommendationInner object itself.
-
resourceScope
Get the resourceScope property: Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.- Returns:
- the resourceScope value.
-
withResourceScope
Set the resourceScope property: Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.- Parameters:
resourceScope- the resourceScope value to set.- Returns:
- the RecommendationInner object itself.
-
ruleName
Get the ruleName property: Unique name of the rule.- Returns:
- the ruleName value.
-
withRuleName
Set the ruleName property: Unique name of the rule.- Parameters:
ruleName- the ruleName value to set.- Returns:
- the RecommendationInner object itself.
-
displayName
Get the displayName property: UI friendly name of the rule (may not be unique).- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: UI friendly name of the rule (may not be unique).- Parameters:
displayName- the displayName value to set.- Returns:
- the RecommendationInner object itself.
-
message
-
withMessage
Set the message property: Recommendation text.- Parameters:
message- the message value to set.- Returns:
- the RecommendationInner object itself.
-
level
Get the level property: Level indicating how critical this recommendation can impact.- Returns:
- the level value.
-
withLevel
Set the level property: Level indicating how critical this recommendation can impact.- Parameters:
level- the level value to set.- Returns:
- the RecommendationInner object itself.
-
channels
Get the channels property: List of channels that this recommendation can apply.- Returns:
- the channels value.
-
withChannels
Set the channels property: List of channels that this recommendation can apply.- Parameters:
channels- the channels value to set.- Returns:
- the RecommendationInner object itself.
-
categoryTags
-
actionName
Get the actionName property: Name of action recommended by this object.- Returns:
- the actionName value.
-
withActionName
Set the actionName property: Name of action recommended by this object.- Parameters:
actionName- the actionName value to set.- Returns:
- the RecommendationInner object itself.
-
enabled
Get the enabled property: True if this recommendation is still valid (i.e. "actionable"). False if it is invalid.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: True if this recommendation is still valid (i.e. "actionable"). False if it is invalid.- Parameters:
enabled- the enabled value to set.- Returns:
- the RecommendationInner object itself.
-
states
-
withStates
Set the states property: The list of states of this recommendation. If it's null then it should be considered "Active".- Parameters:
states- the states value to set.- Returns:
- the RecommendationInner object itself.
-
startTime
Get the startTime property: The beginning time in UTC of a range that the recommendation refers to.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: The beginning time in UTC of a range that the recommendation refers to.- Parameters:
startTime- the startTime value to set.- Returns:
- the RecommendationInner object itself.
-
endTime
Get the endTime property: The end time in UTC of a range that the recommendation refers to.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: The end time in UTC of a range that the recommendation refers to.- Parameters:
endTime- the endTime value to set.- Returns:
- the RecommendationInner object itself.
-
nextNotificationTime
Get the nextNotificationTime property: When to notify this recommendation next in UTC. Null means that this will never be notified anymore.- Returns:
- the nextNotificationTime value.
-
withNextNotificationTime
Set the nextNotificationTime property: When to notify this recommendation next in UTC. Null means that this will never be notified anymore.- Parameters:
nextNotificationTime- the nextNotificationTime value to set.- Returns:
- the RecommendationInner object itself.
-
notificationExpirationTime
Get the notificationExpirationTime property: Date and time in UTC when this notification expires.- Returns:
- the notificationExpirationTime value.
-
withNotificationExpirationTime
public RecommendationInner withNotificationExpirationTime(OffsetDateTime notificationExpirationTime) Set the notificationExpirationTime property: Date and time in UTC when this notification expires.- Parameters:
notificationExpirationTime- the notificationExpirationTime value to set.- Returns:
- the RecommendationInner object itself.
-
notifiedTime
Get the notifiedTime property: Last timestamp in UTC this instance was actually notified. Null means that this recommendation hasn't been notified yet.- Returns:
- the notifiedTime value.
-
withNotifiedTime
Set the notifiedTime property: Last timestamp in UTC this instance was actually notified. Null means that this recommendation hasn't been notified yet.- Parameters:
notifiedTime- the notifiedTime value to set.- Returns:
- the RecommendationInner object itself.
-
score
Get the score property: A metric value measured by the rule.- Returns:
- the score value.
-
withScore
Set the score property: A metric value measured by the rule.- Parameters:
score- the score value to set.- Returns:
- the RecommendationInner object itself.
-
isDynamic
Get the isDynamic property: True if this is associated with a dynamically added rule.- Returns:
- the isDynamic value.
-
withIsDynamic
Set the isDynamic property: True if this is associated with a dynamically added rule.- Parameters:
isDynamic- the isDynamic value to set.- Returns:
- the RecommendationInner object itself.
-
extensionName
Get the extensionName property: Extension name of the portal if exists.- Returns:
- the extensionName value.
-
withExtensionName
Set the extensionName property: Extension name of the portal if exists.- Parameters:
extensionName- the extensionName value to set.- Returns:
- the RecommendationInner object itself.
-
bladeName
Get the bladeName property: Deep link to a blade on the portal.- Returns:
- the bladeName value.
-
withBladeName
Set the bladeName property: Deep link to a blade on the portal.- Parameters:
bladeName- the bladeName value to set.- Returns:
- the RecommendationInner object itself.
-
forwardLink
Get the forwardLink property: Forward link to an external document associated with the rule.- Returns:
- the forwardLink value.
-
withForwardLink
Set the forwardLink property: Forward link to an external document associated with the rule.- Parameters:
forwardLink- the forwardLink value to set.- Returns:
- the RecommendationInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classProxyOnlyResource- Throws:
IOException
-
fromJson
Reads an instance of RecommendationInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RecommendationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RecommendationInner.
-