public static class ResourceSchema.Builder
extends java.lang.Object
ResourceSchema.| Modifier and Type | Method and Description |
|---|---|
ResourceSchema.Builder |
addProperty(java.lang.String name,
ResourcePropertySchema propertySchema)
Adds a property to the resource.
|
ResourceSchema |
build()
Builds a new
ResourceSchema. |
ResourceSchema.Builder |
setName(java.lang.String name)
Sets the resource name.
|
public ResourceSchema.Builder setName(@Nullable java.lang.String name)
public ResourceSchema.Builder addProperty(java.lang.String name, ResourcePropertySchema propertySchema)
name - the property namepropertySchema - the property schemapublic ResourceSchema build()
ResourceSchema.