public class PutLogEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutLogEventsRequest()
Default constructor for PutLogEventsRequest object.
|
PutLogEventsRequest(String logGroupName,
String logStreamName,
List<InputLogEvent> logEvents)
Constructs a new PutLogEventsRequest object.
|
Modifier and Type | Method and Description |
---|---|
PutLogEventsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<InputLogEvent> |
getLogEvents()
Returns the value of the LogEvents property for this object.
|
String |
getLogGroupName()
The name of the log group to put log events to.
|
String |
getLogStreamName()
The name of the log stream to put log events to.
|
String |
getSequenceToken()
A string token that must be obtained from the response of the previous
PutLogEvents request. |
int |
hashCode() |
void |
setLogEvents(Collection<InputLogEvent> logEvents)
Sets the value of the LogEvents property for this object.
|
void |
setLogGroupName(String logGroupName)
The name of the log group to put log events to.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream to put log events to.
|
void |
setSequenceToken(String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEvents request. |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutLogEventsRequest |
withLogEvents(Collection<InputLogEvent> logEvents)
Sets the value of the LogEvents property for this object.
|
PutLogEventsRequest |
withLogEvents(InputLogEvent... logEvents)
Sets the value of the LogEvents property for this object.
|
PutLogEventsRequest |
withLogGroupName(String logGroupName)
The name of the log group to put log events to.
|
PutLogEventsRequest |
withLogStreamName(String logStreamName)
The name of the log stream to put log events to.
|
PutLogEventsRequest |
withSequenceToken(String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEvents request. |
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public PutLogEventsRequest()
public PutLogEventsRequest(String logGroupName, String logStreamName, List<InputLogEvent> logEvents)
logGroupName
- The name of the log group to put log events to.logStreamName
- The name of the log stream to put log events to.logEvents
- public void setLogGroupName(String logGroupName)
The name of the log group to put log events to.
logGroupName
- The name of the log group to put log events to.public String getLogGroupName()
The name of the log group to put log events to.
public PutLogEventsRequest withLogGroupName(String logGroupName)
The name of the log group to put log events to.
logGroupName
- The name of the log group to put log events to.public void setLogStreamName(String logStreamName)
The name of the log stream to put log events to.
logStreamName
- The name of the log stream to put log events to.public String getLogStreamName()
The name of the log stream to put log events to.
public PutLogEventsRequest withLogStreamName(String logStreamName)
The name of the log stream to put log events to.
logStreamName
- The name of the log stream to put log events to.public List<InputLogEvent> getLogEvents()
public void setLogEvents(Collection<InputLogEvent> logEvents)
logEvents
- The new value for the LogEvents property for this object.public PutLogEventsRequest withLogEvents(InputLogEvent... logEvents)
NOTE: This method appends the values to the existing list (if
any). Use setLogEvents(java.util.Collection)
or
withLogEvents(java.util.Collection)
if you want to override the
existing values.
logEvents
- The new value for the LogEvents property for this object.public PutLogEventsRequest withLogEvents(Collection<InputLogEvent> logEvents)
logEvents
- The new value for the LogEvents property for this object.public void setSequenceToken(String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEvents
request.
sequenceToken
- A string token that must be obtained from the response of the
previous PutLogEvents
request.public String getSequenceToken()
A string token that must be obtained from the response of the previous
PutLogEvents
request.
PutLogEvents
request.public PutLogEventsRequest withSequenceToken(String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEvents
request.
sequenceToken
- A string token that must be obtained from the response of the
previous PutLogEvents
request.public String toString()
toString
in class Object
Object.toString()
public PutLogEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.