Package org.forgerock.api.models
Class ApiDescription.Builder
java.lang.Object
org.forgerock.api.models.ApiDescription.Builder
- Enclosing class:
- ApiDescription
Builder for the ApiDescription.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the ApiDescription instance.definitions
(Definitions definitions) Set the definitions.description
(String description) Sets the description.description
(LocalizableString description) Sets the description.Set the errors.Set the id.Set the paths.Set the services.Set the version of the API.
-
Method Details
-
id
Set the id.- Parameters:
id
- ApiDescription id- Returns:
- Builder
-
description
Sets the description.- Parameters:
description
- Description of API Description- Returns:
- Builder
-
description
Sets the description.- Parameters:
description
- Description of API Description- Returns:
- Builder
-
definitions
Set the definitions.- Parameters:
definitions
- Definitions for this API Description- Returns:
- Builder
-
services
Set the services.- Parameters:
services
- Services for this API Description- Returns:
- Builder
-
errors
Set the errors.- Parameters:
errors
- Errors for this API Description- Returns:
- Builder
-
paths
Set the paths.- Parameters:
paths
- Paths- Returns:
- Builder
-
version
Set the version of the API.- Parameters:
version
- The version.- Returns:
- This builder.
-
build
Builds the ApiDescription instance.- Returns:
- ApiDescription instance
-