RecommendationInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. appservice. models. ProxyOnlyResource - com.
azure. resourcemanager. appservice. fluent. models. RecommendationInner
- com.
- com.
- com.
public final class RecommendationInner
extends ProxyOnlyResource
Represents a recommendation result generated by the recommendation engine.
Constructor Summary
Constructor | Description |
---|---|
RecommendationInner() |
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 channels that this recommendation can apply. |
Offset |
creationTime()
Get the creation |
String |
displayName()
Get the display |
Integer |
enabled()
Get the enabled property: True if this recommendation is still valid (i. |
Offset |
endTime()
Get the end |
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 indicating how critical this recommendation can impact. |
String |
message()
Get the message property: Recommendation text. |
String |
name()
Get the name property: The name of the resource. |
Offset |
nextNotificationTime()
Get the next |
Offset |
notificationExpirationTime()
Get the notification |
Offset |
notifiedTime()
Get the notified |
UUID |
recommendationId()
Get the recommendation |
String |
resourceId()
Get the resource |
Resource |
resourceScope()
Get the resource |
String |
ruleName()
Get the rule |
Double |
score()
Get the score property: A metric value measured by the rule. |
Offset |
startTime()
Get the start |
List<String> |
states()
Get the states property: The list of states of this 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 channels that this recommendation can apply. |
Recommendation |
withCreationTime(OffsetDateTime creationTime)
Set the creation |
Recommendation |
withDisplayName(String displayName)
Set the display |
Recommendation |
withEnabled(Integer enabled)
Set the enabled property: True if this recommendation is still valid (i. |
Recommendation |
withEndTime(OffsetDateTime endTime)
Set the end |
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 indicating how critical this recommendation can impact. |
Recommendation |
withMessage(String message)
Set the message property: Recommendation text. |
Recommendation |
withNextNotificationTime(OffsetDateTime nextNotificationTime)
Set the next |
Recommendation |
withNotificationExpirationTime(OffsetDateTime notificationExpirationTime)
Set the notification |
Recommendation |
withNotifiedTime(OffsetDateTime notifiedTime)
Set the notified |
Recommendation |
withRecommendationId(UUID recommendationId)
Set the recommendation |
Recommendation |
withResourceId(String resourceId)
Set the resource |
Recommendation |
withResourceScope(ResourceScopeType resourceScope)
Set the resource |
Recommendation |
withRuleName(String ruleName)
Set the rule |
Recommendation |
withScore(Double score)
Set the score property: A metric value measured by the rule. |
Recommendation |
withStartTime(OffsetDateTime startTime)
Set the start |
Recommendation |
withStates(List<String> states)
Set the states property: The list of states of this recommendation. |
Methods inherited from ProxyOnlyResource
Methods inherited from java.lang.Object
Constructor Details
RecommendationInner
public RecommendationInner()
Creates an instance of RecommendationInner class.
Method Details
actionName
public String actionName()
Get the actionName property: Name of action recommended by this object.
Returns:
bladeName
public String bladeName()
Get the bladeName property: Deep link to a blade on the portal.
Returns:
categoryTags
public List
Get the categoryTags property: The list of category tags that this recommendation belongs to.
Returns:
channels
public Channels channels()
Get the channels property: List of channels that this recommendation can apply.
Returns:
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: Timestamp when this instance was created.
Returns:
displayName
public String displayName()
Get the displayName property: UI friendly name of the rule (may not be unique).
Returns:
enabled
public Integer enabled()
Get the enabled property: True if this recommendation is still valid (i.e. "actionable"). False if it is invalid.
Returns:
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time in UTC of a range that the recommendation refers to.
Returns:
extensionName
public String extensionName()
Get the extensionName property: Extension name of the portal if exists.
Returns:
forwardLink
public String forwardLink()
Get the forwardLink property: Forward link to an external document associated with the rule.
Returns:
fromJson
public static RecommendationInner fromJson(JsonReader jsonReader)
Reads an instance of RecommendationInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RecommendationInner.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 indicating how critical this recommendation can impact.
Returns:
message
public String message()
Get the message property: Recommendation text.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
RecommendationInner.name()Returns:
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:
notificationExpirationTime
public OffsetDateTime notificationExpirationTime()
Get the notificationExpirationTime property: Date and time in UTC when this notification expires.
Returns:
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:
recommendationId
public UUID recommendationId()
Get the recommendationId property: A GUID value that each recommendation object is associated with.
Returns:
resourceId
public String resourceId()
Get the resourceId property: Full ARM resource ID string that this recommendation object is associated with.
Returns:
resourceScope
public ResourceScopeType resourceScope()
Get the resourceScope property: Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.
Returns:
ruleName
public String ruleName()
Get the ruleName property: Unique name of the rule.
Returns:
score
public Double score()
Get the score property: A metric value measured by the rule.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: The beginning time in UTC of a range that the recommendation refers to.
Returns:
states
public List
Get the states property: The list of states of this recommendation. If it's null then it should be considered "Active".
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RecommendationInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RecommendationInner.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
RecommendationInner.validate()withActionName
public RecommendationInner withActionName(String actionName)
Set the actionName property: Name of action recommended by this object.
Parameters:
Returns:
withBladeName
public RecommendationInner withBladeName(String bladeName)
Set the bladeName property: Deep link to a blade on the portal.
Parameters:
Returns:
withChannels
public RecommendationInner withChannels(Channels channels)
Set the channels property: List of channels that this recommendation can apply.
Parameters:
Returns:
withCreationTime
public RecommendationInner withCreationTime(OffsetDateTime creationTime)
Set the creationTime property: Timestamp when this instance was created.
Parameters:
Returns:
withDisplayName
public RecommendationInner withDisplayName(String displayName)
Set the displayName property: UI friendly name of the rule (may not be unique).
Parameters:
Returns:
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:
Returns:
withEndTime
public RecommendationInner withEndTime(OffsetDateTime endTime)
Set the endTime property: The end time in UTC of a range that the recommendation refers to.
Parameters:
Returns:
withExtensionName
public RecommendationInner withExtensionName(String extensionName)
Set the extensionName property: Extension name of the portal if exists.
Parameters:
Returns:
withForwardLink
public RecommendationInner withForwardLink(String forwardLink)
Set the forwardLink property: Forward link to an external document associated with the rule.
Parameters:
Returns:
withIsDynamic
public RecommendationInner withIsDynamic(Boolean isDynamic)
Set the isDynamic property: True if this is associated with a dynamically added rule.
Parameters:
Returns:
withKind
public RecommendationInner withKind(String kind)
Set the kind property: Kind of resource.
Overrides:
RecommendationInner.withKind(String kind)Parameters:
withLevel
public RecommendationInner withLevel(NotificationLevel level)
Set the level property: Level indicating how critical this recommendation can impact.
Parameters:
Returns:
withMessage
public RecommendationInner withMessage(String message)
Set the message property: Recommendation text.
Parameters:
Returns:
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:
Returns:
withNotificationExpirationTime
public RecommendationInner withNotificationExpirationTime(OffsetDateTime notificationExpirationTime)
Set the notificationExpirationTime property: Date and time in UTC when this notification expires.
Parameters:
Returns:
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:
Returns:
withRecommendationId
public RecommendationInner withRecommendationId(UUID recommendationId)
Set the recommendationId property: A GUID value that each recommendation object is associated with.
Parameters:
Returns:
withResourceId
public RecommendationInner withResourceId(String resourceId)
Set the resourceId property: Full ARM resource ID string that this recommendation object is associated with.
Parameters:
Returns:
withResourceScope
public RecommendationInner withResourceScope(ResourceScopeType resourceScope)
Set the resourceScope property: Name of a resource type this recommendation applies, e.g. Subscription, ServerFarm, Site.
Parameters:
Returns:
withRuleName
public RecommendationInner withRuleName(String ruleName)
Set the ruleName property: Unique name of the rule.
Parameters:
Returns:
withScore
public RecommendationInner withScore(Double score)
Set the score property: A metric value measured by the rule.
Parameters:
Returns:
withStartTime
public RecommendationInner withStartTime(OffsetDateTime startTime)
Set the startTime property: The beginning time in UTC of a range that the recommendation refers to.
Parameters:
Returns:
withStates
public RecommendationInner withStates(List
Set the states property: The list of states of this recommendation. If it's null then it should be considered "Active".
Parameters:
Returns:
Applies to
Azure SDK for Java