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:
  • Constructor Details

    • EnvironmentLink

      public EnvironmentLink()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public EnvironmentLink clone()
      Overrides:
      clone in class Object