public class EventsRequest extends Object implements Serializable
| Constructor and Description |
|---|
EventsRequest() |
| Modifier and Type | Method and Description |
|---|---|
EventsRequest |
addBatchItemEntry(String key,
EventsBatch value)
A batch of events to process.
|
EventsRequest |
clearBatchItemEntries()
Removes all the entries added into BatchItem.
|
boolean |
equals(Object obj) |
Map<String,EventsBatch> |
getBatchItem()
A batch of events to process.
|
int |
hashCode() |
void |
setBatchItem(Map<String,EventsBatch> batchItem)
A batch of events to process.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventsRequest |
withBatchItem(Map<String,EventsBatch> batchItem)
A batch of events to process.
|
public Map<String,EventsBatch> getBatchItem()
public void setBatchItem(Map<String,EventsBatch> batchItem)
batchItem - A batch of events to process. Each BatchItem consists of
an endpoint ID as the key, and an EventsBatch object as the
value.public EventsRequest withBatchItem(Map<String,EventsBatch> batchItem)
Returns a reference to this object so that method calls can be chained together.
batchItem - A batch of events to process. Each BatchItem consists of
an endpoint ID as the key, and an EventsBatch object as the
value.public EventsRequest addBatchItemEntry(String key, EventsBatch value)
The method adds a new key-value pair into BatchItem parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into BatchItem.value - The corresponding value of the entry to be added into
BatchItem.public EventsRequest clearBatchItemEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.