public final class Resource extends FeedBasedEntity<Resource.Blueprint,Resource.Update>
| Modifier and Type | Class and Description |
|---|---|
static class |
Resource.Blueprint
Data required to create a resource.
|
static class |
Resource.Update |
AbstractElement.Updater<U extends AbstractElement.Update,E extends AbstractElement<?,U>>id, ID_PROPERTY, properties| Constructor and Description |
|---|
Resource(String tenantId,
String environmentId,
String feedId,
String id,
ResourceType type) |
Resource(String tenantId,
String environmentId,
String feedId,
String id,
ResourceType type,
Map<String,Object> properties) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(EntityVisitor<R,P> visitor,
P parameter)
Accepts the provided visitor.
|
protected void |
appendToString(StringBuilder toStringBuilder)
Use this to append additional information to the string representation of this instance
returned from the (final)
Entity.toString(). |
ResourceType |
getType() |
AbstractElement.Updater<Resource.Update,Resource> |
update() |
equals, getFeedId, hashCodegetEnvironmentIdgetTenantIdgetId, getProperties, valueOrDefaultpublic Resource(String tenantId, String environmentId, String feedId, String id, ResourceType type)
public AbstractElement.Updater<Resource.Update,Resource> update()
update in class AbstractElement<Resource.Blueprint,Resource.Update>public ResourceType getType()
public <R,P> R accept(EntityVisitor<R,P> visitor, P parameter)
Entityaccept in class Entity<Resource.Blueprint,Resource.Update>R - the return typeP - the type of the parametervisitor - the visitor to visit this entityparameter - the parameter to pass on to the visitorprotected void appendToString(StringBuilder toStringBuilder)
EntityEntity.toString().
Generally, one should call the super method first and then only add additional information to the builder.
appendToString in class FeedBasedEntity<Resource.Blueprint,Resource.Update>toStringBuilder - the builder to append stuff to.Copyright © 2015 Red Hat, Inc.. All rights reserved.