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 BooleanisDependencyprotected 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()“Indicates the Azure Storage URI that the file is uploaded to.Optional<OffsetDateTime>getAzureStorageUriExpirationDateTime()“Indicates the date and time when the Azure storage URI expires, in ISO 8601 format.com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“Indicates created date and time associated with app content file, in ISO 8601 format.Optional<Boolean>getIsCommitted()“A value indicating whether the file is committed.Optional<Boolean>getIsDependency()“Indicates whether this content file is a dependency for the main content file.Optional<byte[]>getManifest()“Indicates the manifest information, containing file metadata.”Optional<String>getName()“Indicates the name of the file.”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()“Indicates 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.MobileAppContentFilewithIsDependency(Boolean isDependency)Returns an immutable copy ofthiswith just theisDependencyfield 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
-
isDependency
protected Boolean isDependency
-
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()
“Indicates the Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- 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.“Indicates the Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
azureStorageUri- new value ofazureStorageUrifield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theazureStorageUrifield changed
-
getAzureStorageUriExpirationDateTime
public Optional<OffsetDateTime> getAzureStorageUriExpirationDateTime()
“Indicates the date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- 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.“Indicates the date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
azureStorageUriExpirationDateTime- new value ofazureStorageUriExpirationDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theazureStorageUriExpirationDateTimefield changed
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- 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.“Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- 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. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- 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. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
isCommitted- new value ofisCommittedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisCommittedfield changed
-
getIsDependency
public Optional<Boolean> getIsDependency()
“Indicates whether this content file is a dependency for the main content file. TRUE means that the content file is a dependency, FALSE means that the content file is not a dependency and is the main content file. Defaults to FALSE.”- Returns:
- property isDependency
-
withIsDependency
public MobileAppContentFile withIsDependency(Boolean isDependency)
Returns an immutable copy ofthiswith just theisDependencyfield 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 whether this content file is a dependency for the main content file. TRUE means that the content file is a dependency, FALSE means that the content file is not a dependency and is the main content file. Defaults to FALSE.”
- Parameters:
isDependency- new value ofisDependencyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theisDependencyfield changed
-
getManifest
public Optional<byte[]> getManifest()
“Indicates the manifest information, containing file metadata.”- 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.“Indicates the manifest information, containing file metadata.”
- 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.“Indicates the name of the file.”
- 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. To be deprecated, please use sizeInBytes property instead.”- 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. To be deprecated, please use sizeInBytes property instead.”
- 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. To be deprecated, please use sizeEncryptedInBytes property instead.”- 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. To be deprecated, please use sizeEncryptedInBytes property instead.”
- Parameters:
sizeEncrypted- new value ofsizeEncryptedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesizeEncryptedfield changed
-
getUploadState
public Optional<MobileAppContentFileUploadState> getUploadState()
“Indicates the state of the current upload request. Possible values are: success, transientError, error, unknown, azureStorageUriRequestSuccess, azureStorageUriRequestPending, azureStorageUriRequestFailed, azureStorageUriRequestTimedOut, azureStorageUriRenewalSuccess, azureStorageUriRenewalPending, azureStorageUriRenewalFailed, azureStorageUriRenewalTimedOut, commitFileSuccess, commitFilePending, commitFileFailed, commitFileTimedOut. Default value is success. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- 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.“Indicates the state of the current upload request. Possible values are: success, transientError, error, unknown, azureStorageUriRequestSuccess, azureStorageUriRequestPending, azureStorageUriRequestFailed, azureStorageUriRequestTimedOut, azureStorageUriRenewalSuccess, azureStorageUriRenewalPending, azureStorageUriRenewalFailed, azureStorageUriRenewalTimedOut, commitFileSuccess, commitFilePending, commitFileFailed, commitFileTimedOut. Default value is success. This property is read-only.”
Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- 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()
-
-