@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetLogEventsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
GetLogEventsRequest()
Default constructor for GetLogEventsRequest object.
|
GetLogEventsRequest(String logGroupName,
String logStreamName)
Constructs a new GetLogEventsRequest object.
|
Modifier and Type | Method and Description |
---|---|
GetLogEventsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getEndTime()
The end of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
Integer |
getLimit()
The maximum number of log events returned.
|
String |
getLogGroupIdentifier()
Specify either the name or ARN of the log group to view events from.
|
String |
getLogGroupName()
The name of the log group.
|
String |
getLogStreamName()
The name of the log stream.
|
String |
getNextToken()
The token for the next set of items to return.
|
Boolean |
getStartFromHead()
If the value is true, the earliest log events are returned first.
|
Long |
getStartTime()
The start of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
Boolean |
getUnmask()
Specify
true to display the log event fields with all sensitive data unmasked and visible. |
int |
hashCode() |
Boolean |
isStartFromHead()
If the value is true, the earliest log events are returned first.
|
Boolean |
isUnmask()
Specify
true to display the log event fields with all sensitive data unmasked and visible. |
void |
setEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
void |
setLimit(Integer limit)
The maximum number of log events returned.
|
void |
setLogGroupIdentifier(String logGroupIdentifier)
Specify either the name or ARN of the log group to view events from.
|
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream.
|
void |
setNextToken(String nextToken)
The token for the next set of items to return.
|
void |
setStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first.
|
void |
setStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
void |
setUnmask(Boolean unmask)
Specify
true to display the log event fields with all sensitive data unmasked and visible. |
String |
toString()
Returns a string representation of this object.
|
GetLogEventsRequest |
withEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
GetLogEventsRequest |
withLimit(Integer limit)
The maximum number of log events returned.
|
GetLogEventsRequest |
withLogGroupIdentifier(String logGroupIdentifier)
Specify either the name or ARN of the log group to view events from.
|
GetLogEventsRequest |
withLogGroupName(String logGroupName)
The name of the log group.
|
GetLogEventsRequest |
withLogStreamName(String logStreamName)
The name of the log stream.
|
GetLogEventsRequest |
withNextToken(String nextToken)
The token for the next set of items to return.
|
GetLogEventsRequest |
withStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first.
|
GetLogEventsRequest |
withStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
GetLogEventsRequest |
withUnmask(Boolean unmask)
Specify
true to display the log event fields with all sensitive data unmasked and visible. |
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public GetLogEventsRequest()
public GetLogEventsRequest(String logGroupName, String logStreamName)
logGroupName
- The name of the log group.
You must include either logGroupIdentifier
or logGroupName
, but not both.
logStreamName
- The name of the log stream.public void setLogGroupName(String logGroupName)
The name of the log group.
You must include either logGroupIdentifier
or logGroupName
, but not both.
logGroupName
- The name of the log group.
You must include either logGroupIdentifier
or logGroupName
, but not both.
public String getLogGroupName()
The name of the log group.
You must include either logGroupIdentifier
or logGroupName
, but not both.
You must include either logGroupIdentifier
or logGroupName
, but not both.
public GetLogEventsRequest withLogGroupName(String logGroupName)
The name of the log group.
You must include either logGroupIdentifier
or logGroupName
, but not both.
logGroupName
- The name of the log group.
You must include either logGroupIdentifier
or logGroupName
, but not both.
public void setLogGroupIdentifier(String logGroupIdentifier)
Specify either the name or ARN of the log group to view events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
logGroupIdentifier
- Specify either the name or ARN of the log group to view events from. If the log group is in a source
account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
public String getLogGroupIdentifier()
Specify either the name or ARN of the log group to view events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
You must include either logGroupIdentifier
or logGroupName
, but not both.
public GetLogEventsRequest withLogGroupIdentifier(String logGroupIdentifier)
Specify either the name or ARN of the log group to view events from. If the log group is in a source account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
logGroupIdentifier
- Specify either the name or ARN of the log group to view events from. If the log group is in a source
account and you are using a monitoring account, you must use the log group ARN.
You must include either logGroupIdentifier
or logGroupName
, but not both.
public void setLogStreamName(String logStreamName)
The name of the log stream.
logStreamName
- The name of the log stream.public String getLogStreamName()
The name of the log stream.
public GetLogEventsRequest withLogStreamName(String logStreamName)
The name of the log stream.
logStreamName
- The name of the log stream.public void setStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
Events with a timestamp equal to this time or later than this time are included. Events with a timestamp earlier
than this time are not included.
startTime
- The start of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp equal to this time or later than this time
are included. Events with a timestamp earlier than this time are not included.public Long getStartTime()
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
Events with a timestamp equal to this time or later than this time are included. Events with a timestamp earlier
than this time are not included.
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp equal to this time or later than this time
are included. Events with a timestamp earlier than this time are not included.public GetLogEventsRequest withStartTime(Long startTime)
The start of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
Events with a timestamp equal to this time or later than this time are included. Events with a timestamp earlier
than this time are not included.
startTime
- The start of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp equal to this time or later than this time
are included. Events with a timestamp earlier than this time are not included.public void setEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
Events with a timestamp equal to or later than this time are not included.
endTime
- The end of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp equal to or later than this time are not
included.public Long getEndTime()
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
Events with a timestamp equal to or later than this time are not included.
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp equal to or later than this time are not
included.public GetLogEventsRequest withEndTime(Long endTime)
The end of the time range, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC
.
Events with a timestamp equal to or later than this time are not included.
endTime
- The end of the time range, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
. Events with a timestamp equal to or later than this time are not
included.public void setNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)public String getNextToken()
The token for the next set of items to return. (You received this token from a previous call.)
public GetLogEventsRequest withNextToken(String nextToken)
The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- The token for the next set of items to return. (You received this token from a previous call.)public void setLimit(Integer limit)
The maximum number of log events returned. If you don't specify a limit, the default is as many log events as can fit in a response size of 1 MB (up to 10,000 log events).
limit
- The maximum number of log events returned. If you don't specify a limit, the default is as many log events
as can fit in a response size of 1 MB (up to 10,000 log events).public Integer getLimit()
The maximum number of log events returned. If you don't specify a limit, the default is as many log events as can fit in a response size of 1 MB (up to 10,000 log events).
public GetLogEventsRequest withLimit(Integer limit)
The maximum number of log events returned. If you don't specify a limit, the default is as many log events as can fit in a response size of 1 MB (up to 10,000 log events).
limit
- The maximum number of log events returned. If you don't specify a limit, the default is as many log events
as can fit in a response size of 1 MB (up to 10,000 log events).public void setStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
If you are using a previous nextForwardToken
value as the nextToken
in this operation,
you must specify true
for startFromHead
.
startFromHead
- If the value is true, the earliest log events are returned first. If the value is false, the latest log
events are returned first. The default value is false.
If you are using a previous nextForwardToken
value as the nextToken
in this
operation, you must specify true
for startFromHead
.
public Boolean getStartFromHead()
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
If you are using a previous nextForwardToken
value as the nextToken
in this operation,
you must specify true
for startFromHead
.
If you are using a previous nextForwardToken
value as the nextToken
in this
operation, you must specify true
for startFromHead
.
public GetLogEventsRequest withStartFromHead(Boolean startFromHead)
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
If you are using a previous nextForwardToken
value as the nextToken
in this operation,
you must specify true
for startFromHead
.
startFromHead
- If the value is true, the earliest log events are returned first. If the value is false, the latest log
events are returned first. The default value is false.
If you are using a previous nextForwardToken
value as the nextToken
in this
operation, you must specify true
for startFromHead
.
public Boolean isStartFromHead()
If the value is true, the earliest log events are returned first. If the value is false, the latest log events are returned first. The default value is false.
If you are using a previous nextForwardToken
value as the nextToken
in this operation,
you must specify true
for startFromHead
.
If you are using a previous nextForwardToken
value as the nextToken
in this
operation, you must specify true
for startFromHead
.
public void setUnmask(Boolean unmask)
Specify true
to display the log event fields with all sensitive data unmasked and visible. The
default is false
.
To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission.
unmask
- Specify true
to display the log event fields with all sensitive data unmasked and visible.
The default is false
.
To use this operation with this parameter, you must be signed into an account with the
logs:Unmask
permission.
public Boolean getUnmask()
Specify true
to display the log event fields with all sensitive data unmasked and visible. The
default is false
.
To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission.
true
to display the log event fields with all sensitive data unmasked and visible.
The default is false
.
To use this operation with this parameter, you must be signed into an account with the
logs:Unmask
permission.
public GetLogEventsRequest withUnmask(Boolean unmask)
Specify true
to display the log event fields with all sensitive data unmasked and visible. The
default is false
.
To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission.
unmask
- Specify true
to display the log event fields with all sensitive data unmasked and visible.
The default is false
.
To use this operation with this parameter, you must be signed into an account with the
logs:Unmask
permission.
public Boolean isUnmask()
Specify true
to display the log event fields with all sensitive data unmasked and visible. The
default is false
.
To use this operation with this parameter, you must be signed into an account with the logs:Unmask
permission.
true
to display the log event fields with all sensitive data unmasked and visible.
The default is false
.
To use this operation with this parameter, you must be signed into an account with the
logs:Unmask
permission.
public String toString()
toString
in class Object
Object.toString()
public GetLogEventsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()