public class PutRecordsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
A PutRecords
request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<PutRecordsRequestEntry> |
records
The records associated with the request.
|
private java.lang.String |
streamName
The stream name associated with the request.
|
NOOP
Constructor and Description |
---|
PutRecordsRequest() |
Modifier and Type | Method and Description |
---|---|
PutRecordsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<PutRecordsRequestEntry> |
getRecords()
The records associated with the request.
|
java.lang.String |
getStreamName()
The stream name associated with the request.
|
int |
hashCode() |
void |
setRecords(java.util.Collection<PutRecordsRequestEntry> records)
The records associated with the request.
|
void |
setStreamName(java.lang.String streamName)
The stream name associated with the request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordsRequest |
withRecords(java.util.Collection<PutRecordsRequestEntry> records)
The records associated with the request.
|
PutRecordsRequest |
withRecords(PutRecordsRequestEntry... records)
The records associated with the request.
|
PutRecordsRequest |
withStreamName(java.lang.String streamName)
The stream name associated with the request.
|
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
private SdkInternalList<PutRecordsRequestEntry> records
The records associated with the request.
private java.lang.String streamName
The stream name associated with the request.
public java.util.List<PutRecordsRequestEntry> getRecords()
The records associated with the request.
public void setRecords(java.util.Collection<PutRecordsRequestEntry> records)
The records associated with the request.
records
- The records associated with the request.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)
or
withRecords(java.util.Collection)
if you want to override the
existing values.
records
- The records associated with the request.public PutRecordsRequest withRecords(java.util.Collection<PutRecordsRequestEntry> records)
The records associated with the request.
records
- The records associated with the request.public void setStreamName(java.lang.String streamName)
The stream name associated with the request.
streamName
- The stream name associated with the request.public java.lang.String getStreamName()
The stream name associated with the request.
public PutRecordsRequest withStreamName(java.lang.String streamName)
The stream name associated with the request.
streamName
- The stream name associated with the request.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutRecordsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()