Package odata.msgraph.client.beta.entity
Class ReferenceAttachment
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.Attachment
-
- odata.msgraph.client.beta.entity.ReferenceAttachment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class ReferenceAttachment extends Attachment implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReferenceAttachment.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanisFolderprotected ReferenceAttachmentPermissionpermissionprotected StringpreviewUrlprotected ReferenceAttachmentProviderproviderTypeprotected StringsourceUrlprotected StringthumbnailUrl-
Fields inherited from class odata.msgraph.client.beta.entity.Attachment
contentType, isInline, lastModifiedDateTime, name, size
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedReferenceAttachment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReferenceAttachment.BuilderbuilderReferenceAttachment()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getIsFolder()Optional<ReferenceAttachmentPermission>getPermission()Optional<String>getPreviewUrl()Org.OData.Core.V1.IsURLOptional<ReferenceAttachmentProvider>getProviderType()Optional<String>getSourceUrl()Org.OData.Core.V1.IsURLOptional<String>getThumbnailUrl()Org.OData.Core.V1.IsURLcom.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()ReferenceAttachmentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)ReferenceAttachmentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()ReferenceAttachmentwithIsFolder(Boolean isFolder)ReferenceAttachmentwithPermission(ReferenceAttachmentPermission permission)ReferenceAttachmentwithPreviewUrl(String previewUrl)Returns an immutable copy ofthiswith just thepreviewUrlfield changed.ReferenceAttachmentwithProviderType(ReferenceAttachmentProvider providerType)ReferenceAttachmentwithSourceUrl(String sourceUrl)Returns an immutable copy ofthiswith just thesourceUrlfield changed.ReferenceAttachmentwithThumbnailUrl(String thumbnailUrl)Returns an immutable copy ofthiswith just thethumbnailUrlfield changed.ReferenceAttachmentwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.entity.Attachment
getContentType, getIsInline, getLastModifiedDateTime, getName, getSize, withContentType, withIsInline, withLastModifiedDateTime, withName, withSize
-
-
-
-
Field Detail
-
isFolder
protected Boolean isFolder
-
permission
protected ReferenceAttachmentPermission permission
-
previewUrl
protected String previewUrl
-
providerType
protected ReferenceAttachmentProvider providerType
-
sourceUrl
protected String sourceUrl
-
thumbnailUrl
protected String thumbnailUrl
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classAttachment
-
builderReferenceAttachment
public static ReferenceAttachment.Builder builderReferenceAttachment()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classAttachment
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classAttachment
-
withIsFolder
public ReferenceAttachment withIsFolder(Boolean isFolder)
-
getPermission
public Optional<ReferenceAttachmentPermission> getPermission()
-
withPermission
public ReferenceAttachment withPermission(ReferenceAttachmentPermission permission)
-
getPreviewUrl
public Optional<String> getPreviewUrl()
Org.OData.Core.V1.IsURL
true
- Returns:
- property previewUrl
-
withPreviewUrl
public ReferenceAttachment withPreviewUrl(String previewUrl)
Returns an immutable copy ofthiswith just thepreviewUrlfield 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.Org.OData.Core.V1.IsURL
true
- Parameters:
previewUrl- new value ofpreviewUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepreviewUrlfield changed
-
getProviderType
public Optional<ReferenceAttachmentProvider> getProviderType()
-
withProviderType
public ReferenceAttachment withProviderType(ReferenceAttachmentProvider providerType)
-
getSourceUrl
public Optional<String> getSourceUrl()
Org.OData.Core.V1.IsURL
true
- Returns:
- property sourceUrl
-
withSourceUrl
public ReferenceAttachment withSourceUrl(String sourceUrl)
Returns an immutable copy ofthiswith just thesourceUrlfield 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.Org.OData.Core.V1.IsURL
true
- Parameters:
sourceUrl- new value ofsourceUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesourceUrlfield changed
-
getThumbnailUrl
public Optional<String> getThumbnailUrl()
Org.OData.Core.V1.IsURL
true
- Returns:
- property thumbnailUrl
-
withThumbnailUrl
public ReferenceAttachment withThumbnailUrl(String thumbnailUrl)
Returns an immutable copy ofthiswith just thethumbnailUrlfield 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.Org.OData.Core.V1.IsURL
true
- Parameters:
thumbnailUrl- new value ofthumbnailUrlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thethumbnailUrlfield changed
-
withUnmappedField
public ReferenceAttachment withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classAttachment
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classAttachment
-
patch
public ReferenceAttachment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classAttachment- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public ReferenceAttachment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classAttachment- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classAttachment
-
-