Class PutLogEventsRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PutLogEventsRequest object.PutLogEventsRequest
(String logGroupName, String logStreamName, List<InputLogEvent> logEvents) Constructs a new PutLogEventsRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The name of the log group to put log events to.The name of the log stream to put log events to.A string token that must be obtained from the response of the previousPutLogEvents
request.int
hashCode()
void
setLogEvents
(Collection<InputLogEvent> logEvents) 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 previousPutLogEvents
request.toString()
Returns a string representation of this object; useful for testing and debugging.withLogEvents
(InputLogEvent... logEvents) NOTE: This method appends the values to the existing list (if any).withLogEvents
(Collection<InputLogEvent> logEvents) withLogGroupName
(String logGroupName) The name of the log group to put log events to.withLogStreamName
(String logStreamName) The name of the log stream to put log events to.withSequenceToken
(String sequenceToken) A string token that must be obtained from the response of the previousPutLogEvents
request.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
PutLogEventsRequest
public PutLogEventsRequest()Default constructor for PutLogEventsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
PutLogEventsRequest
public PutLogEventsRequest(String logGroupName, String logStreamName, List<InputLogEvent> logEvents) Constructs a new PutLogEventsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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
-
-
-
Method Details
-
setLogGroupName
The name of the log group to put log events to.
- Parameters:
logGroupName
- The name of the log group to put log events to.
-
getLogGroupName
The name of the log group to put log events to.
- Returns:
- The name of the log group to put log events to.
-
withLogGroupName
The name of the log group to put log events to.
- Parameters:
logGroupName
- The name of the log group to put log events to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLogStreamName
The name of the log stream to put log events to.
- Parameters:
logStreamName
- The name of the log stream to put log events to.
-
getLogStreamName
The name of the log stream to put log events to.
- Returns:
- The name of the log stream to put log events to.
-
withLogStreamName
The name of the log stream to put log events to.
- Parameters:
logStreamName
- The name of the log stream to put log events to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getLogEvents
- Returns:
-
setLogEvents
- Parameters:
logEvents
-
-
withLogEvents
NOTE: This method appends the values to the existing list (if any). Use
setLogEvents(java.util.Collection)
orwithLogEvents(java.util.Collection)
if you want to override the existing values.- Parameters:
logEvents
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLogEvents
- Parameters:
logEvents
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSequenceToken
A string token that must be obtained from the response of the previous
PutLogEvents
request.- Parameters:
sequenceToken
- A string token that must be obtained from the response of the previousPutLogEvents
request.
-
getSequenceToken
A string token that must be obtained from the response of the previous
PutLogEvents
request.- Returns:
- A string token that must be obtained from the response of the
previous
PutLogEvents
request.
-
withSequenceToken
A string token that must be obtained from the response of the previous
PutLogEvents
request.- Parameters:
sequenceToken
- A string token that must be obtained from the response of the previousPutLogEvents
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-