public class TagReference extends ModelNodeAdapter implements ITagReference, ResourcePropertyKeys
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE| Constructor and Description |
|---|
TagReference(org.jboss.dmr.ModelNode node,
Map<String,String[]> propertyKeys) |
TagReference(String name,
String fromKind,
String fromName) |
TagReference(String name,
String fromKind,
String fromName,
String fromNamespace) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnnotation(String key)
Retrieves the annotated value for the given key
|
Map<String,String> |
getAnnotations()
Retrieves the annotations associated with the resource
|
IObjectReference |
getFrom()
if specified, a reference to another image that this tag should point to.
|
String |
getName()
Returns the identifier for this reference
|
boolean |
isAnnotatedWith(String key)
Returns
true if the resource is annotated with the given key |
void |
setAnnotation(String key,
String value)
Set the resource annotation
|
void |
setName(String name) |
getNode, getPropertyKeys, toJson, toJson, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoJsonpublic TagReference(String name, String fromKind, String fromName, String fromNamespace)
public boolean isAnnotatedWith(String key)
IAnnotatabletrue if the resource is annotated with the given keyisAnnotatedWith in interface IAnnotatablepublic String getAnnotation(String key)
IAnnotatablegetAnnotation in interface IAnnotatablepublic void setAnnotation(String key, String value)
IAnnotatablesetAnnotation in interface IAnnotatablepublic Map<String,String> getAnnotations()
IAnnotatablegetAnnotations in interface IAnnotatablepublic String getName()
ITagReferencegetName in interface ITagReferencepublic void setName(String name)
public IObjectReference getFrom()
ITagReferencegetFrom in interface ITagReferenceCopyright © 2019 Red Hat, Inc. All Rights Reserved.