public class CreateLogStreamRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateLogStream operation
.
Creates a new log stream in the specified log group. The name of the log stream must be unique within the log group. There is no limit on the number of log streams that can exist in a log group.
You must use the following guidelines when naming a log stream:
NOOP
Constructor and Description |
---|
CreateLogStreamRequest()
Default constructor for a new CreateLogStreamRequest object.
|
CreateLogStreamRequest(String logGroupName,
String logStreamName)
Constructs a new CreateLogStreamRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateLogStreamRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getLogGroupName()
The name of the log group under which the log stream is to be created.
|
String |
getLogStreamName()
The name of the log stream to create.
|
int |
hashCode() |
void |
setLogGroupName(String logGroupName)
The name of the log group under which the log stream is to be created.
|
void |
setLogStreamName(String logStreamName)
The name of the log stream to create.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLogStreamRequest |
withLogGroupName(String logGroupName)
The name of the log group under which the log stream is to be created.
|
CreateLogStreamRequest |
withLogStreamName(String logStreamName)
The name of the log stream to create.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateLogStreamRequest()
public CreateLogStreamRequest(String logGroupName, String logStreamName)
logGroupName
- The name of the log group under which the log
stream is to be created.logStreamName
- The name of the log stream to create.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 name of the log group under which the log stream is to be created.public CreateLogStreamRequest 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 name of the log group under which the log stream is to be created.public String getLogStreamName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setLogStreamName(String logStreamName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName
- The name of the log stream to create.public CreateLogStreamRequest withLogStreamName(String logStreamName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName
- The name of the log stream to create.public String toString()
toString
in class Object
Object.toString()
public CreateLogStreamRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.