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