Class PutLogEventsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.logs.model.PutLogEventsRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class PutLogEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description PutLogEventsRequest()Default constructor for PutLogEventsRequest object.PutLogEventsRequest(String logGroupName, String logStreamName, List<InputLogEvent> logEvents)Constructs a new PutLogEventsRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutLogEventsRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<InputLogEvent>getLogEvents()StringgetLogGroupName()The name of the log group to put log events to.StringgetLogStreamName()The name of the log stream to put log events to.StringgetSequenceToken()A string token that must be obtained from the response of the previousPutLogEventsrequest.inthashCode()voidsetLogEvents(Collection<InputLogEvent> logEvents)voidsetLogGroupName(String logGroupName)The name of the log group to put log events to.voidsetLogStreamName(String logStreamName)The name of the log stream to put log events to.voidsetSequenceToken(String sequenceToken)A string token that must be obtained from the response of the previousPutLogEventsrequest.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutLogEventsRequestwithLogEvents(InputLogEvent... logEvents)NOTE: This method appends the values to the existing list (if any).PutLogEventsRequestwithLogEvents(Collection<InputLogEvent> logEvents)PutLogEventsRequestwithLogGroupName(String logGroupName)The name of the log group to put log events to.PutLogEventsRequestwithLogStreamName(String logStreamName)The name of the log stream to put log events to.PutLogEventsRequestwithSequenceToken(String sequenceToken)A string token that must be obtained from the response of the previousPutLogEventsrequest.-
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 Detail
-
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 Detail
-
setLogGroupName
public void setLogGroupName(String logGroupName)
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
public String 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
public PutLogEventsRequest withLogGroupName(String logGroupName)
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
public void setLogStreamName(String logStreamName)
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
public String 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
public PutLogEventsRequest withLogStreamName(String logStreamName)
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
public List<InputLogEvent> getLogEvents()
- Returns:
-
setLogEvents
public void setLogEvents(Collection<InputLogEvent> logEvents)
- Parameters:
logEvents-
-
withLogEvents
public PutLogEventsRequest withLogEvents(InputLogEvent... logEvents)
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
public PutLogEventsRequest withLogEvents(Collection<InputLogEvent> logEvents)
- Parameters:
logEvents-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSequenceToken
public void setSequenceToken(String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEventsrequest.- Parameters:
sequenceToken- A string token that must be obtained from the response of the previousPutLogEventsrequest.
-
getSequenceToken
public String getSequenceToken()
A string token that must be obtained from the response of the previous
PutLogEventsrequest.- Returns:
- A string token that must be obtained from the response of the
previous
PutLogEventsrequest.
-
withSequenceToken
public PutLogEventsRequest withSequenceToken(String sequenceToken)
A string token that must be obtained from the response of the previous
PutLogEventsrequest.- Parameters:
sequenceToken- A string token that must be obtained from the response of the previousPutLogEventsrequest.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutLogEventsRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-