Class RecommendedAction


  • public final class RecommendedAction
    extends Object
    Lists actions the user can take based on the current availabilityState of the resource.
    • Constructor Detail

      • RecommendedAction

        public RecommendedAction()
    • 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.