Class ActivatedResourceReference


  • public final class ActivatedResourceReference
    extends Object
    Reference to another resource along with its state.
    • Constructor Detail

      • ActivatedResourceReference

        public ActivatedResourceReference()
    • Method Detail

      • id

        public String id()
        Get the id property: Resource ID.
        Returns:
        the id value.
      • withId

        public ActivatedResourceReference withId​(String id)
        Set the id property: Resource ID.
        Parameters:
        id - the id value to set.
        Returns:
        the ActivatedResourceReference object itself.
      • isActive

        public Boolean isActive()
        Get the isActive property: Whether the resource is active or inactive.
        Returns:
        the isActive value.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.