Class ModelReference.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.ModelReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ModelReference>
- Enclosing interface:
ModelReference
@Stability(Stable)
public static final class ModelReference.Builder
extends Object
implements software.amazon.jsii.Builder<ModelReference>
A builder for
ModelReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofModelReference.getApiId()
build()
Builds the configured instance.Sets the value ofModelReference.getModelId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiId
Sets the value ofModelReference.getApiId()
- Parameters:
apiId
- The ApiId of the Model resource. This parameter is required.- Returns:
this
-
modelId
Sets the value ofModelReference.getModelId()
- Parameters:
modelId
- The ModelId of the Model resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ModelReference>
- Returns:
- a new instance of
ModelReference
- Throws:
NullPointerException
- if any required attribute was not provided
-