Class DeviceManagementExportJob
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceManagementExportJob
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementExportJob extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Entity representing a job to export a report.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementExportJob.Builder
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimeexpirationDateTimeprotected Stringfilterprotected DeviceManagementReportFileFormatformatprotected DeviceManagementExportJobLocalizationTypelocalizationTypeprotected StringreportNameprotected OffsetDateTimerequestDateTimeprotected List<String>selectprotected StringselectNextLinkprotected StringsnapshotIdprotected DeviceManagementReportStatusstatusprotected Stringurl-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementExportJob()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementExportJob.BuilderbuilderDeviceManagementExportJob()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<OffsetDateTime>getExpirationDateTime()“Time that the exported report expires.”Optional<String>getFilter()“Filters applied on the report.Optional<DeviceManagementReportFileFormat>getFormat()“Format of the exported report.Optional<DeviceManagementExportJobLocalizationType>getLocalizationType()“Configures how the requested export job is localized.Optional<String>getReportName()“Name of the report.Optional<OffsetDateTime>getRequestDateTime()“Time that the exported report was requested.”com.github.davidmoten.odata.client.CollectionPage<String>getSelect()“Columns selected from the report.com.github.davidmoten.odata.client.CollectionPage<String>getSelect(com.github.davidmoten.odata.client.HttpRequestOptions options)“Columns selected from the report.Optional<String>getSnapshotId()“A snapshot is an identifiable subset of the dataset represented by the ReportName.Optional<DeviceManagementReportStatus>getStatus()“Status of the export job.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUrl()“Temporary location of the exported report.”StringodataTypeName()DeviceManagementExportJobpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementExportJobput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementExportJobwithExpirationDateTime(OffsetDateTime expirationDateTime)Returns an immutable copy ofthiswith just theexpirationDateTimefield changed.DeviceManagementExportJobwithFilter(String filter)Returns an immutable copy ofthiswith just thefilterfield changed.DeviceManagementExportJobwithFormat(DeviceManagementReportFileFormat format)Returns an immutable copy ofthiswith just theformatfield changed.DeviceManagementExportJobwithLocalizationType(DeviceManagementExportJobLocalizationType localizationType)Returns an immutable copy ofthiswith just thelocalizationTypefield changed.DeviceManagementExportJobwithReportName(String reportName)Returns an immutable copy ofthiswith just thereportNamefield changed.DeviceManagementExportJobwithRequestDateTime(OffsetDateTime requestDateTime)Returns an immutable copy ofthiswith just therequestDateTimefield changed.DeviceManagementExportJobwithSelect(List<String> select)Returns an immutable copy ofthiswith just theselectfield changed.DeviceManagementExportJobwithSnapshotId(String snapshotId)Returns an immutable copy ofthiswith just thesnapshotIdfield changed.DeviceManagementExportJobwithStatus(DeviceManagementReportStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.DeviceManagementExportJobwithUnmappedField(String name, Object value)DeviceManagementExportJobwithUrl(String url)Returns an immutable copy ofthiswith just theurlfield changed.
-
-
-
Field Detail
-
expirationDateTime
protected OffsetDateTime expirationDateTime
-
filter
protected String filter
-
format
protected DeviceManagementReportFileFormat format
-
localizationType
protected DeviceManagementExportJobLocalizationType localizationType
-
reportName
protected String reportName
-
requestDateTime
protected OffsetDateTime requestDateTime
-
selectNextLink
protected String selectNextLink
-
snapshotId
protected String snapshotId
-
status
protected DeviceManagementReportStatus status
-
url
protected String url
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementExportJob
public static DeviceManagementExportJob.Builder builderDeviceManagementExportJob()
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
-
getExpirationDateTime
public Optional<OffsetDateTime> getExpirationDateTime()
“Time that the exported report expires.”- Returns:
- property expirationDateTime
-
withExpirationDateTime
public DeviceManagementExportJob withExpirationDateTime(OffsetDateTime expirationDateTime)
Returns an immutable copy ofthiswith just theexpirationDateTimefield 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.“Time that the exported report expires.”
- Parameters:
expirationDateTime- new value ofexpirationDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexpirationDateTimefield changed
-
getFilter
public Optional<String> getFilter()
“Filters applied on the report. The maximum length allowed for this property is 2000 characters.”- Returns:
- property filter
-
withFilter
public DeviceManagementExportJob withFilter(String filter)
Returns an immutable copy ofthiswith just thefilterfield 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.“Filters applied on the report. The maximum length allowed for this property is 2000 characters.”
- Parameters:
filter- new value offilterfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefilterfield changed
-
getFormat
public Optional<DeviceManagementReportFileFormat> getFormat()
“Format of the exported report. Possible values are `csv` and `json`.”- Returns:
- property format
-
withFormat
public DeviceManagementExportJob withFormat(DeviceManagementReportFileFormat format)
Returns an immutable copy ofthiswith just theformatfield 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.“Format of the exported report. Possible values are `csv` and `json`.”
- Parameters:
format- new value offormatfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theformatfield changed
-
getLocalizationType
public Optional<DeviceManagementExportJobLocalizationType> getLocalizationType()
“Configures how the requested export job is localized. Possible values are ` replaceLocalizableValues` and `localizedValuesAsAdditionalColumn`.”- Returns:
- property localizationType
-
withLocalizationType
public DeviceManagementExportJob withLocalizationType(DeviceManagementExportJobLocalizationType localizationType)
Returns an immutable copy ofthiswith just thelocalizationTypefield 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.“Configures how the requested export job is localized. Possible values are ` replaceLocalizableValues` and `localizedValuesAsAdditionalColumn`.”
- Parameters:
localizationType- new value oflocalizationTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelocalizationTypefield changed
-
getReportName
public Optional<String> getReportName()
“Name of the report. The maximum length allowed for this property is 2000 characters.”- Returns:
- property reportName
-
withReportName
public DeviceManagementExportJob withReportName(String reportName)
Returns an immutable copy ofthiswith just thereportNamefield 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.“Name of the report. The maximum length allowed for this property is 2000 characters.”
- Parameters:
reportName- new value ofreportNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thereportNamefield changed
-
getRequestDateTime
public Optional<OffsetDateTime> getRequestDateTime()
“Time that the exported report was requested.”- Returns:
- property requestDateTime
-
withRequestDateTime
public DeviceManagementExportJob withRequestDateTime(OffsetDateTime requestDateTime)
Returns an immutable copy ofthiswith just therequestDateTimefield 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.“Time that the exported report was requested.”
- Parameters:
requestDateTime- new value ofrequestDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequestDateTimefield changed
-
getSelect
public com.github.davidmoten.odata.client.CollectionPage<String> getSelect()
“Columns selected from the report. The maximum number of allowed columns names is 256. The maximum length allowed for each column name in this property is 1000 characters.”- Returns:
- property select
-
withSelect
public DeviceManagementExportJob withSelect(List<String> select)
Returns an immutable copy ofthiswith just theselectfield 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.“Columns selected from the report. The maximum number of allowed columns names is 256. The maximum length allowed for each column name in this property is 1000 characters.”
- Parameters:
select- new value ofselectfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theselectfield changed
-
getSelect
public com.github.davidmoten.odata.client.CollectionPage<String> getSelect(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Columns selected from the report. The maximum number of allowed columns names is 256. The maximum length allowed for each column name in this property is 1000 characters.”- Parameters:
options- specify connect and read timeouts- Returns:
- property select
-
getSnapshotId
public Optional<String> getSnapshotId()
“A snapshot is an identifiable subset of the dataset represented by the ReportName. A sessionId or CachedReportConfiguration id can be used here. If a sessionId is specified, Filter, Select, and OrderBy are applied to the data represented by the sessionId. Filter, Select, and OrderBy cannot be specified together with a CachedReportConfiguration id. The maximum length allowed for this property is 128 characters.”- Returns:
- property snapshotId
-
withSnapshotId
public DeviceManagementExportJob withSnapshotId(String snapshotId)
Returns an immutable copy ofthiswith just thesnapshotIdfield 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 snapshot is an identifiable subset of the dataset represented by the ReportName. A sessionId or CachedReportConfiguration id can be used here. If a sessionId is specified, Filter, Select, and OrderBy are applied to the data represented by the sessionId. Filter, Select, and OrderBy cannot be specified together with a CachedReportConfiguration id. The maximum length allowed for this property is 128 characters.”
- Parameters:
snapshotId- new value ofsnapshotIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesnapshotIdfield changed
-
getStatus
public Optional<DeviceManagementReportStatus> getStatus()
“Status of the export job. Possible values are `unknown`, `notStarted`, ` inProgress`, `completed` and `failed`.”- Returns:
- property status
-
withStatus
public DeviceManagementExportJob withStatus(DeviceManagementReportStatus status)
Returns an immutable copy ofthiswith just thestatusfield 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.“Status of the export job. Possible values are `unknown`, `notStarted`, ` inProgress`, `completed` and `failed`.”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
getUrl
public Optional<String> getUrl()
“Temporary location of the exported report.”- Returns:
- property url
-
withUrl
public DeviceManagementExportJob withUrl(String url)
Returns an immutable copy ofthiswith just theurlfield 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.“Temporary location of the exported report.”
- Parameters:
url- new value ofurlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theurlfield changed
-
withUnmappedField
public DeviceManagementExportJob 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 DeviceManagementExportJob patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementExportJob put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-