public class PutLogEventsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<InputLogEvent> |
logEvents |
private java.lang.String |
logGroupName
The name of the log group to put log events to.
|
private java.lang.String |
logStreamName
The name of the log stream to put log events to.
|
private java.lang.String |
sequenceToken
A string token that must be obtained from the response of the previous
PutLogEvents request. |
NOOP
Constructor and Description |
---|
PutLogEventsRequest()
Default constructor for PutLogEventsRequest object.
|
PutLogEventsRequest(java.lang.String logGroupName,
java.lang.String logStreamName,
java.util.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(java.lang.Object obj) |
java.util.List<InputLogEvent> |
getLogEvents() |
java.lang.String |
getLogGroupName()
The name of the log group to put log events to.
|
java.lang.String |
getLogStreamName()
The name of the log stream to put log events to.
|
java.lang.String |
getSequenceToken()
A string token that must be obtained from the response of the previous
PutLogEvents request. |
int |
hashCode() |
void |
setLogEvents(java.util.Collection<InputLogEvent> logEvents) |
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group to put log events to.
|
void |
setLogStreamName(java.lang.String logStreamName)
The name of the log stream to put log events to.
|
void |
setSequenceToken(java.lang.String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEvents request. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutLogEventsRequest |
withLogEvents(java.util.Collection<InputLogEvent> logEvents) |
PutLogEventsRequest |
withLogEvents(InputLogEvent... logEvents)
NOTE: This method appends the values to the existing list (if
any).
|
PutLogEventsRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group to put log events to.
|
PutLogEventsRequest |
withLogStreamName(java.lang.String logStreamName)
The name of the log stream to put log events to.
|
PutLogEventsRequest |
withSequenceToken(java.lang.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, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String logGroupName
The name of the log group to put log events to.
private java.lang.String logStreamName
The name of the log stream to put log events to.
private SdkInternalList<InputLogEvent> logEvents
private java.lang.String sequenceToken
A string token that must be obtained from the response of the previous
PutLogEvents
request.
public PutLogEventsRequest()
public PutLogEventsRequest(java.lang.String logGroupName, java.lang.String logStreamName, java.util.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(java.lang.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 java.lang.String getLogGroupName()
The name of the log group to put log events to.
public PutLogEventsRequest withLogGroupName(java.lang.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(java.lang.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 java.lang.String getLogStreamName()
The name of the log stream to put log events to.
public PutLogEventsRequest withLogStreamName(java.lang.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 java.util.List<InputLogEvent> getLogEvents()
public void setLogEvents(java.util.Collection<InputLogEvent> logEvents)
logEvents
- 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
- public PutLogEventsRequest withLogEvents(java.util.Collection<InputLogEvent> logEvents)
logEvents
- public void setSequenceToken(java.lang.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 java.lang.String getSequenceToken()
A string token that must be obtained from the response of the previous
PutLogEvents
request.
PutLogEvents
request.public PutLogEventsRequest withSequenceToken(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutLogEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()