public class PutLogEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
PutLogEvents operation.
Uploads a batch of log events to the specified log stream.
Every PutLogEvents request must include the
sequenceToken obtained from the response of the previous
request. An upload in a newly created log stream does not require a
sequenceToken .
The batch of events must satisfy the following constraints:
timestamp .NOOP| Constructor and Description |
|---|
PutLogEventsRequest()
Default constructor for a new PutLogEventsRequest object.
|
PutLogEventsRequest(String logGroupName,
String logStreamName,
List<InputLogEvent> logEvents)
Constructs a new PutLogEventsRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
PutLogEventsRequest |
clone() |
boolean |
equals(Object obj) |
List<InputLogEvent> |
getLogEvents()
A list of log events belonging to a log stream.
|
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)
A list of log events belonging to a log stream.
|
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)
A list of log events belonging to a log stream.
|
PutLogEventsRequest |
withLogEvents(InputLogEvent... logEvents)
A list of log events belonging to a log stream.
|
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, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 - A list of log events belonging to a log stream.public String getLogGroupName()
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
public void setLogGroupName(String logGroupName)
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName - The name of the log group to put log events to.public PutLogEventsRequest withLogGroupName(String logGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName - The name of the log group to put log events to.public String getLogStreamName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setLogStreamName(String logStreamName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName - The name of the log stream to put log events to.public PutLogEventsRequest withLogStreamName(String logStreamName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName - The name of the log stream to put log events to.public List<InputLogEvent> getLogEvents()
Constraints:
Length: 1 - 10000
public void setLogEvents(Collection<InputLogEvent> logEvents)
Constraints:
Length: 1 - 10000
logEvents - A list of log events belonging to a log stream.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10000
logEvents - A list of log events belonging to a log stream.public PutLogEventsRequest withLogEvents(Collection<InputLogEvent> logEvents)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10000
logEvents - A list of log events belonging to a log stream.public String getSequenceToken()
PutLogEvents request.
Constraints:
Length: 1 -
PutLogEvents request.public void setSequenceToken(String sequenceToken)
PutLogEvents request.
Constraints:
Length: 1 -
sequenceToken - A string token that must be obtained from the response of the previous
PutLogEvents request.public PutLogEventsRequest withSequenceToken(String sequenceToken)
PutLogEvents request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
sequenceToken - A string token that must be obtained from the response of the previous
PutLogEvents request.public String toString()
toString in class ObjectObject.toString()public PutLogEventsRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.