Class ResourceId


  • public final class ResourceId
    extends Object
    Represents a resource ID. For example, for a subnet, it is the resource URL for the subnet.
    • Constructor Detail

      • ResourceId

        public ResourceId()
    • Method Detail

      • id

        public String id()
        Get the id property: The ID of the resource.
        Returns:
        the id value.
      • withId

        public ResourceId withId​(String id)
        Set the id property: The ID of the resource.
        Parameters:
        id - the id value to set.
        Returns:
        the ResourceId object itself.
      • validate

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