public class CreateLogStreamRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a log stream for the specified log group.
There is no limit on the number of log streams that you can create for a log group.
You must use the following guidelines when naming a log stream:
Log stream names must be unique within the log group.
Log stream names can be between 1 and 512 characters long.
The ':' (colon) and '*' (asterisk) characters are not allowed.
Constructor and Description |
---|
CreateLogStreamRequest()
Default constructor for CreateLogStreamRequest object.
|
CreateLogStreamRequest(java.lang.String logGroupName,
java.lang.String logStreamName)
Constructs a new CreateLogStreamRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLogGroupName()
The name of the log group.
|
java.lang.String |
getLogStreamName()
The name of the log stream.
|
int |
hashCode() |
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
void |
setLogStreamName(java.lang.String logStreamName)
The name of the log stream.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLogStreamRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
CreateLogStreamRequest |
withLogStreamName(java.lang.String logStreamName)
The name of the log stream.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateLogStreamRequest()
public CreateLogStreamRequest(java.lang.String logGroupName, java.lang.String logStreamName)
logGroupName
- The name of the log group.
logStreamName
- The name of the log stream.
public java.lang.String getLogGroupName()
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
The name of the log group.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public CreateLogStreamRequest withLogGroupName(java.lang.String logGroupName)
The name of the log group.
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.
public java.lang.String getLogStreamName()
The name of the log stream.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
The name of the log stream.
public void setLogStreamName(java.lang.String logStreamName)
The name of the log stream.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName
- The name of the log stream.
public CreateLogStreamRequest withLogStreamName(java.lang.String logStreamName)
The name of the log stream.
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.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.