public class CreateLogStreamRequest extends AmazonWebServiceRequest implements Serializable
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 |
---|---|
boolean |
equals(Object obj) |
String |
getLogGroupName()
Returns the value of the LogGroupName property for this object.
|
String |
getLogStreamName()
Returns the value of the LogStreamName property for this object.
|
int |
hashCode() |
void |
setLogGroupName(String logGroupName)
Sets the value of the LogGroupName property for this object.
|
void |
setLogStreamName(String logStreamName)
Sets the value of the LogStreamName property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateLogStreamRequest |
withLogGroupName(String logGroupName)
Sets the value of the LogGroupName property for this object.
|
CreateLogStreamRequest |
withLogStreamName(String logStreamName)
Sets the value of the LogStreamName property for this object.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateLogStreamRequest()
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 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 new value for the LogGroupName property for this object.public String getLogStreamName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setLogStreamName(String logStreamName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
logStreamName
- The new value for the LogStreamName property for this object.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 new value for the LogStreamName property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.