Class ApiKeyReference.Builder
java.lang.Object
software.amazon.awscdk.services.appsync.ApiKeyReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApiKeyReference>
- Enclosing interface:
ApiKeyReference
@Stability(Stable)
public static final class ApiKeyReference.Builder
extends Object
implements software.amazon.jsii.Builder<ApiKeyReference>
A builder for
ApiKeyReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofApiKeyReference.getApiKeyArn()
Sets the value ofApiKeyReference.getApiKeyId()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKeyArn
Sets the value ofApiKeyReference.getApiKeyArn()
- Parameters:
apiKeyArn
- The ARN of the ApiKey resource. This parameter is required.- Returns:
this
-
apiKeyId
Sets the value ofApiKeyReference.getApiKeyId()
- Parameters:
apiKeyId
- The ApiKeyId of the ApiKey resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApiKeyReference>
- Returns:
- a new instance of
ApiKeyReference
- Throws:
NullPointerException
- if any required attribute was not provided
-