Class StreamReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.qldb.StreamReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StreamReference>
- Enclosing interface:
StreamReference
@Stability(Stable)
public static final class StreamReference.Builder
extends Object
implements software.amazon.jsii.Builder<StreamReference>
A builder for
StreamReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ledgerName(String ledgerName) Sets the value ofStreamReference.getLedgerName()Sets the value ofStreamReference.getStreamArn()Sets the value ofStreamReference.getStreamId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ledgerName
Sets the value ofStreamReference.getLedgerName()- Parameters:
ledgerName- The LedgerName of the Stream resource. This parameter is required.- Returns:
this
-
streamArn
Sets the value ofStreamReference.getStreamArn()- Parameters:
streamArn- The ARN of the Stream resource. This parameter is required.- Returns:
this
-
streamId
Sets the value ofStreamReference.getStreamId()- Parameters:
streamId- The Id of the Stream resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StreamReference>- Returns:
- a new instance of
StreamReference - Throws:
NullPointerException- if any required attribute was not provided
-