public abstract class AmazonWebServiceRequest
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
AmazonWebServiceRequest() |
Modifier and Type | Method and Description |
---|---|
AmazonWebServiceRequest |
clone()
Creates a shallow clone of this 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.
|
com.amazonaws.metrics.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(com.amazonaws.metrics.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(com.amazonaws.metrics.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 com.amazonaws.metrics.RequestMetricCollector getRequestMetricCollector()
@Deprecated public void setRequestMetricCollector(com.amazonaws.metrics.RequestMetricCollector requestMetricCollector)
requestMetricCollector
- the request metric collector.@Deprecated public <T extends AmazonWebServiceRequest> T withRequestMetricCollector(com.amazonaws.metrics.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.public AmazonWebServiceRequest getCloneSource()
public AmazonWebServiceRequest getCloneRoot()
public AmazonWebServiceRequest clone()
clone
in class java.lang.Object
Object.clone()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.