Package com.openai.models.moderations
        Class ModerationImageUrlInput.ImageUrl
- 
                    
                    
- All Implemented Interfaces:
 
public final class ModerationImageUrlInput.ImageUrlContains either an image URL or a data URL for a base64 encoded image.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModerationImageUrlInput.ImageUrl.BuilderA builder for ImageUrl.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final Stringurl()Either a URL of the image or the base64 encoded image data. final JsonField<String>_url()Returns the raw JSON value of url. final Map<String, JsonValue>_additionalProperties()final ModerationImageUrlInput.ImageUrl.BuildertoBuilder()final ModerationImageUrlInput.ImageUrlvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModerationImageUrlInput.ImageUrl.Builderbuilder()Returns a mutable builder for constructing an instance of ImageUrl. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final ModerationImageUrlInput.ImageUrl.Builder toBuilder()
 
- 
                                        
validate
final ModerationImageUrlInput.ImageUrl validate()
 
- 
                                        
builder
final static ModerationImageUrlInput.ImageUrl.Builder builder()
Returns a mutable builder for constructing an instance of ImageUrl.
The following fields are required:
.url() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -