Cloneable
public class RawRequest extends BaseRequest
This defaults to a HttpMethodName.GET
request.
Constructor | Description |
---|---|
RawRequest() |
Modifier and Type | Method | Description |
---|---|---|
RawRequest |
header(String name,
String value) |
Set a header value for the underlying HTTP request.
|
HttpMethodName |
httpMethod() |
|
RawRequest |
httpMethod(HttpMethodName httpMethod) |
Set the HTTP method to perform against the configured resouce.
|
String |
path() |
|
RawRequest |
path(String path) |
Set the path to the resource.
|
InputStream |
payload() |
|
RawRequest |
payload(InputStream is) |
Set a payload for the underlying HTTP request.
|
RawRequest |
queryParameter(String name,
String value) |
Set a query parameter value for the underlying HTTP request.
|
SdkRequestConfig |
sdkRequestConfig() |
|
RawRequest |
sdkRequestConfig(SdkRequestConfig sdkRequestConfig) |
Set the configuration for this request.
|
clone
public String path()
public RawRequest path(String path)
path
- The path.public HttpMethodName httpMethod()
public RawRequest httpMethod(HttpMethodName httpMethod)
httpMethod
- The HTTP method.public RawRequest header(String name, String value)
Headers set with this method will take precedence over headers found in
the configured SdkRequestConfig
.
name
- The name of the header.value
- The value of the header.public RawRequest queryParameter(String name, String value)
Query parameters set with this method will be merged with query
parameters found in the configured SdkRequestConfig
.
name
- The name of the header.value
- The value of the header.public RawRequest payload(InputStream is)
is
- The payload.public InputStream payload()
public RawRequest sdkRequestConfig(SdkRequestConfig sdkRequestConfig)
Header values set using header(String, String)
take precedence
over values present in the request config. Query parameter values set
using queryParameter(String, String)
will be merged with the
values present in the request config.
sdkRequestConfig
in class BaseRequest
sdkRequestConfig
- The request config.public SdkRequestConfig sdkRequestConfig()
sdkRequestConfig
in class BaseRequest
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.