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 protectedAwsResponseMetadata(Map<String,String> metadata)Creates a new ResponseMetadata object from a specified map of raw metadata information.protectedAwsResponseMetadata(AwsResponseMetadata responseMetadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)protected StringgetValue(String key)Get the value based on the key, returningUNKNOWNif the value is null.inthashCode()StringrequestId()Returns the AWS request ID contained in this response metadata object.StringtoString()
-
-
-
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.
-
-