Package com.openai.errors
        Class UnauthorizedException.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class UnauthorizedException.BuilderA builder for UnauthorizedException.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final UnauthorizedException.Builderheaders(Headers headers)final UnauthorizedException.Buildererror(ErrorObject error)final UnauthorizedException.Buildererror(Optional<ErrorObject> error)Alias for calling Builder.error with error.orElse(null).final UnauthorizedException.Buildercause(Throwable cause)final UnauthorizedException.Buildercause(Optional<Throwable> cause)Alias for calling Builder.cause with cause.orElse(null).final UnauthorizedExceptionbuild()Returns an immutable instance of UnauthorizedException. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
headers
final UnauthorizedException.Builder headers(Headers headers)
 
- 
                                        
error
final UnauthorizedException.Builder error(ErrorObject error)
 
- 
                                        
error
final UnauthorizedException.Builder error(Optional<ErrorObject> error)
Alias for calling Builder.error with
error.orElse(null). 
- 
                                        
cause
final UnauthorizedException.Builder cause(Throwable cause)
 
- 
                                        
cause
final UnauthorizedException.Builder cause(Optional<Throwable> cause)
Alias for calling Builder.cause with
cause.orElse(null). 
- 
                                        
build
final UnauthorizedException build()
Returns an immutable instance of UnauthorizedException.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.headers() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -