public class MwsResponseHeaderMetadata extends Object
| Constructor and Description |
|---|
MwsResponseHeaderMetadata(MwsResponseHeaderMetadata a)
Copy another instance.
|
MwsResponseHeaderMetadata(String requestId,
List<String> responseContext,
String timestamp)
Create an immutable instance.
|
MwsResponseHeaderMetadata(String requestId,
List<String> responseContext,
String timestamp,
Double quotaMax,
Double quotaRemaining,
Date quotaResetsAt)
Create an immutable instance.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getQuotaMax()
Gets the max quota allowed for a quota period
(from the x-mws-quota-max header)
|
Double |
getQuotaRemaining()
Gets the quota remaining within this quota period
(from the x-mws-quota-remaining header)
|
Date |
getQuotaResetsAt()
Gets the time that this quota period ends
(from the x-mws-quota-resetsOn header)
|
String |
getRequestId()
Gets the x-mws-request-id header value.
|
List<String> |
getResponseContext()
Gets the x-mws-response-context header value.
|
String |
getTimestamp()
Gets the x-mws-timestamp header value.
|
String |
toString() |
public MwsResponseHeaderMetadata(String requestId, List<String> responseContext, String timestamp, Double quotaMax, Double quotaRemaining, Date quotaResetsAt)
requestId - responseContext - timestamp - quotaMax - quotaRemaining - quotaResetsAt - public MwsResponseHeaderMetadata(String requestId, List<String> responseContext, String timestamp)
requestId - responseContext - timestamp - public MwsResponseHeaderMetadata(MwsResponseHeaderMetadata a)
a - public String getRequestId()
public List<String> getResponseContext()
public String getTimestamp()
public Double getQuotaMax()
public Double getQuotaRemaining()
public Date getQuotaResetsAt()
Copyright © 2014. All Rights Reserved.