Class KafkaSchemaRegistryAccessConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.KafkaSchemaRegistryAccessConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KafkaSchemaRegistryAccessConfig>
- Enclosing interface:
KafkaSchemaRegistryAccessConfig
@Stability(Stable)
public static final class KafkaSchemaRegistryAccessConfig.Builder
extends Object
implements software.amazon.jsii.Builder<KafkaSchemaRegistryAccessConfig>
A builder for
KafkaSchemaRegistryAccessConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofKafkaSchemaRegistryAccessConfig.getType()Sets the value ofKafkaSchemaRegistryAccessConfig.getUri()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
@Stability(Stable) public KafkaSchemaRegistryAccessConfig.Builder type(KafkaSchemaRegistryAccessConfigType type) Sets the value ofKafkaSchemaRegistryAccessConfig.getType()- Parameters:
type- The type of authentication Lambda uses to access your schema registry. This parameter is required.- Returns:
this
-
uri
Sets the value ofKafkaSchemaRegistryAccessConfig.getUri()- Parameters:
uri- The URI of the secret (Secrets Manager secret ARN) to authenticate with your schema registry. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KafkaSchemaRegistryAccessConfig>- Returns:
- a new instance of
KafkaSchemaRegistryAccessConfig - Throws:
NullPointerException- if any required attribute was not provided
-