Class AWSLogReference

java.lang.Object
com.amazonaws.xray.entities.AWSLogReference

public class AWSLogReference
extends java.lang.Object
Represents a link between a trace segment and supporting CloudWatch logs.
  • Constructor Summary

    Constructors 
    Constructor Description
    AWSLogReference()  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(@Nullable java.lang.Object o)
    Compares ARN and log group between references to determine equality.
    @Nullable java.lang.String getArn()
    Returns the ARN of the log group associated with this reference, or null if not provided by the AWS Runtime.
    @Nullable java.lang.String getLogGroup()
    Returns the log group name associated with the segment.
    int hashCode()
    Generates unique hash for each LogReference object.
    void setArn​(java.lang.String arn)
    Set the ARN for this reference.
    void setLogGroup​(java.lang.String logGroup)
    Set the log group for this reference.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • getLogGroup

      public @Nullable java.lang.String getLogGroup()
      Returns the log group name associated with the segment.
    • setLogGroup

      public void setLogGroup​(java.lang.String logGroup)
      Set the log group for this reference.
    • getArn

      public @Nullable java.lang.String getArn()
      Returns the ARN of the log group associated with this reference, or null if not provided by the AWS Runtime.
    • setArn

      public void setArn​(java.lang.String arn)
      Set the ARN for this reference.
    • equals

      public boolean equals​(@Nullable java.lang.Object o)
      Compares ARN and log group between references to determine equality.
      Overrides:
      equals in class java.lang.Object
      Returns:
    • hashCode

      public int hashCode()
      Generates unique hash for each LogReference object. Used to check equality in Sets.
      Overrides:
      hashCode in class java.lang.Object