public class EnvironmentVariableResource extends AbstractOpenShiftResource implements IEnvironmentVariable
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest| Modifier | Constructor and Description |
|---|---|
protected |
EnvironmentVariableResource(EnvironmentVariableResourceDTO dto,
ApplicationResource application) |
protected |
EnvironmentVariableResource(String name,
String value,
Messages messages,
Map<String,Link> links,
ApplicationResource application) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys this environment variable
|
IApplication |
getApplication()
Returns the application for this environment variable
|
String |
getName() |
String |
getValue() |
void |
refresh()
Refresh the resource and its list of children resources that were
previously loaded
|
String |
toString() |
void |
update(String newValue)
Updates this environment variable to the given value.
|
getCreationLog, getLink, getMessages, hasCreationLog, setLinksclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCreationLog, getMessages, hasCreationLogprotected EnvironmentVariableResource(EnvironmentVariableResourceDTO dto, ApplicationResource application)
public String getName()
getName in interface IEnvironmentVariablepublic String getValue()
getValue in interface IEnvironmentVariablepublic void update(String newValue) throws OpenShiftException
IEnvironmentVariableupdate in interface IEnvironmentVariablenewValue - new value for this environment variableOpenShiftExceptionpublic void destroy()
throws OpenShiftException
IEnvironmentVariabledestroy in interface IEnvironmentVariableOpenShiftExceptionpublic void refresh()
throws OpenShiftException
IOpenShiftResourcerefresh in interface IOpenShiftResourceOpenShiftExceptionpublic IApplication getApplication()
IEnvironmentVariablegetApplication in interface IEnvironmentVariableCopyright © 2013 JBoss by Red Hat. All rights reserved.