Class RecommendationInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.appservice.models.ProxyOnlyResource
-
- com.azure.resourcemanager.appservice.fluent.models.RecommendationInner
-
public final class RecommendationInner extends ProxyOnlyResource
Represents a recommendation result generated by the recommendation engine.
-
-
Constructor Summary
Constructors Constructor Description RecommendationInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactionName()Get the actionName property: Name of action recommended by this object.StringbladeName()Get the bladeName property: Deep link to a blade on the portal.List<String>categoryTags()Get the categoryTags property: The list of category tags that this recommendation belongs to.Channelschannels()Get the channels property: List of channels that this recommendation can apply.OffsetDateTimecreationTime()Get the creationTime property: Timestamp when this instance was created.StringdisplayName()Get the displayName property: UI friendly name of the rule (may not be unique).Integerenabled()Get the enabled property: True if this recommendation is still valid (i.e.OffsetDateTimeendTime()Get the endTime property: The end time in UTC of a range that the recommendation refers to.StringextensionName()Get the extensionName property: Extension name of the portal if exists.StringforwardLink()Get the forwardLink property: Forward link to an external document associated with the rule.BooleanisDynamic()Get the isDynamic property: True if this is associated with a dynamically added rule.NotificationLevellevel()Get the level property: Level indicating how critical this recommendation can impact.Stringmessage()Get the message property: Recommendation text.OffsetDateTimenextNotificationTime()Get the nextNotificationTime property: When to notify this recommendation next in UTC.OffsetDateTimenotificationExpirationTime()Get the notificationExpirationTime property: Date and time in UTC when this notification expires.OffsetDateTimenotifiedTime()Get the notifiedTime property: Last timestamp in UTC this instance was actually notified.UUIDrecommendationId()Get the recommendationId property: A GUID value that each recommendation object is associated with.StringresourceId()Get the resourceId property: Full ARM resource ID string that this recommendation object is associated with.ResourceScopeTyperesourceScope()Get the resourceScope property: Name of a resource type this recommendation applies, e.g.StringruleName()Get the ruleName property: Unique name of the rule.Doublescore()Get the score property: A metric value measured by the rule.OffsetDateTimestartTime()Get the startTime property: The beginning time in UTC of a range that the recommendation refers to.List<String>states()Get the states property: The list of states of this recommendation.voidvalidate()Validates the instance.RecommendationInnerwithActionName(String actionName)Set the actionName property: Name of action recommended by this object.RecommendationInnerwithBladeName(String bladeName)Set the bladeName property: Deep link to a blade on the portal.RecommendationInnerwithChannels(Channels channels)Set the channels property: List of channels that this recommendation can apply.RecommendationInnerwithCreationTime(OffsetDateTime creationTime)Set the creationTime property: Timestamp when this instance was created.RecommendationInnerwithDisplayName(String displayName)Set the displayName property: UI friendly name of the rule (may not be unique).RecommendationInnerwithEnabled(Integer enabled)Set the enabled property: True if this recommendation is still valid (i.e.RecommendationInnerwithEndTime(OffsetDateTime endTime)Set the endTime property: The end time in UTC of a range that the recommendation refers to.RecommendationInnerwithExtensionName(String extensionName)Set the extensionName property: Extension name of the portal if exists.RecommendationInnerwithForwardLink(String forwardLink)Set the forwardLink property: Forward link to an external document associated with the rule.RecommendationInnerwithIsDynamic(Boolean isDynamic)Set the isDynamic property: True if this is associated with a dynamically added rule.RecommendationInnerwithKind(String kind)Set the kind property: Kind of resource.RecommendationInnerwithLevel(NotificationLevel level)Set the level property: Level indicating how critical this recommendation can impact.RecommendationInnerwithMessage(String message)Set the message property: Recommendation text.RecommendationInnerwithNextNotificationTime(OffsetDateTime nextNotificationTime)Set the nextNotificationTime property: When to notify this recommendation next in UTC.RecommendationInnerwithNotificationExpirationTime(OffsetDateTime notificationExpirationTime)Set the notificationExpirationTime property: Date and time in UTC when this notification expires.RecommendationInnerwithNotifiedTime(OffsetDateTime notifiedTime)Set the notifiedTime property: Last timestamp in UTC this instance was actually notified.RecommendationInnerwithRecommendationId(UUID recommendationId)Set the recommendationId property: A GUID value that each recommendation object is associated with.RecommendationInnerwithResourceId(String resourceId)Set the resourceId property: Full ARM resource ID string that this recommendation object is associated with.RecommendationInnerwithResourceScope(ResourceScopeType resourceScope)Set the resourceScope property: Name of a resource type this recommendation applies, e.g.RecommendationInnerwithRuleName(String ruleName)Set the ruleName property: Unique name of the rule.RecommendationInnerwithScore(Double score)Set the score property: A metric value measured by the rule.RecommendationInnerwithStartTime(OffsetDateTime startTime)Set the startTime property: The beginning time in UTC of a range that the recommendation refers to.RecommendationInnerwithStates(List<String> states)Set the states property: The list of states of this recommendation.-
Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kind
-
-
-
-
Method Detail
-
withKind
public RecommendationInner withKind(String kind)
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: Timestamp when this instance was created.- Returns:
- the creationTime value.
-
withCreationTime
public RecommendationInner withCreationTime(OffsetDateTime creationTime)
Set the creationTime property: Timestamp when this instance was created.- Parameters:
creationTime- the creationTime value to set.- Returns:
- the RecommendationInner object itself.
-
recommendationId
public UUID recommendationId()
Get the recommendationId property: A GUID value that each recommendation object is associated with.- Returns:
- the recommendationId value.
-
withRecommendationId
public RecommendationInner withRecommendationId(UUID recommendationId)
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
public String resourceId()
Get the resourceId property: Full ARM resource ID string that this recommendation object is associated with.- Returns:
- the resourceId value.
-
withResourceId
public RecommendationInner withResourceId(String resourceId)
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
public ResourceScopeType resourceScope()
Get the resourceScope property: Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.- Returns:
- the resourceScope value.
-
withResourceScope
public RecommendationInner withResourceScope(ResourceScopeType resourceScope)
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
public String ruleName()
Get the ruleName property: Unique name of the rule.- Returns:
- the ruleName value.
-
withRuleName
public RecommendationInner withRuleName(String ruleName)
Set the ruleName property: Unique name of the rule.- Parameters:
ruleName- the ruleName value to set.- Returns:
- the RecommendationInner object itself.
-
displayName
public String displayName()
Get the displayName property: UI friendly name of the rule (may not be unique).- Returns:
- the displayName value.
-
withDisplayName
public RecommendationInner withDisplayName(String displayName)
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
public String message()
Get the message property: Recommendation text.- Returns:
- the message value.
-
withMessage
public RecommendationInner withMessage(String message)
Set the message property: Recommendation text.- Parameters:
message- the message value to set.- Returns:
- the RecommendationInner object itself.
-
level
public NotificationLevel level()
Get the level property: Level indicating how critical this recommendation can impact.- Returns:
- the level value.
-
withLevel
public RecommendationInner withLevel(NotificationLevel level)
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
public Channels channels()
Get the channels property: List of channels that this recommendation can apply.- Returns:
- the channels value.
-
withChannels
public RecommendationInner withChannels(Channels channels)
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
public List<String> categoryTags()
Get the categoryTags property: The list of category tags that this recommendation belongs to.- Returns:
- the categoryTags value.
-
actionName
public String actionName()
Get the actionName property: Name of action recommended by this object.- Returns:
- the actionName value.
-
withActionName
public RecommendationInner withActionName(String actionName)
Set the actionName property: Name of action recommended by this object.- Parameters:
actionName- the actionName value to set.- Returns:
- the RecommendationInner object itself.
-
enabled
public Integer 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
public RecommendationInner withEnabled(Integer enabled)
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
public List<String> states()
Get the states property: The list of states of this recommendation. If it's null then it should be considered "Active".- Returns:
- the states value.
-
withStates
public RecommendationInner withStates(List<String> states)
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
public OffsetDateTime startTime()
Get the startTime property: The beginning time in UTC of a range that the recommendation refers to.- Returns:
- the startTime value.
-
withStartTime
public RecommendationInner withStartTime(OffsetDateTime startTime)
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
public OffsetDateTime endTime()
Get the endTime property: The end time in UTC of a range that the recommendation refers to.- Returns:
- the endTime value.
-
withEndTime
public RecommendationInner withEndTime(OffsetDateTime endTime)
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
public OffsetDateTime 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
public RecommendationInner withNextNotificationTime(OffsetDateTime nextNotificationTime)
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
public OffsetDateTime 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
public OffsetDateTime 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
public RecommendationInner withNotifiedTime(OffsetDateTime notifiedTime)
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
public Double score()
Get the score property: A metric value measured by the rule.- Returns:
- the score value.
-
withScore
public RecommendationInner withScore(Double score)
Set the score property: A metric value measured by the rule.- Parameters:
score- the score value to set.- Returns:
- the RecommendationInner object itself.
-
isDynamic
public Boolean isDynamic()
Get the isDynamic property: True if this is associated with a dynamically added rule.- Returns:
- the isDynamic value.
-
withIsDynamic
public RecommendationInner withIsDynamic(Boolean isDynamic)
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
public String extensionName()
Get the extensionName property: Extension name of the portal if exists.- Returns:
- the extensionName value.
-
withExtensionName
public RecommendationInner withExtensionName(String extensionName)
Set the extensionName property: Extension name of the portal if exists.- Parameters:
extensionName- the extensionName value to set.- Returns:
- the RecommendationInner object itself.
-
bladeName
public String bladeName()
Get the bladeName property: Deep link to a blade on the portal.- Returns:
- the bladeName value.
-
withBladeName
public RecommendationInner withBladeName(String bladeName)
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
public String forwardLink()
Get the forwardLink property: Forward link to an external document associated with the rule.- Returns:
- the forwardLink value.
-
withForwardLink
public RecommendationInner withForwardLink(String forwardLink)
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.
-
-