Class SchemaReference.Builder
- java.lang.Object
-
- com.solace.serdes.common.resolver.SchemaReference.Builder
-
- Enclosing interface:
- SchemaReference
public static class SchemaReference.Builder extends Object
Builder class for creating SchemaReference instances. This builder provides a fluent API for setting the reference name, artifact ID, and group ID of a schema reference.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemaReference.Builder
artifactId(String artifactId)
Sets the artifact ID for the schema reference.SchemaReference
build()
Builds a new SchemaReference instance with the configured properties.SchemaReference.Builder
groupId(String groupId)
Sets the group ID for the schema reference.SchemaReference.Builder
referenceName(String referenceName)
Sets the reference name for the schema reference.
-
-
-
Method Detail
-
referenceName
public SchemaReference.Builder referenceName(String referenceName)
Sets the reference name for the schema reference.- Parameters:
referenceName
- The name of the reference- Returns:
- This builder instance for method chaining
-
artifactId
public SchemaReference.Builder artifactId(String artifactId)
Sets the artifact ID for the schema reference.- Parameters:
artifactId
- The artifact ID- Returns:
- This builder instance for method chaining
-
groupId
public SchemaReference.Builder groupId(String groupId)
Sets the group ID for the schema reference.- Parameters:
groupId
- The group ID- Returns:
- This builder instance for method chaining
-
build
public SchemaReference build()
Builds a new SchemaReference instance with the configured properties.- Returns:
- A new SchemaReference instance
-
-