Class ResourceName


  • public final class ResourceName
    extends Object
    Name and Type of the Resource.
    • Constructor Detail

      • ResourceName

        public ResourceName()
    • Method Detail

      • name

        public String name()
        Get the name property: Name of the resource.
        Returns:
        the name value.
      • withName

        public ResourceName withName​(String name)
        Set the name property: Name of the resource.
        Parameters:
        name - the name value to set.
        Returns:
        the ResourceName object itself.
      • type

        public String type()
        Get the type property: The type of the resource.
        Returns:
        the type value.
      • withType

        public ResourceName withType​(String type)
        Set the type property: The type of the resource.
        Parameters:
        type - the type value to set.
        Returns:
        the ResourceName object itself.
      • validate

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