Class CfnLogStreamProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnLogStreamProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogStreamProps>
- Enclosing interface:
- CfnLogStreamProps
@Stability(Stable)
public static final class CfnLogStreamProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogStreamProps>
A builder for
CfnLogStreamProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.logGroupName
(String logGroupName) Sets the value ofCfnLogStreamProps.getLogGroupName()
logStreamName
(String logStreamName) Sets the value ofCfnLogStreamProps.getLogStreamName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroupName
Sets the value ofCfnLogStreamProps.getLogGroupName()
- Parameters:
logGroupName
- The name of the log group where the log stream is created. This parameter is required.- Returns:
this
-
logStreamName
Sets the value ofCfnLogStreamProps.getLogStreamName()
- Parameters:
logStreamName
- The name of the log stream. The name must be unique within the log group.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLogStreamProps>
- Returns:
- a new instance of
CfnLogStreamProps
- Throws:
NullPointerException
- if any required attribute was not provided
-