Interface ComputeMetadata

All Superinterfaces:
Comparable<ResourceMetadata<ComputeType>>, ResourceMetadata<ComputeType>
All Known Subinterfaces:
ComputeMetadataIncludingStatus<S>, Hardware, Image, NodeMetadata
All Known Implementing Classes:
ComputeMetadataImpl, HardwareImpl, ImageImpl, NodeMetadataImpl, SecurityGroup

public interface ComputeMetadata extends ResourceMetadata<ComputeType>
  • Method Details

    • getType

      ComputeType getType()
      Description copied from interface: ResourceMetadata
      Whether this resource is a container, file, node, queue, etc.
      Specified by:
      getType in interface ResourceMetadata<ComputeType>
      Returns:
      Type of the resource, ex node, image, size
    • getProviderId

      String getProviderId()
      Description copied from interface: ResourceMetadata
      Unique identifier of this resource within its enclosing namespace. In some scenarios, this id is not user assignable. For files, this may be an system generated key, or the full path to the resource. ex. /path/to/file.txt
      Specified by:
      getProviderId in interface ResourceMetadata<ComputeType>
      Returns:
      id of the server within the naming scope it was created. potentially generated by the service.
    • getName

      @Nullable String getName()
      Description copied from interface: ResourceMetadata
      Name of this resource. Names are dictated by the user. For files, this may be the filename, ex. file.txt
      Specified by:
      getName in interface ResourceMetadata<ComputeType>
      Returns:
      user defined name of the server.
    • getId

      String getId()
      A means to uniquely address this resource within a provider. For example, if the namespace of a node or image is region based, the id will likely include both the region and the provider-supplied id encoded to avoid collisions.
      Returns:
      unique id within your account on the provider
    • getTags

      Set<String> getTags()
      Returns:
      tags describing this resource, if supported