Package odata.msgraph.client.entity
Class MobileAppContentFile
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.MobileAppContentFile
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MobileAppContentFile extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Contains properties for a single installer file that is associated with a given mobileAppContent version.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMobileAppContentFile.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringazureStorageUriprotected OffsetDateTimeazureStorageUriExpirationDateTimeprotected OffsetDateTimecreatedDateTimeprotected BooleanisCommittedprotected byte[]manifestprotected Stringnameprotected Longsizeprotected LongsizeEncryptedprotected MobileAppContentFileUploadStateuploadState-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMobileAppContentFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MobileAppContentFile.BuilderbuilderMobileAppContentFile()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.ActionRequestNoReturncommit(FileEncryptionInfo fileEncryptionInfo)Optional<String>getAzureStorageUri()“The Azure Storage URI.”Optional<OffsetDateTime>getAzureStorageUriExpirationDateTime()“The time the Azure storage Uri expires.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“The time the file was created.”Optional<Boolean>getIsCommitted()“A value indicating whether the file is committed.”Optional<byte[]>getManifest()“The manifest information.”Optional<String>getName()“the file name.”Optional<Long>getSize()“The size of the file prior to encryption.”Optional<Long>getSizeEncrypted()“The size of the file after encryption.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<MobileAppContentFileUploadState>getUploadState()“The state of the current upload request.”StringodataTypeName()MobileAppContentFilepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MobileAppContentFileput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).com.github.davidmoten.odata.client.ActionRequestNoReturnrenewUpload()StringtoString()MobileAppContentFilewithAzureStorageUri(String azureStorageUri)Returns an immutable copy ofthiswith just theazureStorageUrifield changed.MobileAppContentFilewithAzureStorageUriExpirationDateTime(OffsetDateTime azureStorageUriExpirationDateTime)Returns an immutable copy ofthiswith just theazureStorageUriExpirationDateTimefield changed.MobileAppContentFilewithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.MobileAppContentFilewithIsCommitted(Boolean isCommitted)Returns an immutable copy ofthiswith just theisCommittedfield changed.MobileAppContentFilewithManifest(byte[] manifest)Returns an immutable copy ofthiswith just themanifestfield changed.MobileAppContentFilewithName(String name)Returns an immutable copy ofthiswith just thenamefield changed.MobileAppContentFilewithSize(Long size)Returns an immutable copy ofthiswith just thesizefield changed.MobileAppContentFilewithSizeEncrypted(Long sizeEncrypted)Returns an immutable copy ofthiswith just thesizeEncryptedfield changed.MobileAppContentFilewithUnmappedField(String name, Object value)MobileAppContentFilewithUploadState(MobileAppContentFileUploadState uploadState)Returns an immutable copy ofthiswith just theuploadStatefield changed.
-
-
-
Field Detail
-
azureStorageUri
protected String azureStorageUri
-
azureStorageUriExpirationDateTime
protected OffsetDateTime azureStorageUriExpirationDateTime
-
createdDateTime
protected OffsetDateTime createdDateTime
-
isCommitted
protected Boolean isCommitted
-
manifest
protected byte[] manifest
-
name
protected String name
-
size
protected Long size
-
sizeEncrypted
protected Long sizeEncrypted
-
uploadState
protected MobileAppContentFileUploadState uploadState
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMobileAppContentFile
public static MobileAppContentFile.Builder builderMobileAppContentFile()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getAzureStorageUri
public Optional<String> getAzureStorageUri()
“The Azure Storage URI.”- Returns:
- property azureStorageUri
-
withAzureStorageUri
public MobileAppContentFile withAzureStorageUri(String azureStorageUri)
Returns an immutable copy ofthiswith just theazureStorageUrifield 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 Azure Storage URI.”
- Parameters:
azureStorageUri- new value ofazureStorageUrifield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theazureStorageUrifield changed
-
getAzureStorageUriExpirationDateTime
public Optional<OffsetDateTime> getAzureStorageUriExpirationDateTime()
“The time the Azure storage Uri expires.”- Returns:
- property azureStorageUriExpirationDateTime
-
withAzureStorageUriExpirationDateTime
public MobileAppContentFile withAzureStorageUriExpirationDateTime(OffsetDateTime azureStorageUriExpirationDateTime)
Returns an immutable copy ofthiswith just theazureStorageUriExpirationDateTimefield 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 time the Azure storage Uri expires.”
- Parameters:
azureStorageUriExpirationDateTime- new value ofazureStorageUriExpirationDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theazureStorageUriExpirationDateTimefield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“The time the file was created.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public MobileAppContentFile withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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 time the file was created.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getIsCommitted
public Optional<Boolean> getIsCommitted()
“A value indicating whether the file is committed.”- Returns:
- property isCommitted
-
withIsCommitted
public MobileAppContentFile withIsCommitted(Boolean isCommitted)
Returns an immutable copy ofthiswith just theisCommittedfield 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.“A value indicating whether the file is committed.”
- Parameters:
isCommitted- new value ofisCommittedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisCommittedfield changed
-
getManifest
public Optional<byte[]> getManifest()
“The manifest information.”- Returns:
- property manifest
-
withManifest
public MobileAppContentFile withManifest(byte[] manifest)
Returns an immutable copy ofthiswith just themanifestfield 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 manifest information.”
- Parameters:
manifest- new value ofmanifestfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanifestfield changed
-
withName
public MobileAppContentFile withName(String name)
Returns an immutable copy ofthiswith just thenamefield 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 file name.”
- Parameters:
name- new value ofnamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenamefield changed
-
getSize
public Optional<Long> getSize()
“The size of the file prior to encryption.”- Returns:
- property size
-
withSize
public MobileAppContentFile withSize(Long size)
Returns an immutable copy ofthiswith just thesizefield 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 size of the file prior to encryption.”
- Parameters:
size- new value ofsizefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesizefield changed
-
getSizeEncrypted
public Optional<Long> getSizeEncrypted()
“The size of the file after encryption.”- Returns:
- property sizeEncrypted
-
withSizeEncrypted
public MobileAppContentFile withSizeEncrypted(Long sizeEncrypted)
Returns an immutable copy ofthiswith just thesizeEncryptedfield 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 size of the file after encryption.”
- Parameters:
sizeEncrypted- new value ofsizeEncryptedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesizeEncryptedfield changed
-
getUploadState
public Optional<MobileAppContentFileUploadState> getUploadState()
“The state of the current upload request.”- Returns:
- property uploadState
-
withUploadState
public MobileAppContentFile withUploadState(MobileAppContentFileUploadState uploadState)
Returns an immutable copy ofthiswith just theuploadStatefield 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 state of the current upload request.”
- Parameters:
uploadState- new value ofuploadStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuploadStatefield changed
-
withUnmappedField
public MobileAppContentFile withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public MobileAppContentFile patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MobileAppContentFile put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
commit
public com.github.davidmoten.odata.client.ActionRequestNoReturn commit(FileEncryptionInfo fileEncryptionInfo)
-
renewUpload
public com.github.davidmoten.odata.client.ActionRequestNoReturn renewUpload()
-
-