Class Instance

All Implemented Interfaces:
Serializable

public class Instance extends BasePOJO
Represents a FlexDeploy instance, which contains a name, code, and generated id. The name is the display name shown in the UI, whereas, the code is used within scripts (e.g. Groovy, Shell, Ant, etc.).
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Instance(Long pID, String pCode, String pName)
    Creates an Instance with the given id, code, and name.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(Object pObject)
    Returns whether the given target group is equal to this one.
    final String
    Returns this target group's code name
    final Long
    Returns this instance's internal id
    final String
    Returns this target group's display name
    final Long
    Returns this target group's internal id
    int
    Returns a hash code value for this target group.
    Returns custom String representation implemented by walking complete object structure.

    Methods inherited from class flexagon.ff.common.core.pojos.BasePOJO

    areEqual

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Instance

      public Instance(Long pID, String pCode, String pName)
      Creates an Instance with the given id, code, and name.
      Parameters:
      pID - the generated primary key for the instance
      pCode - the code for the instance
      pName - the display name for the instance
  • Method Details

    • getInstanceID

      public final Long getInstanceID()
      Returns this instance's internal id
      Returns:
      the instance's internal id
    • getTargetGroupId

      public final Long getTargetGroupId()
      Returns this target group's internal id
      Returns:
      the target group's internal id
    • getCode

      public final String getCode()
      Returns this target group's code name
      Returns:
      the target group code
    • getName

      public final String getName()
      Returns this target group's display name
      Returns:
      the target group display name
    • equals

      public boolean equals(Object pObject)
      Returns whether the given target group is equal to this one.
      Overrides:
      equals in class Object
      Parameters:
      pObject - the target group to compare to this target group
      Returns:
      true if this target group is the same as the pObject argument; false otherwise.
    • hashCode

      public int hashCode()
      Returns a hash code value for this target group. This method is supported for the benefit of hash tables such as those provided by HashMap.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • toString

      public String toString()
      Description copied from class: BasePOJO
      Returns custom String representation implemented by walking complete object structure.
      Overrides:
      toString in class BasePOJO
      Returns:
      a String representation of this object