public class Part extends GenericModel
| Constructor and Description | 
|---|
| Part()Instantiates a new part. | 
| Part(String name,
    String data,
    String contentType)Instantiates a new part. | 
| Modifier and Type | Method and Description | 
|---|---|
| Part | contentType(String contentType)Sets the content type. | 
| Part | data(String data)Sets the data. | 
| String | getContentType()Gets the content type. | 
| String | getData()Gets the data. | 
| String | getName()Gets the name. | 
| Part | name(String name)Sets the name. | 
| void | setContentType(String contentType)Sets the content type. | 
| void | setData(String data)Sets the data. | 
| void | setName(String name)Sets the name. | 
equals, hashCode, toStringpublic Part(String name, String data, String contentType)
name - the namedata - the datacontentType - the content typepublic Part()
public String getContentType()
public String getData()
public String getName()
public void setContentType(String contentType)
contentType - The content-typepublic void setData(String data)
data - The datapublic void setName(String name)
name - The namepublic Part contentType(String contentType)
contentType - The content-typeCopyright © 2015–2016. All rights reserved.