Package software.amazon.awssdk.awscore
Class AwsResponseMetadata
java.lang.Object
software.amazon.awssdk.awscore.AwsResponseMetadata
- Direct Known Subclasses:
DefaultAwsResponseMetadata
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
ConstructorsModifierConstructorDescriptionprotectedAwsResponseMetadata(Map<String, String> metadata) Creates a new ResponseMetadata object from a specified map of raw metadata information.protectedAwsResponseMetadata(AwsResponseMetadata responseMetadata) -
Method Summary
-
Constructor Details
-
AwsResponseMetadata
Creates a new ResponseMetadata object from a specified map of raw metadata information.- Parameters:
metadata- The raw metadata for the new ResponseMetadata object.
-
AwsResponseMetadata
-
-
Method Details
-
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.
-
toString
-
equals
-
hashCode
public int hashCode() -
getValue
Get the value based on the key, returningUNKNOWNif the value is null.- Parameters:
key- the key of the value- Returns:
- the value or
UNKNOWNif not present.
-