public final class Request extends Object
| Modifier and Type | Method and Description |
|---|---|
Request |
attribute(String name,
String value) |
Request |
attributePrefix(String attributePrefix) |
Request |
connectTimeout(long duration,
TimeUnit unit) |
void |
execute() |
Request |
header(String name,
String value) |
Request |
metadata(String key,
String value)
Adds the header
x-amz-meta-KEY:value. |
Request |
method(HttpMethod method) |
String |
presignedUrl(long expiryDuration,
TimeUnit unit) |
Request |
query(String name,
String value) |
Request |
readTimeout(long duration,
TimeUnit unit) |
Request |
regionName(String regionName) |
Request |
requestBody(byte[] requestBody) |
Request |
requestBody(String requestBody) |
Response |
response()
Opens a connection and makes the request.
|
byte[] |
responseAsBytes() |
String |
responseAsUtf8() |
XmlElement |
responseAsXml() |
public Request method(HttpMethod method)
public Request metadata(String key, String value)
x-amz-meta-KEY:value. KEY is obtained from
key by converting to lower-case (headers are case-insensitive) and
only retaining alphabetical and digit characters.key - metadata keyvalue - metadata valuepublic Request requestBody(byte[] requestBody)
public Response response()
public byte[] responseAsBytes()
public void execute()
public String responseAsUtf8()
public XmlElement responseAsXml()
Copyright © 2021. All rights reserved.