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()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
List<InputLogEvent> |
getLogEvents()
A list of events belonging to a log stream.
|
String |
getLogGroupName()
Returns the value of the LogGroupName property for this object.
|
String |
getLogStreamName()
Returns the value of the LogStreamName property for this object.
|
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 events belonging to a log stream.
|
void |
setLogGroupName(String logGroupName)
Sets the value of the LogGroupName property for this object.
|
void |
setLogStreamName(String logStreamName)
Sets the value of the LogStreamName property for this object.
|
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 events belonging to a log stream.
|
PutLogEventsRequest |
withLogEvents(InputLogEvent... logEvents)
A list of events belonging to a log stream.
|
PutLogEventsRequest |
withLogGroupName(String logGroupName)
Sets the value of the LogGroupName property for this object.
|
PutLogEventsRequest |
withLogStreamName(String logStreamName)
Sets the value of the LogStreamName property for this object.
|
PutLogEventsRequest |
withSequenceToken(String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEvents request. |
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public PutLogEventsRequest()
public PutLogEventsRequest(String logGroupName, String logStreamName, List<InputLogEvent> logEvents)
logGroupName
- logStreamName
- logEvents
- A list of 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 new value for the LogGroupName property for this object.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 new value for the LogGroupName property for this object.public String getLogStreamName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setLogStreamName(String logStreamName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName
- The new value for the LogStreamName property for this object.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 new value for the LogStreamName property for this object.public List<InputLogEvent> getLogEvents()
Constraints:
Length: 1 - 10000
public void setLogEvents(Collection<InputLogEvent> logEvents)
Constraints:
Length: 1 - 10000
logEvents
- A list of events belonging to a log stream.public PutLogEventsRequest withLogEvents(InputLogEvent... logEvents)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 10000
logEvents
- A list of 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 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 Object
Object.toString()
public PutLogEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.