Package com.openai.errors
        Class UnauthorizedException.Builder
- 
                    
                    - All Implemented Interfaces:
 
 public final class UnauthorizedException.BuilderA builder for UnauthorizedException. 
- 
                
                    
                    - 
                                
                            
                                Method SummaryModifier 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- 
                                        headersfinal UnauthorizedException.Builder headers(Headers headers) 
 - 
                                        errorfinal UnauthorizedException.Builder error(ErrorObject error) 
 - 
                                        errorfinal UnauthorizedException.Builder error(Optional<ErrorObject> error) Alias for calling Builder.error with error.orElse(null).
 - 
                                        causefinal UnauthorizedException.Builder cause(Throwable cause) 
 - 
                                        causefinal UnauthorizedException.Builder cause(Optional<Throwable> cause) Alias for calling Builder.cause with cause.orElse(null).
 - 
                                        buildfinal 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()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-