public class EnvironmentLink
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
environmentName
The name of the linked environment (the dependency).
|
private java.lang.String |
linkName
The name of the link.
|
Constructor and Description |
---|
EnvironmentLink() |
Modifier and Type | Method and Description |
---|---|
EnvironmentLink |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getEnvironmentName()
The name of the linked environment (the dependency).
|
java.lang.String |
getLinkName()
The name of the link.
|
int |
hashCode() |
void |
setEnvironmentName(java.lang.String environmentName)
The name of the linked environment (the dependency).
|
void |
setLinkName(java.lang.String linkName)
The name of the link.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EnvironmentLink |
withEnvironmentName(java.lang.String environmentName)
The name of the linked environment (the dependency).
|
EnvironmentLink |
withLinkName(java.lang.String linkName)
The name of the link.
|
private java.lang.String linkName
The name of the link.
private java.lang.String environmentName
The name of the linked environment (the dependency).
public void setLinkName(java.lang.String linkName)
The name of the link.
linkName
- The name of the link.public java.lang.String getLinkName()
The name of the link.
public EnvironmentLink withLinkName(java.lang.String linkName)
The name of the link.
linkName
- The name of the link.public void setEnvironmentName(java.lang.String environmentName)
The name of the linked environment (the dependency).
environmentName
- The name of the linked environment (the dependency).public java.lang.String getEnvironmentName()
The name of the linked environment (the dependency).
public EnvironmentLink withEnvironmentName(java.lang.String environmentName)
The name of the linked environment (the dependency).
environmentName
- The name of the linked environment (the dependency).public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EnvironmentLink clone()
clone
in class java.lang.Object