Package com.amazonaws.xray.entities
Class AWSLogReference
- java.lang.Object
-
- com.amazonaws.xray.entities.AWSLogReference
-
public class AWSLogReference extends java.lang.ObjectRepresents a link between a trace segment and supporting CloudWatch logs.
-
-
Constructor Summary
Constructors Constructor Description AWSLogReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object o)Compares ARN and log group between references to determine equality.@Nullable java.lang.StringgetArn()Returns the ARN of the log group associated with this reference, or null if not provided by the AWS Runtime.@Nullable java.lang.StringgetLogGroup()Returns the log group name associated with the segment.inthashCode()Generates unique hash for each LogReference object.voidsetArn(java.lang.String arn)Set the ARN for this reference.voidsetLogGroup(java.lang.String logGroup)Set the log group for this reference.
-
-
-
Method Detail
-
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:
equalsin classjava.lang.Object- Returns:
-
hashCode
public int hashCode()
Generates unique hash for each LogReference object. Used to check equality in Sets.- Overrides:
hashCodein classjava.lang.Object
-
-