Package odata.msgraph.client.entity
Class DeviceLogCollectionResponse
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceLogCollectionResponse
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceLogCollectionResponse extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Windows Log Collection request entity.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceLogCollectionResponse.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringenrolledByUserprotected OffsetDateTimeexpirationDateTimeUTCprotected StringinitiatedByUserPrincipalNameprotected UUIDmanagedDeviceIdprotected OffsetDateTimereceivedDateTimeUTCprotected OffsetDateTimerequestedDateTimeUTCprotected DoublesizeInKBprotected AppLogUploadStatestatus-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceLogCollectionResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceLogCollectionResponse.BuilderbuilderDeviceLogCollectionResponse()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.ActionRequestReturningNonCollection<String>createDownloadUrl()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getEnrolledByUser()“The User Principal Name (UPN) of the user that enrolled the device.”Optional<OffsetDateTime>getExpirationDateTimeUTC()“The DateTime of the expiration of the logs.”Optional<String>getInitiatedByUserPrincipalName()“The UPN for who initiated the request.”Optional<UUID>getManagedDeviceId()“Indicates Intune device unique identifier.”Optional<OffsetDateTime>getReceivedDateTimeUTC()“The DateTime the request was received.”Optional<OffsetDateTime>getRequestedDateTimeUTC()“The DateTime of the request.”Optional<Double>getSizeInKB()“The size of the logs in KB.Optional<AppLogUploadState>getStatus()“Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceLogCollectionResponsepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceLogCollectionResponseput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceLogCollectionResponsewithEnrolledByUser(String enrolledByUser)Returns an immutable copy ofthiswith just theenrolledByUserfield changed.DeviceLogCollectionResponsewithExpirationDateTimeUTC(OffsetDateTime expirationDateTimeUTC)Returns an immutable copy ofthiswith just theexpirationDateTimeUTCfield changed.DeviceLogCollectionResponsewithInitiatedByUserPrincipalName(String initiatedByUserPrincipalName)Returns an immutable copy ofthiswith just theinitiatedByUserPrincipalNamefield changed.DeviceLogCollectionResponsewithManagedDeviceId(UUID managedDeviceId)Returns an immutable copy ofthiswith just themanagedDeviceIdfield changed.DeviceLogCollectionResponsewithReceivedDateTimeUTC(OffsetDateTime receivedDateTimeUTC)Returns an immutable copy ofthiswith just thereceivedDateTimeUTCfield changed.DeviceLogCollectionResponsewithRequestedDateTimeUTC(OffsetDateTime requestedDateTimeUTC)Returns an immutable copy ofthiswith just therequestedDateTimeUTCfield changed.DeviceLogCollectionResponsewithSizeInKB(Double sizeInKB)Returns an immutable copy ofthiswith just thesizeInKBfield changed.DeviceLogCollectionResponsewithStatus(AppLogUploadState status)Returns an immutable copy ofthiswith just thestatusfield changed.DeviceLogCollectionResponsewithUnmappedField(String name, Object value)
-
-
-
Field Detail
-
enrolledByUser
protected String enrolledByUser
-
expirationDateTimeUTC
protected OffsetDateTime expirationDateTimeUTC
-
initiatedByUserPrincipalName
protected String initiatedByUserPrincipalName
-
managedDeviceId
protected UUID managedDeviceId
-
receivedDateTimeUTC
protected OffsetDateTime receivedDateTimeUTC
-
requestedDateTimeUTC
protected OffsetDateTime requestedDateTimeUTC
-
sizeInKB
protected Double sizeInKB
-
status
protected AppLogUploadState status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceLogCollectionResponse
public static DeviceLogCollectionResponse.Builder builderDeviceLogCollectionResponse()
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
-
getEnrolledByUser
public Optional<String> getEnrolledByUser()
“The User Principal Name (UPN) of the user that enrolled the device.”- Returns:
- property enrolledByUser
-
withEnrolledByUser
public DeviceLogCollectionResponse withEnrolledByUser(String enrolledByUser)
Returns an immutable copy ofthiswith just theenrolledByUserfield 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 User Principal Name (UPN) of the user that enrolled the device.”
- Parameters:
enrolledByUser- new value ofenrolledByUserfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenrolledByUserfield changed
-
getExpirationDateTimeUTC
public Optional<OffsetDateTime> getExpirationDateTimeUTC()
“The DateTime of the expiration of the logs.”- Returns:
- property expirationDateTimeUTC
-
withExpirationDateTimeUTC
public DeviceLogCollectionResponse withExpirationDateTimeUTC(OffsetDateTime expirationDateTimeUTC)
Returns an immutable copy ofthiswith just theexpirationDateTimeUTCfield 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 DateTime of the expiration of the logs.”
- Parameters:
expirationDateTimeUTC- new value ofexpirationDateTimeUTCfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theexpirationDateTimeUTCfield changed
-
getInitiatedByUserPrincipalName
public Optional<String> getInitiatedByUserPrincipalName()
“The UPN for who initiated the request.”- Returns:
- property initiatedByUserPrincipalName
-
withInitiatedByUserPrincipalName
public DeviceLogCollectionResponse withInitiatedByUserPrincipalName(String initiatedByUserPrincipalName)
Returns an immutable copy ofthiswith just theinitiatedByUserPrincipalNamefield 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 UPN for who initiated the request.”
- Parameters:
initiatedByUserPrincipalName- new value ofinitiatedByUserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinitiatedByUserPrincipalNamefield changed
-
getManagedDeviceId
public Optional<UUID> getManagedDeviceId()
“Indicates Intune device unique identifier.”- Returns:
- property managedDeviceId
-
withManagedDeviceId
public DeviceLogCollectionResponse withManagedDeviceId(UUID managedDeviceId)
Returns an immutable copy ofthiswith just themanagedDeviceIdfield 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 Intune device unique identifier.”
- Parameters:
managedDeviceId- new value ofmanagedDeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themanagedDeviceIdfield changed
-
getReceivedDateTimeUTC
public Optional<OffsetDateTime> getReceivedDateTimeUTC()
“The DateTime the request was received.”- Returns:
- property receivedDateTimeUTC
-
withReceivedDateTimeUTC
public DeviceLogCollectionResponse withReceivedDateTimeUTC(OffsetDateTime receivedDateTimeUTC)
Returns an immutable copy ofthiswith just thereceivedDateTimeUTCfield 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 DateTime the request was received.”
- Parameters:
receivedDateTimeUTC- new value ofreceivedDateTimeUTCfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thereceivedDateTimeUTCfield changed
-
getRequestedDateTimeUTC
public Optional<OffsetDateTime> getRequestedDateTimeUTC()
“The DateTime of the request.”- Returns:
- property requestedDateTimeUTC
-
withRequestedDateTimeUTC
public DeviceLogCollectionResponse withRequestedDateTimeUTC(OffsetDateTime requestedDateTimeUTC)
Returns an immutable copy ofthiswith just therequestedDateTimeUTCfield 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 DateTime of the request.”
- Parameters:
requestedDateTimeUTC- new value ofrequestedDateTimeUTCfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therequestedDateTimeUTCfield changed
-
getSizeInKB
public Optional<Double> getSizeInKB()
“The size of the logs in KB. Valid values -1.79769313486232E+308 to 1. 79769313486232E+308”- Returns:
- property sizeInKB
-
withSizeInKB
public DeviceLogCollectionResponse withSizeInKB(Double sizeInKB)
Returns an immutable copy ofthiswith just thesizeInKBfield 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 logs in KB. Valid values -1.79769313486232E+308 to 1. 79769313486232E+308”
- Parameters:
sizeInKB- new value ofsizeInKBfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesizeInKBfield changed
-
getStatus
public Optional<AppLogUploadState> getStatus()
“Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending.”- Returns:
- property status
-
withStatus
public DeviceLogCollectionResponse withStatus(AppLogUploadState 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.“Indicates the status for the app log collection request if it is pending, completed or failed, Default is pending.”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public DeviceLogCollectionResponse 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 DeviceLogCollectionResponse patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceLogCollectionResponse put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
createDownloadUrl
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> createDownloadUrl()
-
-