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