Class DatabaseReference.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.DatabaseReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatabaseReference>
- Enclosing interface:
DatabaseReference
@Stability(Stable)
public static final class DatabaseReference.Builder
extends Object
implements software.amazon.jsii.Builder<DatabaseReference>
A builder for
DatabaseReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.databaseArn(String databaseArn) Sets the value ofDatabaseReference.getDatabaseArn()relationalDatabaseName(String relationalDatabaseName) Sets the value ofDatabaseReference.getRelationalDatabaseName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
databaseArn
Sets the value ofDatabaseReference.getDatabaseArn()- Parameters:
databaseArn- The ARN of the Database resource. This parameter is required.- Returns:
this
-
relationalDatabaseName
@Stability(Stable) public DatabaseReference.Builder relationalDatabaseName(String relationalDatabaseName) Sets the value ofDatabaseReference.getRelationalDatabaseName()- Parameters:
relationalDatabaseName- The RelationalDatabaseName of the Database resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatabaseReference>- Returns:
- a new instance of
DatabaseReference - Throws:
NullPointerException- if any required attribute was not provided
-