Package odata.msgraph.client.complex
Class MimeContent
- java.lang.Object
-
- odata.msgraph.client.complex.MimeContent
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class MimeContent extends Object implements com.github.davidmoten.odata.client.ODataType
“Contains properties for a generic mime content.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMimeContent.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringodataTypeprotected Stringtypeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFieldsprotected byte[]value
-
Constructor Summary
Constructors Modifier Constructor Description protectedMimeContent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MimeContent.Builderbuilder()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.UnmappedFieldsgetUnmappedFields()Optional<byte[]>getValue()“The byte array that contains the actual content.”StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()MimeContentwithType(String type)Returns an immutable copy ofthiswith just thetypefield changed.MimeContentwithUnmappedField(String name, Object value)MimeContentwithValue(byte[] value)Returns an immutable copy ofthiswith just thevaluefield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
withType
public MimeContent withType(String type)
Returns an immutable copy ofthiswith just thetypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Indicates the content mime type.”
- Parameters:
type- new value oftypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetypefield changed
-
getValue
public Optional<byte[]> getValue()
“The byte array that contains the actual content.”- Returns:
- property value
-
withValue
public MimeContent withValue(byte[] value)
Returns an immutable copy ofthiswith just thevaluefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The byte array that contains the actual content.”
- Parameters:
value- new value ofvaluefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevaluefield changed
-
withUnmappedField
public MimeContent withUnmappedField(String name, Object value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static MimeContent.Builder builder()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
-