public class PutEventsRequest extends AmazonWebServiceRequest implements java.io.Serializable
The PutEvents operation records one or more events. You can have up to 1,500 unique custom events per app, any combination of up to 40 attributes and metrics per custom event, and any number of attribute or metric values.
Constructor and Description |
---|
PutEventsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientContext()
The client context including the client ID, app title, app version and
package name.
|
java.lang.String |
getClientContextEncoding()
The encoding used for the client context.
|
java.util.List<Event> |
getEvents()
An array of Event JSON objects
|
int |
hashCode() |
void |
setClientContext(java.lang.String clientContext)
The client context including the client ID, app title, app version and
package name.
|
void |
setClientContextEncoding(java.lang.String clientContextEncoding)
The encoding used for the client context.
|
void |
setEvents(java.util.Collection<Event> events)
An array of Event JSON objects
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutEventsRequest |
withClientContext(java.lang.String clientContext)
The client context including the client ID, app title, app version and
package name.
|
PutEventsRequest |
withClientContextEncoding(java.lang.String clientContextEncoding)
The encoding used for the client context.
|
PutEventsRequest |
withEvents(java.util.Collection<Event> events)
An array of Event JSON objects
|
PutEventsRequest |
withEvents(Event... events)
An array of Event JSON objects
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<Event> getEvents()
An array of Event JSON objects
An array of Event JSON objects
public void setEvents(java.util.Collection<Event> events)
An array of Event JSON objects
events
- An array of Event JSON objects
public PutEventsRequest withEvents(Event... events)
An array of Event JSON objects
Returns a reference to this object so that method calls can be chained together.
events
- An array of Event JSON objects
public PutEventsRequest withEvents(java.util.Collection<Event> events)
An array of Event JSON objects
Returns a reference to this object so that method calls can be chained together.
events
- An array of Event JSON objects
public java.lang.String getClientContext()
The client context including the client ID, app title, app version and package name.
The client context including the client ID, app title, app version and package name.
public void setClientContext(java.lang.String clientContext)
The client context including the client ID, app title, app version and package name.
clientContext
- The client context including the client ID, app title, app version and package name.
public PutEventsRequest withClientContext(java.lang.String clientContext)
The client context including the client ID, app title, app version and package name.
Returns a reference to this object so that method calls can be chained together.
clientContext
- The client context including the client ID, app title, app version and package name.
public java.lang.String getClientContextEncoding()
The encoding used for the client context.
The encoding used for the client context.
public void setClientContextEncoding(java.lang.String clientContextEncoding)
The encoding used for the client context.
clientContextEncoding
- The encoding used for the client context.
public PutEventsRequest withClientContextEncoding(java.lang.String clientContextEncoding)
The encoding used for the client context.
Returns a reference to this object so that method calls can be chained together.
clientContextEncoding
- The encoding used for the client context.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.