Class RecommendedAction
- java.lang.Object
-
- com.azure.resourcemanager.resourcehealth.models.RecommendedAction
-
public final class RecommendedAction extends Object
Lists actions the user can take based on the current availabilityState of the resource.
-
-
Constructor Summary
Constructors Constructor Description RecommendedAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
action()
Get the action property: Recommended action.String
actionUrl()
Get the actionUrl property: Link to the action.String
actionUrlText()
Get the actionUrlText property: Substring of action, it describes which text should host the action url.void
validate()
Validates the instance.RecommendedAction
withAction(String action)
Set the action property: Recommended action.RecommendedAction
withActionUrl(String actionUrl)
Set the actionUrl property: Link to the action.RecommendedAction
withActionUrlText(String actionUrlText)
Set the actionUrlText property: Substring of action, it describes which text should host the action url.
-
-
-
Method Detail
-
action
public String action()
Get the action property: Recommended action.- Returns:
- the action value.
-
withAction
public RecommendedAction withAction(String action)
Set the action property: Recommended action.- Parameters:
action
- the action value to set.- Returns:
- the RecommendedAction object itself.
-
actionUrl
public String actionUrl()
Get the actionUrl property: Link to the action.- Returns:
- the actionUrl value.
-
withActionUrl
public RecommendedAction withActionUrl(String actionUrl)
Set the actionUrl property: Link to the action.- Parameters:
actionUrl
- the actionUrl value to set.- Returns:
- the RecommendedAction object itself.
-
actionUrlText
public String actionUrlText()
Get the actionUrlText property: Substring of action, it describes which text should host the action url.- Returns:
- the actionUrlText value.
-
withActionUrlText
public RecommendedAction withActionUrlText(String actionUrlText)
Set the actionUrlText property: Substring of action, it describes which text should host the action url.- Parameters:
actionUrlText
- the actionUrlText value to set.- Returns:
- the RecommendedAction object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-