public abstract class AmazonWebServiceRequest extends Object implements Cloneable
Constructor and Description |
---|
AmazonWebServiceRequest() |
Modifier and Type | Method and Description |
---|---|
AmazonWebServiceRequest |
clone()
Creates a shallow clone of this request.
|
protected <T extends AmazonWebServiceRequest> |
copyBaseTo(T target)
Copies the internal state of this base class to that of the target
request.
|
AmazonWebServiceRequest |
getCloneRoot() |
AmazonWebServiceRequest |
getCloneSource() |
ProgressListener |
getGeneralProgressListener()
Returns the optional progress listener for receiving updates about object
upload status.
|
RequestClientOptions |
getRequestClientOptions() |
AWSCredentials |
getRequestCredentials()
Returns the optional credentials to use to sign this request, overriding
the default credentials set at the client level.
|
RequestMetricCollector |
getRequestMetricCollector()
Deprecated.
metrics is deprecated
|
void |
setGeneralProgressListener(ProgressListener generalProgressListener)
Sets the optional progress listener for receiving updates about object
upload status.
|
void |
setRequestCredentials(AWSCredentials credentials)
Sets the optional credentials to use for this request, overriding the
default credentials set at the client level.
|
void |
setRequestMetricCollector(RequestMetricCollector requestMetricCollector)
Deprecated.
metrics is deprecated
|
<T extends AmazonWebServiceRequest> |
withGeneralProgressListener(ProgressListener generalProgressListener)
Sets the optional progress listener for receiving updates about the progress of the request,
and returns a reference to this object so that method calls can be chained together.
|
<T extends AmazonWebServiceRequest> |
withRequestMetricCollector(RequestMetricCollector metricCollector)
Deprecated.
metrics is deprecated
|
public void setRequestCredentials(AWSCredentials credentials)
credentials
- The optional AWS security credentials to use for this
request, overriding the default credentials set at the client
level.public AWSCredentials getRequestCredentials()
public RequestClientOptions getRequestClientOptions()
@Deprecated public RequestMetricCollector getRequestMetricCollector()
@Deprecated public void setRequestMetricCollector(RequestMetricCollector requestMetricCollector)
requestMetricCollector
- the request metric collector.@Deprecated public <T extends AmazonWebServiceRequest> T withRequestMetricCollector(RequestMetricCollector metricCollector)
T
- class type.metricCollector
- the request metric collector.public void setGeneralProgressListener(ProgressListener generalProgressListener)
generalProgressListener
- The new progress listener.public ProgressListener getGeneralProgressListener()
public <T extends AmazonWebServiceRequest> T withGeneralProgressListener(ProgressListener generalProgressListener)
T
- class type.generalProgressListener
- The new progress listener.protected final <T extends AmazonWebServiceRequest> T copyBaseTo(T target)
public AmazonWebServiceRequest getCloneSource()
public AmazonWebServiceRequest getCloneRoot()
public AmazonWebServiceRequest clone()
clone
in class Object
Object.clone()
Copyright © 2017. All rights reserved.