Class ChatKitAttachment.Builder
- 
                    
                    
- All Implemented Interfaces:
 
public final class ChatKitAttachment.BuilderA builder for ChatKitAttachment.
 
- 
                
                    
                    
- 
                                
                            
                                
Method Summary
- 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
id
final ChatKitAttachment.Builder id(String id)
Identifier for the attachment.
 
- 
                                        
id
final ChatKitAttachment.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
mimeType
final ChatKitAttachment.Builder mimeType(String mimeType)
MIME type of the attachment.
 
- 
                                        
mimeType
final ChatKitAttachment.Builder mimeType(JsonField<String> mimeType)
Sets Builder.mimeType to an arbitrary JSON value.
You should usually call Builder.mimeType with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
name
final ChatKitAttachment.Builder name(String name)
Original display name for the attachment.
 
- 
                                        
name
final ChatKitAttachment.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
previewUrl
final ChatKitAttachment.Builder previewUrl(String previewUrl)
Preview URL for rendering the attachment inline.
 
- 
                                        
previewUrl
final ChatKitAttachment.Builder previewUrl(Optional<String> previewUrl)
Alias for calling Builder.previewUrl with
previewUrl.orElse(null). 
- 
                                        
previewUrl
final ChatKitAttachment.Builder previewUrl(JsonField<String> previewUrl)
Sets Builder.previewUrl to an arbitrary JSON value.
You should usually call Builder.previewUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
type
final ChatKitAttachment.Builder type(ChatKitAttachment.Type type)
Attachment discriminator.
 
- 
                                        
type
final ChatKitAttachment.Builder type(JsonField<ChatKitAttachment.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
 
- 
                                        
additionalProperties
final ChatKitAttachment.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
putAdditionalProperty
final ChatKitAttachment.Builder putAdditionalProperty(String key, JsonValue value)
 
- 
                                        
putAllAdditionalProperties
final ChatKitAttachment.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
 
- 
                                        
removeAdditionalProperty
final ChatKitAttachment.Builder removeAdditionalProperty(String key)
 
- 
                                        
removeAllAdditionalProperties
final ChatKitAttachment.Builder removeAllAdditionalProperties(Set<String> keys)
 
- 
                                        
build
final ChatKitAttachment build()
Returns an immutable instance of ChatKitAttachment.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .mimeType() .name() .previewUrl() .type() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -