Class GraphReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.neptunegraph.GraphReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GraphReference>
- Enclosing interface:
GraphReference
@Stability(Stable)
public static final class GraphReference.Builder
extends Object
implements software.amazon.jsii.Builder<GraphReference>
A builder for
GraphReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofGraphReference.getGraphArn()Sets the value ofGraphReference.getGraphId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
graphArn
Sets the value ofGraphReference.getGraphArn()- Parameters:
graphArn- The ARN of the Graph resource. This parameter is required.- Returns:
this
-
graphId
Sets the value ofGraphReference.getGraphId()- Parameters:
graphId- The GraphId of the Graph resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GraphReference>- Returns:
- a new instance of
GraphReference - Throws:
NullPointerException- if any required attribute was not provided
-