public class Scale extends TypeMeta implements IScale
ANNOTATIONS, APIVERSION, CREATION_TIMESTAMP, FROM, GROUP, KIND, LABELS, METADATA, METADATA_NAME, METADATA_NAMESPACE, METADATA_RESOURCE_VERSION, METADATA_UID, NAME, NAMESPACE, OBJECTS, PORTS, PROTOCOL, RESOURCE_VERSION, TYPE, VALUE, VERBS, VERSION| Constructor and Description |
|---|
Scale() |
Scale(org.jboss.dmr.ModelNode node,
Map<String,String[]> propertyKeys) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String key,
String value)
Add or update a label;
|
String |
getAnnotation(String key)
Retrieves the annotated value for the given key
|
Map<String,String> |
getAnnotations()
Retrieves the annotations associated with the resource
|
String |
getCreationTimeStamp()
Returns the timestamp of when this resource was created
|
Map<String,String> |
getLabels()
Retrieves the labels associated with the resource
|
String |
getName()
Returns the identifier for this resource
|
String |
getNamespace()
Returns the scope of this resource
|
String |
getResourceVersion()
A value that represents the version of this resource
|
int |
getSpecReplicas()
The number of desired replicas
|
boolean |
isAnnotatedWith(String key)
Returns
true if the resource is annotated with the given key |
void |
setAnnotation(String name,
String value)
Set the resource annotation
|
void |
setName(String name)
The name of the resource
|
void |
setNamespace(String namespace)
The namespace for the object ref
|
void |
setSpecReplicas(int replicas)
Set the number of desired replicas
|
getApiVersion, getKindgetNode, getPropertyKeys, toJson, toJson, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetApiVersiontoJson, toJsonpublic int getSpecReplicas()
IScalegetSpecReplicas in interface IScalepublic void setSpecReplicas(int replicas)
IScalesetSpecReplicas in interface IScalepublic String getName()
IObjectMetagetName in interface IObjectMetapublic void setName(String name)
INameSetablesetName in interface INameSetablepublic String getCreationTimeStamp()
IObjectMetagetCreationTimeStamp in interface IObjectMetapublic String getNamespace()
IObjectMetagetNamespace in interface IObjectMetapublic void setNamespace(String namespace)
INamespaceSetablesetNamespace in interface INamespaceSetablepublic String getResourceVersion()
IObjectMetagetResourceVersion in interface IObjectMetapublic Map<String,String> getLabels()
ILabelablegetLabels in interface ILabelablepublic void addLabel(String key, String value)
ILabelableaddLabel in interface ILabelablepublic Map<String,String> getAnnotations()
IAnnotatablegetAnnotations in interface IAnnotatablepublic String getAnnotation(String key)
IAnnotatablegetAnnotation in interface IAnnotatablepublic void setAnnotation(String name, String value)
IAnnotatablesetAnnotation in interface IAnnotatablepublic boolean isAnnotatedWith(String key)
IAnnotatabletrue if the resource is annotated with the given keyisAnnotatedWith in interface IAnnotatableCopyright © 2020 Red Hat, Inc. All Rights Reserved.