Package io.micronaut.openapi.generator
Interface JavaMicronautClientOptionsBuilder
- All Superinterfaces:
GeneratorOptionsBuilder
The client generator options builder.
-
Method Summary
Modifier and TypeMethodDescriptionwithAdditionalClientTypeAnnotations(List<String> additionalClientTypeAnnotations) Sets annotations for client type (class level annotations).withAuthorization(boolean useAuth) If set to true the client will be configured for authorization.withAuthorizationFilterPattern(String authorizationFilterPattern) Sets the authorization filter pattern.withBasePathSeparator(String basePathSeparator) Sets the separator to use between the application name and base path when referencing the property.withClientId(String clientId) Sets the client id.
-
Method Details
-
withAuthorization
If set to true the client will be configured for authorization.- Parameters:
useAuth- the authorization flag- Returns:
- this builder
-
withAuthorizationFilterPattern
Sets the authorization filter pattern.- Parameters:
authorizationFilterPattern- the filter pattern- Returns:
- this builder
-
withClientId
Sets the client id.- Parameters:
clientId- the client id- Returns:
- this builder
-
withAdditionalClientTypeAnnotations
JavaMicronautClientOptionsBuilder withAdditionalClientTypeAnnotations(List<String> additionalClientTypeAnnotations) Sets annotations for client type (class level annotations).- Parameters:
additionalClientTypeAnnotations- the type annotations- Returns:
- this builder
-
withBasePathSeparator
Sets the separator to use between the application name and base path when referencing the property.- Parameters:
basePathSeparator- the base path separator- Returns:
- this builder
-