public abstract static class Operation.Builder<T extends Operation.Builder<T>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Creates a new Builder.
|
| Modifier and Type | Method and Description |
|---|---|
T |
description(LocalizableString description)
Set the description.
|
T |
description(String description)
Set the description.
|
T |
detailsFromAnnotation(Operation operation,
ApiDescription descriptor,
Class<?> relativeType)
Set all properties in the Builder using the data in the annotation.
|
T |
error(ApiError apiError)
Sets a single supported error.
|
T |
errors(List<ApiError> apiErrors)
Set multiple supported errors.
|
T |
parameter(Parameter parameter)
Sets a single supported parameters.
|
T |
parameters(List<Parameter> parameters)
Set multiple supported parameters.
|
protected abstract T |
self()
Abstract method that returns the instantiated Builder itself.
|
T |
stability(Stability stability)
Sets stability of Operation.
|
T |
supportedLocales(String... supportedlocales)
Set the supported locale.
|
protected abstract T self()
public T description(LocalizableString description)
description - A description of the endpointpublic T description(String description)
description - A description of the endpointpublic T supportedLocales(String... supportedlocales)
supportedlocales - Locales codes supported by the operationpublic T errors(List<ApiError> apiErrors)
apiErrors - What errors may be returned by this operationpublic T error(ApiError apiError)
apiError - An error that may be returned by this operationpublic T parameters(List<Parameter> parameters)
parameters - Extra parameters supported by the operationpublic T parameter(Parameter parameter)
parameter - Extra parameter supported by the operationpublic T stability(Stability stability)
stability - Stabilitypublic T detailsFromAnnotation(Operation operation, ApiDescription descriptor, Class<?> relativeType)
operation - The annotation that holds the datadescriptor - The root descriptorrelativeType - The type relative to which schema resources should be resolved.Copyright © 2025 Open Identity Platform Community. All rights reserved.