Package odata.msgraph.client.beta.entity
Class DeviceLogCollectionResponse
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.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 LongerrorCodeprotected OffsetDateTimeexpirationDateTimeUTCprotected StringinitiatedByUserPrincipalNameprotected StringmanagedDeviceIdprotected OffsetDateTimereceivedDateTimeUTCprotected OffsetDateTimerequestedDateTimeUTCprotected Doublesizeprotected Stringstatus-
Fields inherited from class odata.msgraph.client.beta.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<Long>getErrorCode()“The error code, if any.Optional<OffsetDateTime>getExpirationDateTimeUTC()“The DateTime of the expiration of the logs”Optional<String>getInitiatedByUserPrincipalName()“The UPN for who initiated the request”Optional<String>getManagedDeviceId()“The device Id”Optional<OffsetDateTime>getReceivedDateTimeUTC()“The DateTime the request was received”Optional<OffsetDateTime>getRequestedDateTimeUTC()“The DateTime of the request”Optional<Double>getSize()“The size of the logs.Optional<String>getStatus()“The status of the log collection request”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()DeviceLogCollectionResponsewithErrorCode(Long errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.DeviceLogCollectionResponsewithExpirationDateTimeUTC(OffsetDateTime expirationDateTimeUTC)Returns an immutable copy ofthiswith just theexpirationDateTimeUTCfield changed.DeviceLogCollectionResponsewithInitiatedByUserPrincipalName(String initiatedByUserPrincipalName)Returns an immutable copy ofthiswith just theinitiatedByUserPrincipalNamefield changed.DeviceLogCollectionResponsewithManagedDeviceId(String 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.DeviceLogCollectionResponsewithSize(Double size)Returns an immutable copy ofthiswith just thesizefield changed.DeviceLogCollectionResponsewithStatus(String status)Returns an immutable copy ofthiswith just thestatusfield changed.DeviceLogCollectionResponsewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
errorCode
protected Long errorCode
-
expirationDateTimeUTC
protected OffsetDateTime expirationDateTimeUTC
-
initiatedByUserPrincipalName
protected String initiatedByUserPrincipalName
-
managedDeviceId
protected String managedDeviceId
-
receivedDateTimeUTC
protected OffsetDateTime receivedDateTimeUTC
-
requestedDateTimeUTC
protected OffsetDateTime requestedDateTimeUTC
-
size
protected Double size
-
status
protected String 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
-
getErrorCode
public Optional<Long> getErrorCode()
“The error code, if any. Valid values -9.22337203685478E+18 to 9.22337203685478E+ 18”- Returns:
- property errorCode
-
withErrorCode
public DeviceLogCollectionResponse withErrorCode(Long errorCode)
Returns an immutable copy ofthiswith just theerrorCodefield 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 error code, if any. Valid values -9.22337203685478E+18 to 9.22337203685478E+ 18”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield 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<String> getManagedDeviceId()
“The device Id”- Returns:
- property managedDeviceId
-
withManagedDeviceId
public DeviceLogCollectionResponse withManagedDeviceId(String 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.“The device Id”
- 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
-
getSize
public Optional<Double> getSize()
“The size of the logs. Valid values -1.79769313486232E+308 to 1.79769313486232E+ 308”- Returns:
- property size
-
withSize
public DeviceLogCollectionResponse withSize(Double 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 logs. Valid values -1.79769313486232E+308 to 1.79769313486232E+ 308”
- Parameters:
size- new value ofsizefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thesizefield changed
-
getStatus
public Optional<String> getStatus()
“The status of the log collection request”- Returns:
- property status
-
withStatus
public DeviceLogCollectionResponse withStatus(String 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.“The status of the log collection request”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public DeviceLogCollectionResponse withUnmappedField(String name, String 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()
-
-