public class DescribeLogStreamsRequest extends AmazonWebServiceRequest implements Serializable
DescribeLogStreams operation
.
Returns all the log streams that are associated with the specified log group. The list returned in the response is ASCII-sorted by log stream name.
By default, this operation returns up to 50 log streams. If there are
more log streams to list, the response would contain a
nextToken
value in the response body. You can also limit
the number of log streams returned in the response by specifying the
limit
parameter in the request.
NOOP
Constructor and Description |
---|
DescribeLogStreamsRequest()
Default constructor for a new DescribeLogStreamsRequest object.
|
DescribeLogStreamsRequest(String logGroupName)
Constructs a new DescribeLogStreamsRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getLimit()
The maximum number of items returned in the response.
|
String |
getLogGroupName()
Returns the value of the LogGroupName property for this object.
|
String |
getLogStreamNamePrefix()
Returns the value of the LogStreamNamePrefix property for this object.
|
String |
getNextToken()
A string token used for pagination that points to the next page of
results.
|
int |
hashCode() |
void |
setLimit(Integer limit)
The maximum number of items returned in the response.
|
void |
setLogGroupName(String logGroupName)
Sets the value of the LogGroupName property for this object.
|
void |
setLogStreamNamePrefix(String logStreamNamePrefix)
Sets the value of the LogStreamNamePrefix property for this object.
|
void |
setNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeLogStreamsRequest |
withLimit(Integer limit)
The maximum number of items returned in the response.
|
DescribeLogStreamsRequest |
withLogGroupName(String logGroupName)
Sets the value of the LogGroupName property for this object.
|
DescribeLogStreamsRequest |
withLogStreamNamePrefix(String logStreamNamePrefix)
Sets the value of the LogStreamNamePrefix property for this object.
|
DescribeLogStreamsRequest |
withNextToken(String nextToken)
A string token used for pagination that points to the next page of
results.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DescribeLogStreamsRequest()
public DescribeLogStreamsRequest(String logGroupName)
logGroupName
- 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 DescribeLogStreamsRequest 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 getLogStreamNamePrefix()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setLogStreamNamePrefix(String logStreamNamePrefix)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamNamePrefix
- The new value for the LogStreamNamePrefix property for this object.public DescribeLogStreamsRequest withLogStreamNamePrefix(String logStreamNamePrefix)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamNamePrefix
- The new value for the LogStreamNamePrefix property for this object.public String getNextToken()
DescribeLogStreams
request.DescribeLogStreams
request.public void setNextToken(String nextToken)
DescribeLogStreams
request.nextToken
- A string token used for pagination that points to the next page of
results. It must be a value obtained from the response of the previous
DescribeLogStreams
request.public DescribeLogStreamsRequest withNextToken(String nextToken)
DescribeLogStreams
request.
Returns a reference to this object so that method calls can be chained together.
nextToken
- A string token used for pagination that points to the next page of
results. It must be a value obtained from the response of the previous
DescribeLogStreams
request.public Integer getLimit()
Constraints:
Range: 1 - 50
public void setLimit(Integer limit)
Constraints:
Range: 1 - 50
limit
- The maximum number of items returned in the response. If you don't
specify a value, the request would return up to 50 items.public DescribeLogStreamsRequest withLimit(Integer limit)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 50
limit
- The maximum number of items returned in the response. If you don't
specify a value, the request would return up to 50 items.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.