public class EventsBatch extends Object implements Serializable
| Constructor and Description |
|---|
EventsBatch() |
| Modifier and Type | Method and Description |
|---|---|
EventsBatch |
addEventsEntry(String key,
Event value)
Events
|
EventsBatch |
clearEventsEntries()
Removes all the entries added into Events.
|
boolean |
equals(Object obj) |
EndpointRequest |
getEndpoint()
Endpoint information
|
Map<String,Event> |
getEvents()
Events
|
int |
hashCode() |
void |
setEndpoint(EndpointRequest endpoint)
Endpoint information
|
void |
setEvents(Map<String,Event> events)
Events
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EventsBatch |
withEndpoint(EndpointRequest endpoint)
Endpoint information
|
EventsBatch |
withEvents(Map<String,Event> events)
Events
|
public EndpointRequest getEndpoint()
public void setEndpoint(EndpointRequest endpoint)
endpoint - Endpoint informationpublic EventsBatch withEndpoint(EndpointRequest endpoint)
Returns a reference to this object so that method calls can be chained together.
endpoint - Endpoint informationpublic EventsBatch withEvents(Map<String,Event> events)
Returns a reference to this object so that method calls can be chained together.
events - Eventspublic EventsBatch addEventsEntry(String key, Event value)
The method adds a new key-value pair into Events 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 Events.value - The corresponding value of the entry to be added into
Events.public EventsBatch clearEventsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.