public class PutRecordBatchRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Contains the parameters for PutRecordBatch.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
deliveryStreamName
The name of the delivery stream.
|
private java.util.List<Record> |
records
One or more records.
|
NOOP
Constructor and Description |
---|
PutRecordBatchRequest() |
Modifier and Type | Method and Description |
---|---|
PutRecordBatchRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeliveryStreamName()
The name of the delivery stream.
|
java.util.List<Record> |
getRecords()
One or more records.
|
int |
hashCode() |
void |
setDeliveryStreamName(java.lang.String deliveryStreamName)
The name of the delivery stream.
|
void |
setRecords(java.util.Collection<Record> records)
One or more records.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordBatchRequest |
withDeliveryStreamName(java.lang.String deliveryStreamName)
The name of the delivery stream.
|
PutRecordBatchRequest |
withRecords(java.util.Collection<Record> records)
One or more records.
|
PutRecordBatchRequest |
withRecords(Record... records)
One or more records.
|
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 java.lang.String deliveryStreamName
The name of the delivery stream.
private java.util.List<Record> records
One or more records.
public void setDeliveryStreamName(java.lang.String deliveryStreamName)
The name of the delivery stream.
deliveryStreamName
- The name of the delivery stream.public java.lang.String getDeliveryStreamName()
The name of the delivery stream.
public PutRecordBatchRequest withDeliveryStreamName(java.lang.String deliveryStreamName)
The name of the delivery stream.
deliveryStreamName
- The name of the delivery stream.public java.util.List<Record> getRecords()
One or more records.
public void setRecords(java.util.Collection<Record> records)
One or more records.
records
- One or more records.public PutRecordBatchRequest withRecords(Record... records)
One or more records.
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
- One or more records.public PutRecordBatchRequest withRecords(java.util.Collection<Record> records)
One or more records.
records
- One or more records.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 PutRecordBatchRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()