Class PutRecordsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.kinesis.model.PutRecordsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class PutRecordsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
A
PutRecords
request.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutRecordsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutRecordsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<PutRecordsRequestEntry>
getRecords()
The records associated with the request.String
getStreamName()
The stream name associated with the request.int
hashCode()
void
setRecords(Collection<PutRecordsRequestEntry> records)
The records associated with the request.void
setStreamName(String streamName)
The stream name associated with the request.String
toString()
Returns a string representation of this object; useful for testing and debugging.PutRecordsRequest
withRecords(PutRecordsRequestEntry... records)
The records associated with the request.PutRecordsRequest
withRecords(Collection<PutRecordsRequestEntry> records)
The records associated with the request.PutRecordsRequest
withStreamName(String streamName)
The stream name associated with the request.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
getRecords
public List<PutRecordsRequestEntry> getRecords()
The records associated with the request.
- Returns:
- The records associated with the request.
-
setRecords
public void setRecords(Collection<PutRecordsRequestEntry> records)
The records associated with the request.
- Parameters:
records
- The records associated with the request.
-
withRecords
public PutRecordsRequest withRecords(PutRecordsRequestEntry... records)
The records associated with the request.
NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
orwithRecords(java.util.Collection)
if you want to override the existing values.- Parameters:
records
- The records associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecords
public PutRecordsRequest withRecords(Collection<PutRecordsRequestEntry> records)
The records associated with the request.
- Parameters:
records
- The records associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStreamName
public void setStreamName(String streamName)
The stream name associated with the request.
- Parameters:
streamName
- The stream name associated with the request.
-
getStreamName
public String getStreamName()
The stream name associated with the request.
- Returns:
- The stream name associated with the request.
-
withStreamName
public PutRecordsRequest withStreamName(String streamName)
The stream name associated with the request.
- Parameters:
streamName
- The stream name associated with the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutRecordsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-