Package software.amazon.awssdk.awscore
Class AwsResponseMetadata
- java.lang.Object
-
- software.amazon.awssdk.awscore.AwsResponseMetadata
-
- Direct Known Subclasses:
DefaultAwsResponseMetadata
public abstract class AwsResponseMetadata extends Object
Represents additional metadata included with a response from a service. Response metadata varies by service, but all services return an AWS request ID that can be used in the event a service call isn't working as expected and you need to work with AWS support to debug an issue.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AwsResponseMetadata(Map<String,String> metadata)
Creates a new ResponseMetadata object from a specified map of raw metadata information.protected
AwsResponseMetadata(AwsResponseMetadata responseMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
protected String
getValue(String key)
Get the value based on the key, returningUNKNOWN
if the value is null.int
hashCode()
String
requestId()
Returns the AWS request ID contained in this response metadata object.String
toString()
-
-
-
Constructor Detail
-
AwsResponseMetadata
protected AwsResponseMetadata(Map<String,String> metadata)
Creates a new ResponseMetadata object from a specified map of raw metadata information.- Parameters:
metadata
- The raw metadata for the new ResponseMetadata object.
-
AwsResponseMetadata
protected AwsResponseMetadata(AwsResponseMetadata responseMetadata)
-
-
Method Detail
-
requestId
public String requestId()
Returns the AWS request ID contained in this response metadata object. AWS request IDs can be used in the event a service call isn't working as expected and you need to work with AWS support to debug an issue.Can be overriden by subclasses to provide service specific requestId
- Returns:
- The AWS request ID contained in this response metadata object.
-
-