Resource Interface
Implements
public interface Resource
extends Indexable, HasId, HasName
Base interfaces for fluent resources.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final Resource |
DUMMY
A dummy resource that does nothing. |
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Region |
region()
Gets the region the resource is in. |
abstract String |
regionName()
Gets the name of the region the resource is in. |
abstract Map<String,String> |
tags()
Gets the tags for the resource. |
abstract String |
type()
Gets the type of the resource. |
Field Details
DUMMY
public static final Resource DUMMY
A dummy resource that does nothing.
Method Details
region
public abstract Region region()
Gets the region the resource is in.
Returns:
the region the resource is in
regionName
public abstract String regionName()
Gets the name of the region the resource is in.
Returns:
the name of the region the resource is in
tags
public abstract Map
Gets the tags for the resource.
Returns:
the tags for the resource
type
public abstract String type()
Gets the type of the resource.
Returns:
the type of the resource