public class MimeContent extends Object implements com.github.davidmoten.odata.client.ODataType
| Modifier and Type | Class and Description |
|---|---|
static class |
MimeContent.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected com.github.davidmoten.odata.client.ContextPath |
contextPath |
protected String |
odataType |
protected String |
type |
protected com.github.davidmoten.odata.client.internal.UnmappedFields |
unmappedFields |
protected byte[] |
value |
| Modifier | Constructor and Description |
|---|---|
protected |
MimeContent() |
| Modifier and Type | Method and Description |
|---|---|
static MimeContent.Builder |
builder()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<String> |
getType()
“Indicates the content mime type.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
Optional<byte[]> |
getValue()
“The byte array that contains the actual content.”
|
String |
odataTypeName() |
void |
postInject(boolean addKeysToContextPath) |
String |
toString() |
MimeContent |
withType(String type)
Returns an immutable copy of
this with just the type field
changed. |
MimeContent |
withValue(byte[] value)
Returns an immutable copy of
this with just the value field
changed. |
protected com.github.davidmoten.odata.client.ContextPath contextPath
protected com.github.davidmoten.odata.client.internal.UnmappedFields unmappedFields
protected String odataType
protected String type
protected byte[] value
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypepublic MimeContent withType(String type)
this with just the type field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Indicates the content mime type.”
type - new value of type field (as defined in service metadata)this with just the type field changedpublic Optional<byte[]> getValue()
public MimeContent withValue(byte[] value)
this with just the value field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“The byte array that contains the actual content.”
value - new value of value field (as defined in service metadata)this with just the value field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypepublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepublic static MimeContent.Builder builder()
Copyright © 2018–2020. All rights reserved.