Class EnvironmentLink
- java.lang.Object
-
- com.amazonaws.services.elasticbeanstalk.model.EnvironmentLink
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class EnvironmentLink extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnvironmentLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnvironmentLink
clone()
boolean
equals(Object obj)
String
getEnvironmentName()
The name of the linked environment (the dependency).String
getLinkName()
The name of the link.int
hashCode()
void
setEnvironmentName(String environmentName)
The name of the linked environment (the dependency).void
setLinkName(String linkName)
The name of the link.String
toString()
Returns a string representation of this object; useful for testing and debugging.EnvironmentLink
withEnvironmentName(String environmentName)
The name of the linked environment (the dependency).EnvironmentLink
withLinkName(String linkName)
The name of the link.
-
-
-
Method Detail
-
setLinkName
public void setLinkName(String linkName)
The name of the link.
- Parameters:
linkName
- The name of the link.
-
getLinkName
public String getLinkName()
The name of the link.
- Returns:
- The name of the link.
-
withLinkName
public EnvironmentLink withLinkName(String linkName)
The name of the link.
- Parameters:
linkName
- The name of the link.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEnvironmentName
public void setEnvironmentName(String environmentName)
The name of the linked environment (the dependency).
- Parameters:
environmentName
- The name of the linked environment (the dependency).
-
getEnvironmentName
public String getEnvironmentName()
The name of the linked environment (the dependency).
- Returns:
- The name of the linked environment (the dependency).
-
withEnvironmentName
public EnvironmentLink withEnvironmentName(String environmentName)
The name of the linked environment (the dependency).
- Parameters:
environmentName
- The name of the linked environment (the dependency).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EnvironmentLink clone()
-
-