
odata.msgraph.client.entity.ManagedDevice Maven / Gradle / Ivy
package odata.msgraph.client.entity;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.guavamini.Preconditions;
import com.github.davidmoten.odata.client.ActionRequestNoReturn;
import com.github.davidmoten.odata.client.ClientException;
import com.github.davidmoten.odata.client.CollectionPage;
import com.github.davidmoten.odata.client.HttpRequestOptions;
import com.github.davidmoten.odata.client.NameValue;
import com.github.davidmoten.odata.client.ODataEntityType;
import com.github.davidmoten.odata.client.RequestOptions;
import com.github.davidmoten.odata.client.UnmappedFields;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.Action;
import com.github.davidmoten.odata.client.annotation.NavigationProperty;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.Checks;
import com.github.davidmoten.odata.client.internal.ParameterMap;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.TypedObject;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;
import java.lang.Boolean;
import java.lang.Long;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import odata.msgraph.client.complex.ConfigurationManagerClientEnabledFeatures;
import odata.msgraph.client.complex.DeviceActionResult;
import odata.msgraph.client.complex.DeviceHealthAttestationState;
import odata.msgraph.client.complex.UpdateWindowsDeviceAccountActionParameter;
import odata.msgraph.client.entity.collection.request.DeviceCompliancePolicyStateCollectionRequest;
import odata.msgraph.client.entity.collection.request.DeviceConfigurationStateCollectionRequest;
import odata.msgraph.client.entity.collection.request.UserCollectionRequest;
import odata.msgraph.client.entity.request.DeviceCategoryRequest;
import odata.msgraph.client.enums.ComplianceState;
import odata.msgraph.client.enums.DeviceEnrollmentType;
import odata.msgraph.client.enums.DeviceManagementExchangeAccessState;
import odata.msgraph.client.enums.DeviceManagementExchangeAccessStateReason;
import odata.msgraph.client.enums.DeviceRegistrationState;
import odata.msgraph.client.enums.ManagedDeviceOwnerType;
import odata.msgraph.client.enums.ManagedDevicePartnerReportedHealthState;
import odata.msgraph.client.enums.ManagementAgentType;
/**
* “Devices that are managed or pre-enrolled through Intune”
*/@JsonPropertyOrder({
"@odata.type",
"activationLockBypassCode",
"androidSecurityPatchLevel",
"azureADDeviceId",
"azureADRegistered",
"complianceGracePeriodExpirationDateTime",
"complianceState",
"configurationManagerClientEnabledFeatures",
"deviceActionResults",
"deviceCategoryDisplayName",
"deviceEnrollmentType",
"deviceHealthAttestationState",
"deviceName",
"deviceRegistrationState",
"easActivated",
"easActivationDateTime",
"easDeviceId",
"emailAddress",
"enrolledDateTime",
"ethernetMacAddress",
"exchangeAccessState",
"exchangeAccessStateReason",
"exchangeLastSuccessfulSyncDateTime",
"freeStorageSpaceInBytes",
"iccid",
"imei",
"isEncrypted",
"isSupervised",
"jailBroken",
"lastSyncDateTime",
"managedDeviceName",
"managedDeviceOwnerType",
"managementAgent",
"managementCertificateExpirationDate",
"manufacturer",
"meid",
"model",
"notes",
"operatingSystem",
"osVersion",
"partnerReportedThreatState",
"phoneNumber",
"physicalMemoryInBytes",
"remoteAssistanceSessionErrorDetails",
"remoteAssistanceSessionUrl",
"requireUserEnrollmentApproval",
"serialNumber",
"subscriberCarrier",
"totalStorageSpaceInBytes",
"udid",
"userDisplayName",
"userId",
"userPrincipalName",
"wiFiMacAddress"})
@JsonInclude(Include.NON_NULL)
public class ManagedDevice extends Entity implements ODataEntityType {
@Override
public String odataTypeName() {
return "microsoft.graph.managedDevice";
}
@JsonProperty("activationLockBypassCode")
protected String activationLockBypassCode;
@JsonProperty("androidSecurityPatchLevel")
protected String androidSecurityPatchLevel;
@JsonProperty("azureADDeviceId")
protected String azureADDeviceId;
@JsonProperty("azureADRegistered")
protected Boolean azureADRegistered;
@JsonProperty("complianceGracePeriodExpirationDateTime")
protected OffsetDateTime complianceGracePeriodExpirationDateTime;
@JsonProperty("complianceState")
protected ComplianceState complianceState;
@JsonProperty("configurationManagerClientEnabledFeatures")
protected ConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures;
@JsonProperty("deviceActionResults")
protected List deviceActionResults;
@JsonProperty("deviceActionResults@nextLink")
protected String deviceActionResultsNextLink;
@JsonProperty("deviceCategoryDisplayName")
protected String deviceCategoryDisplayName;
@JsonProperty("deviceEnrollmentType")
protected DeviceEnrollmentType deviceEnrollmentType;
@JsonProperty("deviceHealthAttestationState")
protected DeviceHealthAttestationState deviceHealthAttestationState;
@JsonProperty("deviceName")
protected String deviceName;
@JsonProperty("deviceRegistrationState")
protected DeviceRegistrationState deviceRegistrationState;
@JsonProperty("easActivated")
protected Boolean easActivated;
@JsonProperty("easActivationDateTime")
protected OffsetDateTime easActivationDateTime;
@JsonProperty("easDeviceId")
protected String easDeviceId;
@JsonProperty("emailAddress")
protected String emailAddress;
@JsonProperty("enrolledDateTime")
protected OffsetDateTime enrolledDateTime;
@JsonProperty("ethernetMacAddress")
protected String ethernetMacAddress;
@JsonProperty("exchangeAccessState")
protected DeviceManagementExchangeAccessState exchangeAccessState;
@JsonProperty("exchangeAccessStateReason")
protected DeviceManagementExchangeAccessStateReason exchangeAccessStateReason;
@JsonProperty("exchangeLastSuccessfulSyncDateTime")
protected OffsetDateTime exchangeLastSuccessfulSyncDateTime;
@JsonProperty("freeStorageSpaceInBytes")
protected Long freeStorageSpaceInBytes;
@JsonProperty("iccid")
protected String iccid;
@JsonProperty("imei")
protected String imei;
@JsonProperty("isEncrypted")
protected Boolean isEncrypted;
@JsonProperty("isSupervised")
protected Boolean isSupervised;
@JsonProperty("jailBroken")
protected String jailBroken;
@JsonProperty("lastSyncDateTime")
protected OffsetDateTime lastSyncDateTime;
@JsonProperty("managedDeviceName")
protected String managedDeviceName;
@JsonProperty("managedDeviceOwnerType")
protected ManagedDeviceOwnerType managedDeviceOwnerType;
@JsonProperty("managementAgent")
protected ManagementAgentType managementAgent;
@JsonProperty("managementCertificateExpirationDate")
protected OffsetDateTime managementCertificateExpirationDate;
@JsonProperty("manufacturer")
protected String manufacturer;
@JsonProperty("meid")
protected String meid;
@JsonProperty("model")
protected String model;
@JsonProperty("notes")
protected String notes;
@JsonProperty("operatingSystem")
protected String operatingSystem;
@JsonProperty("osVersion")
protected String osVersion;
@JsonProperty("partnerReportedThreatState")
protected ManagedDevicePartnerReportedHealthState partnerReportedThreatState;
@JsonProperty("phoneNumber")
protected String phoneNumber;
@JsonProperty("physicalMemoryInBytes")
protected Long physicalMemoryInBytes;
@JsonProperty("remoteAssistanceSessionErrorDetails")
protected String remoteAssistanceSessionErrorDetails;
@JsonProperty("remoteAssistanceSessionUrl")
protected String remoteAssistanceSessionUrl;
@JsonProperty("requireUserEnrollmentApproval")
protected Boolean requireUserEnrollmentApproval;
@JsonProperty("serialNumber")
protected String serialNumber;
@JsonProperty("subscriberCarrier")
protected String subscriberCarrier;
@JsonProperty("totalStorageSpaceInBytes")
protected Long totalStorageSpaceInBytes;
@JsonProperty("udid")
protected String udid;
@JsonProperty("userDisplayName")
protected String userDisplayName;
@JsonProperty("userId")
protected String userId;
@JsonProperty("userPrincipalName")
protected String userPrincipalName;
@JsonProperty("wiFiMacAddress")
protected String wiFiMacAddress;
protected ManagedDevice() {
super();
}
/**
* Returns a builder which is used to create a new
* instance of this class (given that this class is immutable).
*
* @return a new Builder for this class
*/
// Suffix used on builder factory method to differentiate the method
// from static builder methods on superclasses
public static Builder builderManagedDevice() {
return new Builder();
}
public static final class Builder {
private String id;
private String activationLockBypassCode;
private String androidSecurityPatchLevel;
private String azureADDeviceId;
private Boolean azureADRegistered;
private OffsetDateTime complianceGracePeriodExpirationDateTime;
private ComplianceState complianceState;
private ConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures;
private List deviceActionResults;
private String deviceActionResultsNextLink;
private String deviceCategoryDisplayName;
private DeviceEnrollmentType deviceEnrollmentType;
private DeviceHealthAttestationState deviceHealthAttestationState;
private String deviceName;
private DeviceRegistrationState deviceRegistrationState;
private Boolean easActivated;
private OffsetDateTime easActivationDateTime;
private String easDeviceId;
private String emailAddress;
private OffsetDateTime enrolledDateTime;
private String ethernetMacAddress;
private DeviceManagementExchangeAccessState exchangeAccessState;
private DeviceManagementExchangeAccessStateReason exchangeAccessStateReason;
private OffsetDateTime exchangeLastSuccessfulSyncDateTime;
private Long freeStorageSpaceInBytes;
private String iccid;
private String imei;
private Boolean isEncrypted;
private Boolean isSupervised;
private String jailBroken;
private OffsetDateTime lastSyncDateTime;
private String managedDeviceName;
private ManagedDeviceOwnerType managedDeviceOwnerType;
private ManagementAgentType managementAgent;
private OffsetDateTime managementCertificateExpirationDate;
private String manufacturer;
private String meid;
private String model;
private String notes;
private String operatingSystem;
private String osVersion;
private ManagedDevicePartnerReportedHealthState partnerReportedThreatState;
private String phoneNumber;
private Long physicalMemoryInBytes;
private String remoteAssistanceSessionErrorDetails;
private String remoteAssistanceSessionUrl;
private Boolean requireUserEnrollmentApproval;
private String serialNumber;
private String subscriberCarrier;
private Long totalStorageSpaceInBytes;
private String udid;
private String userDisplayName;
private String userId;
private String userPrincipalName;
private String wiFiMacAddress;
private ChangedFields changedFields = ChangedFields.EMPTY;
Builder() {
// prevent instantiation
}
public Builder id(String id) {
this.id = id;
this.changedFields = changedFields.add("id");
return this;
}
/**
* “Code that allows the Activation Lock on a device to be bypassed. This property
* is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param activationLockBypassCode
* value of {@code activationLockBypassCode} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder activationLockBypassCode(String activationLockBypassCode) {
this.activationLockBypassCode = activationLockBypassCode;
this.changedFields = changedFields.add("activationLockBypassCode");
return this;
}
/**
* “Android security patch level. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param androidSecurityPatchLevel
* value of {@code androidSecurityPatchLevel} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder androidSecurityPatchLevel(String androidSecurityPatchLevel) {
this.androidSecurityPatchLevel = androidSecurityPatchLevel;
this.changedFields = changedFields.add("androidSecurityPatchLevel");
return this;
}
/**
* “The unique identifier for the Azure Active Directory device. Read only. This
* property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param azureADDeviceId
* value of {@code azureADDeviceId} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder azureADDeviceId(String azureADDeviceId) {
this.azureADDeviceId = azureADDeviceId;
this.changedFields = changedFields.add("azureADDeviceId");
return this;
}
/**
* “Whether the device is Azure Active Directory registered. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param azureADRegistered
* value of {@code azureADRegistered} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder azureADRegistered(Boolean azureADRegistered) {
this.azureADRegistered = azureADRegistered;
this.changedFields = changedFields.add("azureADRegistered");
return this;
}
/**
* “The DateTime when device compliance grace period expires. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param complianceGracePeriodExpirationDateTime
* value of {@code complianceGracePeriodExpirationDateTime} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder complianceGracePeriodExpirationDateTime(OffsetDateTime complianceGracePeriodExpirationDateTime) {
this.complianceGracePeriodExpirationDateTime = complianceGracePeriodExpirationDateTime;
this.changedFields = changedFields.add("complianceGracePeriodExpirationDateTime");
return this;
}
/**
* “Compliance state of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param complianceState
* value of {@code complianceState} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder complianceState(ComplianceState complianceState) {
this.complianceState = complianceState;
this.changedFields = changedFields.add("complianceState");
return this;
}
/**
* “ConfigrMgr client enabled features. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param configurationManagerClientEnabledFeatures
* value of {@code configurationManagerClientEnabledFeatures} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder configurationManagerClientEnabledFeatures(ConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures) {
this.configurationManagerClientEnabledFeatures = configurationManagerClientEnabledFeatures;
this.changedFields = changedFields.add("configurationManagerClientEnabledFeatures");
return this;
}
/**
* “List of ComplexType deviceActionResult objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceActionResults
* value of {@code deviceActionResults} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceActionResults(List deviceActionResults) {
this.deviceActionResults = deviceActionResults;
this.changedFields = changedFields.add("deviceActionResults");
return this;
}
/**
* “List of ComplexType deviceActionResult objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceActionResults
* value of {@code deviceActionResults} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceActionResults(DeviceActionResult... deviceActionResults) {
return deviceActionResults(Arrays.asList(deviceActionResults));
}
/**
* “List of ComplexType deviceActionResult objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceActionResultsNextLink
* value of {@code deviceActionResults@nextLink} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceActionResultsNextLink(String deviceActionResultsNextLink) {
this.deviceActionResultsNextLink = deviceActionResultsNextLink;
this.changedFields = changedFields.add("deviceActionResults");
return this;
}
/**
* “Device category display name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceCategoryDisplayName
* value of {@code deviceCategoryDisplayName} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceCategoryDisplayName(String deviceCategoryDisplayName) {
this.deviceCategoryDisplayName = deviceCategoryDisplayName;
this.changedFields = changedFields.add("deviceCategoryDisplayName");
return this;
}
/**
* “Enrollment type of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceEnrollmentType
* value of {@code deviceEnrollmentType} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceEnrollmentType(DeviceEnrollmentType deviceEnrollmentType) {
this.deviceEnrollmentType = deviceEnrollmentType;
this.changedFields = changedFields.add("deviceEnrollmentType");
return this;
}
/**
* “The device health attestation state. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceHealthAttestationState
* value of {@code deviceHealthAttestationState} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceHealthAttestationState(DeviceHealthAttestationState deviceHealthAttestationState) {
this.deviceHealthAttestationState = deviceHealthAttestationState;
this.changedFields = changedFields.add("deviceHealthAttestationState");
return this;
}
/**
* “Name of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceName
* value of {@code deviceName} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceName(String deviceName) {
this.deviceName = deviceName;
this.changedFields = changedFields.add("deviceName");
return this;
}
/**
* “Device registration state. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceRegistrationState
* value of {@code deviceRegistrationState} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder deviceRegistrationState(DeviceRegistrationState deviceRegistrationState) {
this.deviceRegistrationState = deviceRegistrationState;
this.changedFields = changedFields.add("deviceRegistrationState");
return this;
}
/**
* “Whether the device is Exchange ActiveSync activated. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param easActivated
* value of {@code easActivated} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder easActivated(Boolean easActivated) {
this.easActivated = easActivated;
this.changedFields = changedFields.add("easActivated");
return this;
}
/**
* “Exchange ActivationSync activation time of the device. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param easActivationDateTime
* value of {@code easActivationDateTime} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder easActivationDateTime(OffsetDateTime easActivationDateTime) {
this.easActivationDateTime = easActivationDateTime;
this.changedFields = changedFields.add("easActivationDateTime");
return this;
}
/**
* “Exchange ActiveSync Id of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param easDeviceId
* value of {@code easDeviceId} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder easDeviceId(String easDeviceId) {
this.easDeviceId = easDeviceId;
this.changedFields = changedFields.add("easDeviceId");
return this;
}
/**
* “Email(s) for the user associated with the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param emailAddress
* value of {@code emailAddress} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder emailAddress(String emailAddress) {
this.emailAddress = emailAddress;
this.changedFields = changedFields.add("emailAddress");
return this;
}
/**
* “Enrollment time of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param enrolledDateTime
* value of {@code enrolledDateTime} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder enrolledDateTime(OffsetDateTime enrolledDateTime) {
this.enrolledDateTime = enrolledDateTime;
this.changedFields = changedFields.add("enrolledDateTime");
return this;
}
/**
* “Ethernet MAC. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param ethernetMacAddress
* value of {@code ethernetMacAddress} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder ethernetMacAddress(String ethernetMacAddress) {
this.ethernetMacAddress = ethernetMacAddress;
this.changedFields = changedFields.add("ethernetMacAddress");
return this;
}
/**
* “The Access State of the device in Exchange. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param exchangeAccessState
* value of {@code exchangeAccessState} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder exchangeAccessState(DeviceManagementExchangeAccessState exchangeAccessState) {
this.exchangeAccessState = exchangeAccessState;
this.changedFields = changedFields.add("exchangeAccessState");
return this;
}
/**
* “The reason for the device's access state in Exchange. This property is read-only
* .”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param exchangeAccessStateReason
* value of {@code exchangeAccessStateReason} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder exchangeAccessStateReason(DeviceManagementExchangeAccessStateReason exchangeAccessStateReason) {
this.exchangeAccessStateReason = exchangeAccessStateReason;
this.changedFields = changedFields.add("exchangeAccessStateReason");
return this;
}
/**
* “Last time the device contacted Exchange. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param exchangeLastSuccessfulSyncDateTime
* value of {@code exchangeLastSuccessfulSyncDateTime} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder exchangeLastSuccessfulSyncDateTime(OffsetDateTime exchangeLastSuccessfulSyncDateTime) {
this.exchangeLastSuccessfulSyncDateTime = exchangeLastSuccessfulSyncDateTime;
this.changedFields = changedFields.add("exchangeLastSuccessfulSyncDateTime");
return this;
}
/**
* “Free Storage in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param freeStorageSpaceInBytes
* value of {@code freeStorageSpaceInBytes} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder freeStorageSpaceInBytes(Long freeStorageSpaceInBytes) {
this.freeStorageSpaceInBytes = freeStorageSpaceInBytes;
this.changedFields = changedFields.add("freeStorageSpaceInBytes");
return this;
}
/**
* “Integrated Circuit Card Identifier, it is A SIM card's unique identification
* number. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param iccid
* value of {@code iccid} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder iccid(String iccid) {
this.iccid = iccid;
this.changedFields = changedFields.add("iccid");
return this;
}
/**
* “IMEI. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param imei
* value of {@code imei} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder imei(String imei) {
this.imei = imei;
this.changedFields = changedFields.add("imei");
return this;
}
/**
* “Device encryption status. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param isEncrypted
* value of {@code isEncrypted} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder isEncrypted(Boolean isEncrypted) {
this.isEncrypted = isEncrypted;
this.changedFields = changedFields.add("isEncrypted");
return this;
}
/**
* “Device supervised status. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param isSupervised
* value of {@code isSupervised} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder isSupervised(Boolean isSupervised) {
this.isSupervised = isSupervised;
this.changedFields = changedFields.add("isSupervised");
return this;
}
/**
* “whether the device is jail broken or rooted. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param jailBroken
* value of {@code jailBroken} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder jailBroken(String jailBroken) {
this.jailBroken = jailBroken;
this.changedFields = changedFields.add("jailBroken");
return this;
}
/**
* “The date and time that the device last completed a successful sync with Intune.
* This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param lastSyncDateTime
* value of {@code lastSyncDateTime} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder lastSyncDateTime(OffsetDateTime lastSyncDateTime) {
this.lastSyncDateTime = lastSyncDateTime;
this.changedFields = changedFields.add("lastSyncDateTime");
return this;
}
/**
* “Automatically generated name to identify a device. Can be overwritten to a user
* friendly name.”
*
* @param managedDeviceName
* value of {@code managedDeviceName} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder managedDeviceName(String managedDeviceName) {
this.managedDeviceName = managedDeviceName;
this.changedFields = changedFields.add("managedDeviceName");
return this;
}
/**
* “Ownership of the device. Can be 'company' or 'personal'”
*
* @param managedDeviceOwnerType
* value of {@code managedDeviceOwnerType} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder managedDeviceOwnerType(ManagedDeviceOwnerType managedDeviceOwnerType) {
this.managedDeviceOwnerType = managedDeviceOwnerType;
this.changedFields = changedFields.add("managedDeviceOwnerType");
return this;
}
/**
* “Management channel of the device. Intune, EAS, etc. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param managementAgent
* value of {@code managementAgent} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder managementAgent(ManagementAgentType managementAgent) {
this.managementAgent = managementAgent;
this.changedFields = changedFields.add("managementAgent");
return this;
}
/**
* “Reports device management certificate expiration date. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param managementCertificateExpirationDate
* value of {@code managementCertificateExpirationDate} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder managementCertificateExpirationDate(OffsetDateTime managementCertificateExpirationDate) {
this.managementCertificateExpirationDate = managementCertificateExpirationDate;
this.changedFields = changedFields.add("managementCertificateExpirationDate");
return this;
}
/**
* “Manufacturer of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param manufacturer
* value of {@code manufacturer} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder manufacturer(String manufacturer) {
this.manufacturer = manufacturer;
this.changedFields = changedFields.add("manufacturer");
return this;
}
/**
* “MEID. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param meid
* value of {@code meid} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder meid(String meid) {
this.meid = meid;
this.changedFields = changedFields.add("meid");
return this;
}
/**
* “Model of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param model
* value of {@code model} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder model(String model) {
this.model = model;
this.changedFields = changedFields.add("model");
return this;
}
/**
* “Notes on the device created by IT Admin”
*
* @param notes
* value of {@code notes} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder notes(String notes) {
this.notes = notes;
this.changedFields = changedFields.add("notes");
return this;
}
/**
* “Operating system of the device. Windows, iOS, etc. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param operatingSystem
* value of {@code operatingSystem} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder operatingSystem(String operatingSystem) {
this.operatingSystem = operatingSystem;
this.changedFields = changedFields.add("operatingSystem");
return this;
}
/**
* “Operating system version of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param osVersion
* value of {@code osVersion} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder osVersion(String osVersion) {
this.osVersion = osVersion;
this.changedFields = changedFields.add("osVersion");
return this;
}
/**
* “Indicates the threat state of a device when a Mobile Threat Defense partner is
* in use by the account and device. Read Only. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param partnerReportedThreatState
* value of {@code partnerReportedThreatState} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder partnerReportedThreatState(ManagedDevicePartnerReportedHealthState partnerReportedThreatState) {
this.partnerReportedThreatState = partnerReportedThreatState;
this.changedFields = changedFields.add("partnerReportedThreatState");
return this;
}
/**
* “Phone number of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param phoneNumber
* value of {@code phoneNumber} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
this.changedFields = changedFields.add("phoneNumber");
return this;
}
/**
* “Total Memory in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param physicalMemoryInBytes
* value of {@code physicalMemoryInBytes} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder physicalMemoryInBytes(Long physicalMemoryInBytes) {
this.physicalMemoryInBytes = physicalMemoryInBytes;
this.changedFields = changedFields.add("physicalMemoryInBytes");
return this;
}
/**
* “An error string that identifies issues when creating Remote Assistance session
* objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param remoteAssistanceSessionErrorDetails
* value of {@code remoteAssistanceSessionErrorDetails} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder remoteAssistanceSessionErrorDetails(String remoteAssistanceSessionErrorDetails) {
this.remoteAssistanceSessionErrorDetails = remoteAssistanceSessionErrorDetails;
this.changedFields = changedFields.add("remoteAssistanceSessionErrorDetails");
return this;
}
/**
* “Url that allows a Remote Assistance session to be established with the device.
* This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param remoteAssistanceSessionUrl
* value of {@code remoteAssistanceSessionUrl} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder remoteAssistanceSessionUrl(String remoteAssistanceSessionUrl) {
this.remoteAssistanceSessionUrl = remoteAssistanceSessionUrl;
this.changedFields = changedFields.add("remoteAssistanceSessionUrl");
return this;
}
/**
* “Reports if the managed iOS device is user approval enrollment. This property is
* read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param requireUserEnrollmentApproval
* value of {@code requireUserEnrollmentApproval} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder requireUserEnrollmentApproval(Boolean requireUserEnrollmentApproval) {
this.requireUserEnrollmentApproval = requireUserEnrollmentApproval;
this.changedFields = changedFields.add("requireUserEnrollmentApproval");
return this;
}
/**
* “SerialNumber. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param serialNumber
* value of {@code serialNumber} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder serialNumber(String serialNumber) {
this.serialNumber = serialNumber;
this.changedFields = changedFields.add("serialNumber");
return this;
}
/**
* “Subscriber Carrier. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param subscriberCarrier
* value of {@code subscriberCarrier} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder subscriberCarrier(String subscriberCarrier) {
this.subscriberCarrier = subscriberCarrier;
this.changedFields = changedFields.add("subscriberCarrier");
return this;
}
/**
* “Total Storage in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param totalStorageSpaceInBytes
* value of {@code totalStorageSpaceInBytes} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder totalStorageSpaceInBytes(Long totalStorageSpaceInBytes) {
this.totalStorageSpaceInBytes = totalStorageSpaceInBytes;
this.changedFields = changedFields.add("totalStorageSpaceInBytes");
return this;
}
/**
* “Unique Device Identifier for iOS and macOS devices. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param udid
* value of {@code udid} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder udid(String udid) {
this.udid = udid;
this.changedFields = changedFields.add("udid");
return this;
}
/**
* “User display name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param userDisplayName
* value of {@code userDisplayName} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder userDisplayName(String userDisplayName) {
this.userDisplayName = userDisplayName;
this.changedFields = changedFields.add("userDisplayName");
return this;
}
/**
* “Unique Identifier for the user associated with the device. This property is read
* -only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param userId
* value of {@code userId} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder userId(String userId) {
this.userId = userId;
this.changedFields = changedFields.add("userId");
return this;
}
/**
* “Device user principal name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param userPrincipalName
* value of {@code userPrincipalName} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder userPrincipalName(String userPrincipalName) {
this.userPrincipalName = userPrincipalName;
this.changedFields = changedFields.add("userPrincipalName");
return this;
}
/**
* “Wi-Fi MAC. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param wiFiMacAddress
* value of {@code wiFiMacAddress} property (as defined in service metadata)
* @return {@code this} (for method chaining)
*/
public Builder wiFiMacAddress(String wiFiMacAddress) {
this.wiFiMacAddress = wiFiMacAddress;
this.changedFields = changedFields.add("wiFiMacAddress");
return this;
}
public ManagedDevice build() {
ManagedDevice _x = new ManagedDevice();
_x.contextPath = null;
_x.changedFields = changedFields;
_x.unmappedFields = new UnmappedFieldsImpl();
_x.odataType = "microsoft.graph.managedDevice";
_x.id = id;
_x.activationLockBypassCode = activationLockBypassCode;
_x.androidSecurityPatchLevel = androidSecurityPatchLevel;
_x.azureADDeviceId = azureADDeviceId;
_x.azureADRegistered = azureADRegistered;
_x.complianceGracePeriodExpirationDateTime = complianceGracePeriodExpirationDateTime;
_x.complianceState = complianceState;
_x.configurationManagerClientEnabledFeatures = configurationManagerClientEnabledFeatures;
_x.deviceActionResults = deviceActionResults;
_x.deviceActionResultsNextLink = deviceActionResultsNextLink;
_x.deviceCategoryDisplayName = deviceCategoryDisplayName;
_x.deviceEnrollmentType = deviceEnrollmentType;
_x.deviceHealthAttestationState = deviceHealthAttestationState;
_x.deviceName = deviceName;
_x.deviceRegistrationState = deviceRegistrationState;
_x.easActivated = easActivated;
_x.easActivationDateTime = easActivationDateTime;
_x.easDeviceId = easDeviceId;
_x.emailAddress = emailAddress;
_x.enrolledDateTime = enrolledDateTime;
_x.ethernetMacAddress = ethernetMacAddress;
_x.exchangeAccessState = exchangeAccessState;
_x.exchangeAccessStateReason = exchangeAccessStateReason;
_x.exchangeLastSuccessfulSyncDateTime = exchangeLastSuccessfulSyncDateTime;
_x.freeStorageSpaceInBytes = freeStorageSpaceInBytes;
_x.iccid = iccid;
_x.imei = imei;
_x.isEncrypted = isEncrypted;
_x.isSupervised = isSupervised;
_x.jailBroken = jailBroken;
_x.lastSyncDateTime = lastSyncDateTime;
_x.managedDeviceName = managedDeviceName;
_x.managedDeviceOwnerType = managedDeviceOwnerType;
_x.managementAgent = managementAgent;
_x.managementCertificateExpirationDate = managementCertificateExpirationDate;
_x.manufacturer = manufacturer;
_x.meid = meid;
_x.model = model;
_x.notes = notes;
_x.operatingSystem = operatingSystem;
_x.osVersion = osVersion;
_x.partnerReportedThreatState = partnerReportedThreatState;
_x.phoneNumber = phoneNumber;
_x.physicalMemoryInBytes = physicalMemoryInBytes;
_x.remoteAssistanceSessionErrorDetails = remoteAssistanceSessionErrorDetails;
_x.remoteAssistanceSessionUrl = remoteAssistanceSessionUrl;
_x.requireUserEnrollmentApproval = requireUserEnrollmentApproval;
_x.serialNumber = serialNumber;
_x.subscriberCarrier = subscriberCarrier;
_x.totalStorageSpaceInBytes = totalStorageSpaceInBytes;
_x.udid = udid;
_x.userDisplayName = userDisplayName;
_x.userId = userId;
_x.userPrincipalName = userPrincipalName;
_x.wiFiMacAddress = wiFiMacAddress;
return _x;
}
}
@Override
@JsonIgnore
public ChangedFields getChangedFields() {
return changedFields;
}
@Override
public void postInject(boolean addKeysToContextPath) {
if (addKeysToContextPath && id != null) {
contextPath = contextPath.clearQueries().addKeys(new NameValue(id.toString()));
}
}
/**
* “Code that allows the Activation Lock on a device to be bypassed. This property
* is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property activationLockBypassCode
*/
@Property(name="activationLockBypassCode")
@JsonIgnore
public Optional getActivationLockBypassCode() {
return Optional.ofNullable(activationLockBypassCode);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* activationLockBypassCode} field changed. Field description below. The field name
* is also added to an internal map of changed fields in the returned object so
* that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Code that allows the Activation Lock on a device to be bypassed. This property
* is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param activationLockBypassCode
* new value of {@code activationLockBypassCode} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code activationLockBypassCode} field changed
*/
public ManagedDevice withActivationLockBypassCode(String activationLockBypassCode) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("activationLockBypassCode");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.activationLockBypassCode = activationLockBypassCode;
return _x;
}
/**
* “Android security patch level. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property androidSecurityPatchLevel
*/
@Property(name="androidSecurityPatchLevel")
@JsonIgnore
public Optional getAndroidSecurityPatchLevel() {
return Optional.ofNullable(androidSecurityPatchLevel);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* androidSecurityPatchLevel} field changed. Field description below. The field
* name is also added to an internal map of changed fields in the returned object
* so that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Android security patch level. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param androidSecurityPatchLevel
* new value of {@code androidSecurityPatchLevel} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code androidSecurityPatchLevel} field changed
*/
public ManagedDevice withAndroidSecurityPatchLevel(String androidSecurityPatchLevel) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("androidSecurityPatchLevel");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.androidSecurityPatchLevel = androidSecurityPatchLevel;
return _x;
}
/**
* “The unique identifier for the Azure Active Directory device. Read only. This
* property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property azureADDeviceId
*/
@Property(name="azureADDeviceId")
@JsonIgnore
public Optional getAzureADDeviceId() {
return Optional.ofNullable(azureADDeviceId);
}
/**
* Returns an immutable copy of {@code this} with just the {@code azureADDeviceId}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “The unique identifier for the Azure Active Directory device. Read only. This
* property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param azureADDeviceId
* new value of {@code azureADDeviceId} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code azureADDeviceId} field changed
*/
public ManagedDevice withAzureADDeviceId(String azureADDeviceId) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("azureADDeviceId");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.azureADDeviceId = azureADDeviceId;
return _x;
}
/**
* “Whether the device is Azure Active Directory registered. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property azureADRegistered
*/
@Property(name="azureADRegistered")
@JsonIgnore
public Optional getAzureADRegistered() {
return Optional.ofNullable(azureADRegistered);
}
/**
* Returns an immutable copy of {@code this} with just the {@code azureADRegistered
* } field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Whether the device is Azure Active Directory registered. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param azureADRegistered
* new value of {@code azureADRegistered} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code azureADRegistered} field changed
*/
public ManagedDevice withAzureADRegistered(Boolean azureADRegistered) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("azureADRegistered");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.azureADRegistered = azureADRegistered;
return _x;
}
/**
* “The DateTime when device compliance grace period expires. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property complianceGracePeriodExpirationDateTime
*/
@Property(name="complianceGracePeriodExpirationDateTime")
@JsonIgnore
public Optional getComplianceGracePeriodExpirationDateTime() {
return Optional.ofNullable(complianceGracePeriodExpirationDateTime);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* complianceGracePeriodExpirationDateTime} field changed. Field description below.
* The field name is also added to an internal map of changed fields in the
* returned object so that when {@code this.patch()} is called (if available)on the
* returned object only the changed fields are submitted.
*
* “The DateTime when device compliance grace period expires. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param complianceGracePeriodExpirationDateTime
* new value of {@code complianceGracePeriodExpirationDateTime} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code complianceGracePeriodExpirationDateTime} field changed
*/
public ManagedDevice withComplianceGracePeriodExpirationDateTime(OffsetDateTime complianceGracePeriodExpirationDateTime) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("complianceGracePeriodExpirationDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.complianceGracePeriodExpirationDateTime = complianceGracePeriodExpirationDateTime;
return _x;
}
/**
* “Compliance state of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property complianceState
*/
@Property(name="complianceState")
@JsonIgnore
public Optional getComplianceState() {
return Optional.ofNullable(complianceState);
}
/**
* Returns an immutable copy of {@code this} with just the {@code complianceState}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Compliance state of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param complianceState
* new value of {@code complianceState} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code complianceState} field changed
*/
public ManagedDevice withComplianceState(ComplianceState complianceState) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("complianceState");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.complianceState = complianceState;
return _x;
}
/**
* “ConfigrMgr client enabled features. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property configurationManagerClientEnabledFeatures
*/
@Property(name="configurationManagerClientEnabledFeatures")
@JsonIgnore
public Optional getConfigurationManagerClientEnabledFeatures() {
return Optional.ofNullable(configurationManagerClientEnabledFeatures);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* configurationManagerClientEnabledFeatures} field changed. Field description
* below. The field name is also added to an internal map of changed fields in the
* returned object so that when {@code this.patch()} is called (if available)on the
* returned object only the changed fields are submitted.
*
* “ConfigrMgr client enabled features. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param configurationManagerClientEnabledFeatures
* new value of {@code configurationManagerClientEnabledFeatures} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code configurationManagerClientEnabledFeatures} field changed
*/
public ManagedDevice withConfigurationManagerClientEnabledFeatures(ConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("configurationManagerClientEnabledFeatures");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.configurationManagerClientEnabledFeatures = configurationManagerClientEnabledFeatures;
return _x;
}
/**
* “List of ComplexType deviceActionResult objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property deviceActionResults
*/
@Property(name="deviceActionResults")
@JsonIgnore
public CollectionPage getDeviceActionResults() {
return new CollectionPage(contextPath, DeviceActionResult.class, this.deviceActionResults, Optional.ofNullable(deviceActionResultsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* deviceActionResults} field changed. Field description below. The field name is
* also added to an internal map of changed fields in the returned object so that
* when {@code this.patch()} is called (if available)on the returned object only
* the changed fields are submitted.
*
* “List of ComplexType deviceActionResult objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceActionResults
* new value of {@code deviceActionResults} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code deviceActionResults} field changed
*/
public ManagedDevice withDeviceActionResults(List deviceActionResults) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("deviceActionResults");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.deviceActionResults = deviceActionResults;
return _x;
}
/**
* “List of ComplexType deviceActionResult objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param options
* specify connect and read timeouts
* @return property deviceActionResults
*/
@Property(name="deviceActionResults")
@JsonIgnore
public CollectionPage getDeviceActionResults(HttpRequestOptions options) {
return new CollectionPage(contextPath, DeviceActionResult.class, this.deviceActionResults, Optional.ofNullable(deviceActionResultsNextLink), Collections.emptyList(), options);
}
/**
* “Device category display name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property deviceCategoryDisplayName
*/
@Property(name="deviceCategoryDisplayName")
@JsonIgnore
public Optional getDeviceCategoryDisplayName() {
return Optional.ofNullable(deviceCategoryDisplayName);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* deviceCategoryDisplayName} field changed. Field description below. The field
* name is also added to an internal map of changed fields in the returned object
* so that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Device category display name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceCategoryDisplayName
* new value of {@code deviceCategoryDisplayName} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code deviceCategoryDisplayName} field changed
*/
public ManagedDevice withDeviceCategoryDisplayName(String deviceCategoryDisplayName) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("deviceCategoryDisplayName");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.deviceCategoryDisplayName = deviceCategoryDisplayName;
return _x;
}
/**
* “Enrollment type of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property deviceEnrollmentType
*/
@Property(name="deviceEnrollmentType")
@JsonIgnore
public Optional getDeviceEnrollmentType() {
return Optional.ofNullable(deviceEnrollmentType);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* deviceEnrollmentType} field changed. Field description below. The field name is
* also added to an internal map of changed fields in the returned object so that
* when {@code this.patch()} is called (if available)on the returned object only
* the changed fields are submitted.
*
* “Enrollment type of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceEnrollmentType
* new value of {@code deviceEnrollmentType} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code deviceEnrollmentType} field changed
*/
public ManagedDevice withDeviceEnrollmentType(DeviceEnrollmentType deviceEnrollmentType) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("deviceEnrollmentType");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.deviceEnrollmentType = deviceEnrollmentType;
return _x;
}
/**
* “The device health attestation state. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property deviceHealthAttestationState
*/
@Property(name="deviceHealthAttestationState")
@JsonIgnore
public Optional getDeviceHealthAttestationState() {
return Optional.ofNullable(deviceHealthAttestationState);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* deviceHealthAttestationState} field changed. Field description below. The field
* name is also added to an internal map of changed fields in the returned object
* so that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “The device health attestation state. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceHealthAttestationState
* new value of {@code deviceHealthAttestationState} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code deviceHealthAttestationState} field changed
*/
public ManagedDevice withDeviceHealthAttestationState(DeviceHealthAttestationState deviceHealthAttestationState) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("deviceHealthAttestationState");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.deviceHealthAttestationState = deviceHealthAttestationState;
return _x;
}
/**
* “Name of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property deviceName
*/
@Property(name="deviceName")
@JsonIgnore
public Optional getDeviceName() {
return Optional.ofNullable(deviceName);
}
/**
* Returns an immutable copy of {@code this} with just the {@code deviceName} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “Name of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceName
* new value of {@code deviceName} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code deviceName} field changed
*/
public ManagedDevice withDeviceName(String deviceName) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("deviceName");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.deviceName = deviceName;
return _x;
}
/**
* “Device registration state. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property deviceRegistrationState
*/
@Property(name="deviceRegistrationState")
@JsonIgnore
public Optional getDeviceRegistrationState() {
return Optional.ofNullable(deviceRegistrationState);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* deviceRegistrationState} field changed. Field description below. The field name
* is also added to an internal map of changed fields in the returned object so
* that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Device registration state. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param deviceRegistrationState
* new value of {@code deviceRegistrationState} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code deviceRegistrationState} field changed
*/
public ManagedDevice withDeviceRegistrationState(DeviceRegistrationState deviceRegistrationState) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("deviceRegistrationState");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.deviceRegistrationState = deviceRegistrationState;
return _x;
}
/**
* “Whether the device is Exchange ActiveSync activated. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property easActivated
*/
@Property(name="easActivated")
@JsonIgnore
public Optional getEasActivated() {
return Optional.ofNullable(easActivated);
}
/**
* Returns an immutable copy of {@code this} with just the {@code easActivated}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Whether the device is Exchange ActiveSync activated. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param easActivated
* new value of {@code easActivated} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code easActivated} field changed
*/
public ManagedDevice withEasActivated(Boolean easActivated) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("easActivated");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.easActivated = easActivated;
return _x;
}
/**
* “Exchange ActivationSync activation time of the device. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property easActivationDateTime
*/
@Property(name="easActivationDateTime")
@JsonIgnore
public Optional getEasActivationDateTime() {
return Optional.ofNullable(easActivationDateTime);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* easActivationDateTime} field changed. Field description below. The field name is
* also added to an internal map of changed fields in the returned object so that
* when {@code this.patch()} is called (if available)on the returned object only
* the changed fields are submitted.
*
* “Exchange ActivationSync activation time of the device. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param easActivationDateTime
* new value of {@code easActivationDateTime} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code easActivationDateTime} field changed
*/
public ManagedDevice withEasActivationDateTime(OffsetDateTime easActivationDateTime) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("easActivationDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.easActivationDateTime = easActivationDateTime;
return _x;
}
/**
* “Exchange ActiveSync Id of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property easDeviceId
*/
@Property(name="easDeviceId")
@JsonIgnore
public Optional getEasDeviceId() {
return Optional.ofNullable(easDeviceId);
}
/**
* Returns an immutable copy of {@code this} with just the {@code easDeviceId}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Exchange ActiveSync Id of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param easDeviceId
* new value of {@code easDeviceId} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code easDeviceId} field changed
*/
public ManagedDevice withEasDeviceId(String easDeviceId) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("easDeviceId");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.easDeviceId = easDeviceId;
return _x;
}
/**
* “Email(s) for the user associated with the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property emailAddress
*/
@Property(name="emailAddress")
@JsonIgnore
public Optional getEmailAddress() {
return Optional.ofNullable(emailAddress);
}
/**
* Returns an immutable copy of {@code this} with just the {@code emailAddress}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Email(s) for the user associated with the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param emailAddress
* new value of {@code emailAddress} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code emailAddress} field changed
*/
public ManagedDevice withEmailAddress(String emailAddress) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("emailAddress");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.emailAddress = emailAddress;
return _x;
}
/**
* “Enrollment time of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property enrolledDateTime
*/
@Property(name="enrolledDateTime")
@JsonIgnore
public Optional getEnrolledDateTime() {
return Optional.ofNullable(enrolledDateTime);
}
/**
* Returns an immutable copy of {@code this} with just the {@code enrolledDateTime}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Enrollment time of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param enrolledDateTime
* new value of {@code enrolledDateTime} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code enrolledDateTime} field changed
*/
public ManagedDevice withEnrolledDateTime(OffsetDateTime enrolledDateTime) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("enrolledDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.enrolledDateTime = enrolledDateTime;
return _x;
}
/**
* “Ethernet MAC. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property ethernetMacAddress
*/
@Property(name="ethernetMacAddress")
@JsonIgnore
public Optional getEthernetMacAddress() {
return Optional.ofNullable(ethernetMacAddress);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* ethernetMacAddress} field changed. Field description below. The field name is
* also added to an internal map of changed fields in the returned object so that
* when {@code this.patch()} is called (if available)on the returned object only
* the changed fields are submitted.
*
* “Ethernet MAC. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param ethernetMacAddress
* new value of {@code ethernetMacAddress} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code ethernetMacAddress} field changed
*/
public ManagedDevice withEthernetMacAddress(String ethernetMacAddress) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("ethernetMacAddress");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.ethernetMacAddress = ethernetMacAddress;
return _x;
}
/**
* “The Access State of the device in Exchange. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property exchangeAccessState
*/
@Property(name="exchangeAccessState")
@JsonIgnore
public Optional getExchangeAccessState() {
return Optional.ofNullable(exchangeAccessState);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* exchangeAccessState} field changed. Field description below. The field name is
* also added to an internal map of changed fields in the returned object so that
* when {@code this.patch()} is called (if available)on the returned object only
* the changed fields are submitted.
*
* “The Access State of the device in Exchange. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param exchangeAccessState
* new value of {@code exchangeAccessState} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code exchangeAccessState} field changed
*/
public ManagedDevice withExchangeAccessState(DeviceManagementExchangeAccessState exchangeAccessState) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("exchangeAccessState");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.exchangeAccessState = exchangeAccessState;
return _x;
}
/**
* “The reason for the device's access state in Exchange. This property is read-only
* .”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property exchangeAccessStateReason
*/
@Property(name="exchangeAccessStateReason")
@JsonIgnore
public Optional getExchangeAccessStateReason() {
return Optional.ofNullable(exchangeAccessStateReason);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* exchangeAccessStateReason} field changed. Field description below. The field
* name is also added to an internal map of changed fields in the returned object
* so that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “The reason for the device's access state in Exchange. This property is read-only
* .”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param exchangeAccessStateReason
* new value of {@code exchangeAccessStateReason} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code exchangeAccessStateReason} field changed
*/
public ManagedDevice withExchangeAccessStateReason(DeviceManagementExchangeAccessStateReason exchangeAccessStateReason) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("exchangeAccessStateReason");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.exchangeAccessStateReason = exchangeAccessStateReason;
return _x;
}
/**
* “Last time the device contacted Exchange. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property exchangeLastSuccessfulSyncDateTime
*/
@Property(name="exchangeLastSuccessfulSyncDateTime")
@JsonIgnore
public Optional getExchangeLastSuccessfulSyncDateTime() {
return Optional.ofNullable(exchangeLastSuccessfulSyncDateTime);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* exchangeLastSuccessfulSyncDateTime} field changed. Field description below. The
* field name is also added to an internal map of changed fields in the returned
* object so that when {@code this.patch()} is called (if available)on the returned
* object only the changed fields are submitted.
*
* “Last time the device contacted Exchange. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param exchangeLastSuccessfulSyncDateTime
* new value of {@code exchangeLastSuccessfulSyncDateTime} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code exchangeLastSuccessfulSyncDateTime} field changed
*/
public ManagedDevice withExchangeLastSuccessfulSyncDateTime(OffsetDateTime exchangeLastSuccessfulSyncDateTime) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("exchangeLastSuccessfulSyncDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.exchangeLastSuccessfulSyncDateTime = exchangeLastSuccessfulSyncDateTime;
return _x;
}
/**
* “Free Storage in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property freeStorageSpaceInBytes
*/
@Property(name="freeStorageSpaceInBytes")
@JsonIgnore
public Optional getFreeStorageSpaceInBytes() {
return Optional.ofNullable(freeStorageSpaceInBytes);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* freeStorageSpaceInBytes} field changed. Field description below. The field name
* is also added to an internal map of changed fields in the returned object so
* that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Free Storage in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param freeStorageSpaceInBytes
* new value of {@code freeStorageSpaceInBytes} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code freeStorageSpaceInBytes} field changed
*/
public ManagedDevice withFreeStorageSpaceInBytes(Long freeStorageSpaceInBytes) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("freeStorageSpaceInBytes");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.freeStorageSpaceInBytes = freeStorageSpaceInBytes;
return _x;
}
/**
* “Integrated Circuit Card Identifier, it is A SIM card's unique identification
* number. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property iccid
*/
@Property(name="iccid")
@JsonIgnore
public Optional getIccid() {
return Optional.ofNullable(iccid);
}
/**
* Returns an immutable copy of {@code this} with just the {@code iccid} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “Integrated Circuit Card Identifier, it is A SIM card's unique identification
* number. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param iccid
* new value of {@code iccid} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code iccid} field changed
*/
public ManagedDevice withIccid(String iccid) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("iccid");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.iccid = iccid;
return _x;
}
/**
* “IMEI. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property imei
*/
@Property(name="imei")
@JsonIgnore
public Optional getImei() {
return Optional.ofNullable(imei);
}
/**
* Returns an immutable copy of {@code this} with just the {@code imei} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “IMEI. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param imei
* new value of {@code imei} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code imei} field changed
*/
public ManagedDevice withImei(String imei) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("imei");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.imei = imei;
return _x;
}
/**
* “Device encryption status. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property isEncrypted
*/
@Property(name="isEncrypted")
@JsonIgnore
public Optional getIsEncrypted() {
return Optional.ofNullable(isEncrypted);
}
/**
* Returns an immutable copy of {@code this} with just the {@code isEncrypted}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Device encryption status. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param isEncrypted
* new value of {@code isEncrypted} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code isEncrypted} field changed
*/
public ManagedDevice withIsEncrypted(Boolean isEncrypted) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("isEncrypted");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.isEncrypted = isEncrypted;
return _x;
}
/**
* “Device supervised status. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property isSupervised
*/
@Property(name="isSupervised")
@JsonIgnore
public Optional getIsSupervised() {
return Optional.ofNullable(isSupervised);
}
/**
* Returns an immutable copy of {@code this} with just the {@code isSupervised}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Device supervised status. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param isSupervised
* new value of {@code isSupervised} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code isSupervised} field changed
*/
public ManagedDevice withIsSupervised(Boolean isSupervised) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("isSupervised");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.isSupervised = isSupervised;
return _x;
}
/**
* “whether the device is jail broken or rooted. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property jailBroken
*/
@Property(name="jailBroken")
@JsonIgnore
public Optional getJailBroken() {
return Optional.ofNullable(jailBroken);
}
/**
* Returns an immutable copy of {@code this} with just the {@code jailBroken} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “whether the device is jail broken or rooted. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param jailBroken
* new value of {@code jailBroken} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code jailBroken} field changed
*/
public ManagedDevice withJailBroken(String jailBroken) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("jailBroken");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.jailBroken = jailBroken;
return _x;
}
/**
* “The date and time that the device last completed a successful sync with Intune.
* This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property lastSyncDateTime
*/
@Property(name="lastSyncDateTime")
@JsonIgnore
public Optional getLastSyncDateTime() {
return Optional.ofNullable(lastSyncDateTime);
}
/**
* Returns an immutable copy of {@code this} with just the {@code lastSyncDateTime}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “The date and time that the device last completed a successful sync with Intune.
* This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param lastSyncDateTime
* new value of {@code lastSyncDateTime} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code lastSyncDateTime} field changed
*/
public ManagedDevice withLastSyncDateTime(OffsetDateTime lastSyncDateTime) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("lastSyncDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.lastSyncDateTime = lastSyncDateTime;
return _x;
}
/**
* “Automatically generated name to identify a device. Can be overwritten to a user
* friendly name.”
*
* @return property managedDeviceName
*/
@Property(name="managedDeviceName")
@JsonIgnore
public Optional getManagedDeviceName() {
return Optional.ofNullable(managedDeviceName);
}
/**
* Returns an immutable copy of {@code this} with just the {@code managedDeviceName
* } field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Automatically generated name to identify a device. Can be overwritten to a user
* friendly name.”
*
* @param managedDeviceName
* new value of {@code managedDeviceName} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code managedDeviceName} field changed
*/
public ManagedDevice withManagedDeviceName(String managedDeviceName) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("managedDeviceName");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.managedDeviceName = managedDeviceName;
return _x;
}
/**
* “Ownership of the device. Can be 'company' or 'personal'”
*
* @return property managedDeviceOwnerType
*/
@Property(name="managedDeviceOwnerType")
@JsonIgnore
public Optional getManagedDeviceOwnerType() {
return Optional.ofNullable(managedDeviceOwnerType);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* managedDeviceOwnerType} field changed. Field description below. The field name
* is also added to an internal map of changed fields in the returned object so
* that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Ownership of the device. Can be 'company' or 'personal'”
*
* @param managedDeviceOwnerType
* new value of {@code managedDeviceOwnerType} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code managedDeviceOwnerType} field changed
*/
public ManagedDevice withManagedDeviceOwnerType(ManagedDeviceOwnerType managedDeviceOwnerType) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("managedDeviceOwnerType");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.managedDeviceOwnerType = managedDeviceOwnerType;
return _x;
}
/**
* “Management channel of the device. Intune, EAS, etc. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property managementAgent
*/
@Property(name="managementAgent")
@JsonIgnore
public Optional getManagementAgent() {
return Optional.ofNullable(managementAgent);
}
/**
* Returns an immutable copy of {@code this} with just the {@code managementAgent}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Management channel of the device. Intune, EAS, etc. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param managementAgent
* new value of {@code managementAgent} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code managementAgent} field changed
*/
public ManagedDevice withManagementAgent(ManagementAgentType managementAgent) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("managementAgent");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.managementAgent = managementAgent;
return _x;
}
/**
* “Reports device management certificate expiration date. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property managementCertificateExpirationDate
*/
@Property(name="managementCertificateExpirationDate")
@JsonIgnore
public Optional getManagementCertificateExpirationDate() {
return Optional.ofNullable(managementCertificateExpirationDate);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* managementCertificateExpirationDate} field changed. Field description below. The
* field name is also added to an internal map of changed fields in the returned
* object so that when {@code this.patch()} is called (if available)on the returned
* object only the changed fields are submitted.
*
* “Reports device management certificate expiration date. This property is read-
* only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param managementCertificateExpirationDate
* new value of {@code managementCertificateExpirationDate} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code managementCertificateExpirationDate} field changed
*/
public ManagedDevice withManagementCertificateExpirationDate(OffsetDateTime managementCertificateExpirationDate) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("managementCertificateExpirationDate");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.managementCertificateExpirationDate = managementCertificateExpirationDate;
return _x;
}
/**
* “Manufacturer of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property manufacturer
*/
@Property(name="manufacturer")
@JsonIgnore
public Optional getManufacturer() {
return Optional.ofNullable(manufacturer);
}
/**
* Returns an immutable copy of {@code this} with just the {@code manufacturer}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Manufacturer of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param manufacturer
* new value of {@code manufacturer} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code manufacturer} field changed
*/
public ManagedDevice withManufacturer(String manufacturer) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("manufacturer");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.manufacturer = manufacturer;
return _x;
}
/**
* “MEID. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property meid
*/
@Property(name="meid")
@JsonIgnore
public Optional getMeid() {
return Optional.ofNullable(meid);
}
/**
* Returns an immutable copy of {@code this} with just the {@code meid} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “MEID. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param meid
* new value of {@code meid} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code meid} field changed
*/
public ManagedDevice withMeid(String meid) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("meid");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.meid = meid;
return _x;
}
/**
* “Model of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property model
*/
@Property(name="model")
@JsonIgnore
public Optional getModel() {
return Optional.ofNullable(model);
}
/**
* Returns an immutable copy of {@code this} with just the {@code model} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “Model of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param model
* new value of {@code model} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code model} field changed
*/
public ManagedDevice withModel(String model) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("model");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.model = model;
return _x;
}
/**
* “Notes on the device created by IT Admin”
*
* @return property notes
*/
@Property(name="notes")
@JsonIgnore
public Optional getNotes() {
return Optional.ofNullable(notes);
}
/**
* Returns an immutable copy of {@code this} with just the {@code notes} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “Notes on the device created by IT Admin”
*
* @param notes
* new value of {@code notes} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code notes} field changed
*/
public ManagedDevice withNotes(String notes) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("notes");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.notes = notes;
return _x;
}
/**
* “Operating system of the device. Windows, iOS, etc. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property operatingSystem
*/
@Property(name="operatingSystem")
@JsonIgnore
public Optional getOperatingSystem() {
return Optional.ofNullable(operatingSystem);
}
/**
* Returns an immutable copy of {@code this} with just the {@code operatingSystem}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Operating system of the device. Windows, iOS, etc. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param operatingSystem
* new value of {@code operatingSystem} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code operatingSystem} field changed
*/
public ManagedDevice withOperatingSystem(String operatingSystem) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("operatingSystem");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.operatingSystem = operatingSystem;
return _x;
}
/**
* “Operating system version of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property osVersion
*/
@Property(name="osVersion")
@JsonIgnore
public Optional getOsVersion() {
return Optional.ofNullable(osVersion);
}
/**
* Returns an immutable copy of {@code this} with just the {@code osVersion} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “Operating system version of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param osVersion
* new value of {@code osVersion} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code osVersion} field changed
*/
public ManagedDevice withOsVersion(String osVersion) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("osVersion");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.osVersion = osVersion;
return _x;
}
/**
* “Indicates the threat state of a device when a Mobile Threat Defense partner is
* in use by the account and device. Read Only. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property partnerReportedThreatState
*/
@Property(name="partnerReportedThreatState")
@JsonIgnore
public Optional getPartnerReportedThreatState() {
return Optional.ofNullable(partnerReportedThreatState);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* partnerReportedThreatState} field changed. Field description below. The field
* name is also added to an internal map of changed fields in the returned object
* so that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Indicates the threat state of a device when a Mobile Threat Defense partner is
* in use by the account and device. Read Only. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param partnerReportedThreatState
* new value of {@code partnerReportedThreatState} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code partnerReportedThreatState} field changed
*/
public ManagedDevice withPartnerReportedThreatState(ManagedDevicePartnerReportedHealthState partnerReportedThreatState) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("partnerReportedThreatState");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.partnerReportedThreatState = partnerReportedThreatState;
return _x;
}
/**
* “Phone number of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property phoneNumber
*/
@Property(name="phoneNumber")
@JsonIgnore
public Optional getPhoneNumber() {
return Optional.ofNullable(phoneNumber);
}
/**
* Returns an immutable copy of {@code this} with just the {@code phoneNumber}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Phone number of the device. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param phoneNumber
* new value of {@code phoneNumber} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code phoneNumber} field changed
*/
public ManagedDevice withPhoneNumber(String phoneNumber) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("phoneNumber");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.phoneNumber = phoneNumber;
return _x;
}
/**
* “Total Memory in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property physicalMemoryInBytes
*/
@Property(name="physicalMemoryInBytes")
@JsonIgnore
public Optional getPhysicalMemoryInBytes() {
return Optional.ofNullable(physicalMemoryInBytes);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* physicalMemoryInBytes} field changed. Field description below. The field name is
* also added to an internal map of changed fields in the returned object so that
* when {@code this.patch()} is called (if available)on the returned object only
* the changed fields are submitted.
*
* “Total Memory in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param physicalMemoryInBytes
* new value of {@code physicalMemoryInBytes} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code physicalMemoryInBytes} field changed
*/
public ManagedDevice withPhysicalMemoryInBytes(Long physicalMemoryInBytes) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("physicalMemoryInBytes");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.physicalMemoryInBytes = physicalMemoryInBytes;
return _x;
}
/**
* “An error string that identifies issues when creating Remote Assistance session
* objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property remoteAssistanceSessionErrorDetails
*/
@Property(name="remoteAssistanceSessionErrorDetails")
@JsonIgnore
public Optional getRemoteAssistanceSessionErrorDetails() {
return Optional.ofNullable(remoteAssistanceSessionErrorDetails);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* remoteAssistanceSessionErrorDetails} field changed. Field description below. The
* field name is also added to an internal map of changed fields in the returned
* object so that when {@code this.patch()} is called (if available)on the returned
* object only the changed fields are submitted.
*
* “An error string that identifies issues when creating Remote Assistance session
* objects. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param remoteAssistanceSessionErrorDetails
* new value of {@code remoteAssistanceSessionErrorDetails} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code remoteAssistanceSessionErrorDetails} field changed
*/
public ManagedDevice withRemoteAssistanceSessionErrorDetails(String remoteAssistanceSessionErrorDetails) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("remoteAssistanceSessionErrorDetails");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.remoteAssistanceSessionErrorDetails = remoteAssistanceSessionErrorDetails;
return _x;
}
/**
* “Url that allows a Remote Assistance session to be established with the device.
* This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property remoteAssistanceSessionUrl
*/
@Property(name="remoteAssistanceSessionUrl")
@JsonIgnore
public Optional getRemoteAssistanceSessionUrl() {
return Optional.ofNullable(remoteAssistanceSessionUrl);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* remoteAssistanceSessionUrl} field changed. Field description below. The field
* name is also added to an internal map of changed fields in the returned object
* so that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Url that allows a Remote Assistance session to be established with the device.
* This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param remoteAssistanceSessionUrl
* new value of {@code remoteAssistanceSessionUrl} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code remoteAssistanceSessionUrl} field changed
*/
public ManagedDevice withRemoteAssistanceSessionUrl(String remoteAssistanceSessionUrl) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("remoteAssistanceSessionUrl");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.remoteAssistanceSessionUrl = remoteAssistanceSessionUrl;
return _x;
}
/**
* “Reports if the managed iOS device is user approval enrollment. This property is
* read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property requireUserEnrollmentApproval
*/
@Property(name="requireUserEnrollmentApproval")
@JsonIgnore
public Optional getRequireUserEnrollmentApproval() {
return Optional.ofNullable(requireUserEnrollmentApproval);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* requireUserEnrollmentApproval} field changed. Field description below. The field
* name is also added to an internal map of changed fields in the returned object
* so that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Reports if the managed iOS device is user approval enrollment. This property is
* read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param requireUserEnrollmentApproval
* new value of {@code requireUserEnrollmentApproval} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code requireUserEnrollmentApproval} field changed
*/
public ManagedDevice withRequireUserEnrollmentApproval(Boolean requireUserEnrollmentApproval) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("requireUserEnrollmentApproval");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.requireUserEnrollmentApproval = requireUserEnrollmentApproval;
return _x;
}
/**
* “SerialNumber. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property serialNumber
*/
@Property(name="serialNumber")
@JsonIgnore
public Optional getSerialNumber() {
return Optional.ofNullable(serialNumber);
}
/**
* Returns an immutable copy of {@code this} with just the {@code serialNumber}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “SerialNumber. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param serialNumber
* new value of {@code serialNumber} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code serialNumber} field changed
*/
public ManagedDevice withSerialNumber(String serialNumber) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("serialNumber");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.serialNumber = serialNumber;
return _x;
}
/**
* “Subscriber Carrier. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property subscriberCarrier
*/
@Property(name="subscriberCarrier")
@JsonIgnore
public Optional getSubscriberCarrier() {
return Optional.ofNullable(subscriberCarrier);
}
/**
* Returns an immutable copy of {@code this} with just the {@code subscriberCarrier
* } field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Subscriber Carrier. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param subscriberCarrier
* new value of {@code subscriberCarrier} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code subscriberCarrier} field changed
*/
public ManagedDevice withSubscriberCarrier(String subscriberCarrier) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("subscriberCarrier");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.subscriberCarrier = subscriberCarrier;
return _x;
}
/**
* “Total Storage in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property totalStorageSpaceInBytes
*/
@Property(name="totalStorageSpaceInBytes")
@JsonIgnore
public Optional getTotalStorageSpaceInBytes() {
return Optional.ofNullable(totalStorageSpaceInBytes);
}
/**
* Returns an immutable copy of {@code this} with just the {@code
* totalStorageSpaceInBytes} field changed. Field description below. The field name
* is also added to an internal map of changed fields in the returned object so
* that when {@code this.patch()} is called (if available)on the returned object
* only the changed fields are submitted.
*
* “Total Storage in Bytes. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param totalStorageSpaceInBytes
* new value of {@code totalStorageSpaceInBytes} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code totalStorageSpaceInBytes} field changed
*/
public ManagedDevice withTotalStorageSpaceInBytes(Long totalStorageSpaceInBytes) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("totalStorageSpaceInBytes");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.totalStorageSpaceInBytes = totalStorageSpaceInBytes;
return _x;
}
/**
* “Unique Device Identifier for iOS and macOS devices. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property udid
*/
@Property(name="udid")
@JsonIgnore
public Optional getUdid() {
return Optional.ofNullable(udid);
}
/**
* Returns an immutable copy of {@code this} with just the {@code udid} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “Unique Device Identifier for iOS and macOS devices. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param udid
* new value of {@code udid} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code udid} field changed
*/
public ManagedDevice withUdid(String udid) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("udid");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.udid = udid;
return _x;
}
/**
* “User display name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property userDisplayName
*/
@Property(name="userDisplayName")
@JsonIgnore
public Optional getUserDisplayName() {
return Optional.ofNullable(userDisplayName);
}
/**
* Returns an immutable copy of {@code this} with just the {@code userDisplayName}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “User display name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param userDisplayName
* new value of {@code userDisplayName} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code userDisplayName} field changed
*/
public ManagedDevice withUserDisplayName(String userDisplayName) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("userDisplayName");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.userDisplayName = userDisplayName;
return _x;
}
/**
* “Unique Identifier for the user associated with the device. This property is read
* -only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property userId
*/
@Property(name="userId")
@JsonIgnore
public Optional getUserId() {
return Optional.ofNullable(userId);
}
/**
* Returns an immutable copy of {@code this} with just the {@code userId} field
* changed. Field description below. The field name is also added to an internal
* map of changed fields in the returned object so that when {@code this.patch()}
* is called (if available)on the returned object only the changed fields are
* submitted.
*
* “Unique Identifier for the user associated with the device. This property is read
* -only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param userId
* new value of {@code userId} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code userId} field changed
*/
public ManagedDevice withUserId(String userId) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("userId");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.userId = userId;
return _x;
}
/**
* “Device user principal name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property userPrincipalName
*/
@Property(name="userPrincipalName")
@JsonIgnore
public Optional getUserPrincipalName() {
return Optional.ofNullable(userPrincipalName);
}
/**
* Returns an immutable copy of {@code this} with just the {@code userPrincipalName
* } field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Device user principal name. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param userPrincipalName
* new value of {@code userPrincipalName} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code userPrincipalName} field changed
*/
public ManagedDevice withUserPrincipalName(String userPrincipalName) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("userPrincipalName");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.userPrincipalName = userPrincipalName;
return _x;
}
/**
* “Wi-Fi MAC. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @return property wiFiMacAddress
*/
@Property(name="wiFiMacAddress")
@JsonIgnore
public Optional getWiFiMacAddress() {
return Optional.ofNullable(wiFiMacAddress);
}
/**
* Returns an immutable copy of {@code this} with just the {@code wiFiMacAddress}
* field changed. Field description below. The field name is also added to an
* internal map of changed fields in the returned object so that when {@code this.
* patch()} is called (if available)on the returned object only the changed fields
* are submitted.
*
* “Wi-Fi MAC. This property is read-only.”
*
* Org.OData.Core.V1.Computed
*
* true
*
* Org.OData.Core.V1.Permissions
*
* @param wiFiMacAddress
* new value of {@code wiFiMacAddress} field (as defined in service metadata)
* @return immutable copy of {@code this} with just the {@code wiFiMacAddress} field changed
*/
public ManagedDevice withWiFiMacAddress(String wiFiMacAddress) {
ManagedDevice _x = _copy();
_x.changedFields = changedFields.add("wiFiMacAddress");
_x.odataType = Util.nvl(odataType, "microsoft.graph.managedDevice");
_x.wiFiMacAddress = wiFiMacAddress;
return _x;
}
public ManagedDevice withUnmappedField(String name, String value) {
ManagedDevice _x = _copy();
_x.setUnmappedField(name, value);
return _x;
}
/**
* “Device compliance policy states for this device.”
*
* @return navigational property deviceCompliancePolicyStates
*/
@NavigationProperty(name="deviceCompliancePolicyStates")
@JsonIgnore
public DeviceCompliancePolicyStateCollectionRequest getDeviceCompliancePolicyStates() {
return new DeviceCompliancePolicyStateCollectionRequest(
contextPath.addSegment("deviceCompliancePolicyStates"), RequestHelper.getValue(unmappedFields, "deviceCompliancePolicyStates"));
}
/**
* “Device configuration states for this device.”
*
* @return navigational property deviceConfigurationStates
*/
@NavigationProperty(name="deviceConfigurationStates")
@JsonIgnore
public DeviceConfigurationStateCollectionRequest getDeviceConfigurationStates() {
return new DeviceConfigurationStateCollectionRequest(
contextPath.addSegment("deviceConfigurationStates"), RequestHelper.getValue(unmappedFields, "deviceConfigurationStates"));
}
/**
* “Device category”
*
* @return navigational property deviceCategory
*/
@NavigationProperty(name="deviceCategory")
@JsonIgnore
public DeviceCategoryRequest getDeviceCategory() {
return new DeviceCategoryRequest(contextPath.addSegment("deviceCategory"), RequestHelper.getValue(unmappedFields, "deviceCategory"));
}
/**
* “The primary users associated with the managed device.”
*
* @return navigational property users
*/
@NavigationProperty(name="users")
@JsonIgnore
public UserCollectionRequest getUsers() {
return new UserCollectionRequest(
contextPath.addSegment("users"), RequestHelper.getValue(unmappedFields, "users"));
}
@JsonAnySetter
private void setUnmappedField(String name, Object value) {
if (unmappedFields == null) {
unmappedFields = new UnmappedFieldsImpl();
}
unmappedFields.put(name, value);
}
@JsonAnyGetter
private UnmappedFieldsImpl unmappedFields() {
return unmappedFields == null ? UnmappedFieldsImpl.EMPTY : unmappedFields;
}
@Override
public UnmappedFields getUnmappedFields() {
return unmappedFields();
}
/**
* Submits only changed fields for update and returns an
* immutable copy of {@code this} with changed fields reset.
*
* @return a copy of {@code this} with changed fields reset
* @throws ClientException if HTTP response is not as expected
*/
public ManagedDevice patch() {
RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
ManagedDevice _x = _copy();
_x.changedFields = null;
return _x;
}
/**
* Submits all fields for update and returns an immutable copy of {@code this}
* with changed fields reset (they were ignored anyway).
*
* @return a copy of {@code this} with changed fields reset
* @throws ClientException if HTTP response is not as expected
*/
public ManagedDevice put() {
RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
ManagedDevice _x = _copy();
_x.changedFields = null;
return _x;
}
private ManagedDevice _copy() {
ManagedDevice _x = new ManagedDevice();
_x.contextPath = contextPath;
_x.changedFields = changedFields;
_x.unmappedFields = unmappedFields.copy();
_x.odataType = odataType;
_x.id = id;
_x.activationLockBypassCode = activationLockBypassCode;
_x.androidSecurityPatchLevel = androidSecurityPatchLevel;
_x.azureADDeviceId = azureADDeviceId;
_x.azureADRegistered = azureADRegistered;
_x.complianceGracePeriodExpirationDateTime = complianceGracePeriodExpirationDateTime;
_x.complianceState = complianceState;
_x.configurationManagerClientEnabledFeatures = configurationManagerClientEnabledFeatures;
_x.deviceActionResults = deviceActionResults;
_x.deviceCategoryDisplayName = deviceCategoryDisplayName;
_x.deviceEnrollmentType = deviceEnrollmentType;
_x.deviceHealthAttestationState = deviceHealthAttestationState;
_x.deviceName = deviceName;
_x.deviceRegistrationState = deviceRegistrationState;
_x.easActivated = easActivated;
_x.easActivationDateTime = easActivationDateTime;
_x.easDeviceId = easDeviceId;
_x.emailAddress = emailAddress;
_x.enrolledDateTime = enrolledDateTime;
_x.ethernetMacAddress = ethernetMacAddress;
_x.exchangeAccessState = exchangeAccessState;
_x.exchangeAccessStateReason = exchangeAccessStateReason;
_x.exchangeLastSuccessfulSyncDateTime = exchangeLastSuccessfulSyncDateTime;
_x.freeStorageSpaceInBytes = freeStorageSpaceInBytes;
_x.iccid = iccid;
_x.imei = imei;
_x.isEncrypted = isEncrypted;
_x.isSupervised = isSupervised;
_x.jailBroken = jailBroken;
_x.lastSyncDateTime = lastSyncDateTime;
_x.managedDeviceName = managedDeviceName;
_x.managedDeviceOwnerType = managedDeviceOwnerType;
_x.managementAgent = managementAgent;
_x.managementCertificateExpirationDate = managementCertificateExpirationDate;
_x.manufacturer = manufacturer;
_x.meid = meid;
_x.model = model;
_x.notes = notes;
_x.operatingSystem = operatingSystem;
_x.osVersion = osVersion;
_x.partnerReportedThreatState = partnerReportedThreatState;
_x.phoneNumber = phoneNumber;
_x.physicalMemoryInBytes = physicalMemoryInBytes;
_x.remoteAssistanceSessionErrorDetails = remoteAssistanceSessionErrorDetails;
_x.remoteAssistanceSessionUrl = remoteAssistanceSessionUrl;
_x.requireUserEnrollmentApproval = requireUserEnrollmentApproval;
_x.serialNumber = serialNumber;
_x.subscriberCarrier = subscriberCarrier;
_x.totalStorageSpaceInBytes = totalStorageSpaceInBytes;
_x.udid = udid;
_x.userDisplayName = userDisplayName;
_x.userId = userId;
_x.userPrincipalName = userPrincipalName;
_x.wiFiMacAddress = wiFiMacAddress;
return _x;
}
@Action(name = "bypassActivationLock")
@JsonIgnore
public ActionRequestNoReturn bypassActivationLock() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.bypassActivationLock"), _parameters);
}
@Action(name = "cleanWindowsDevice")
@JsonIgnore
public ActionRequestNoReturn cleanWindowsDevice(Boolean keepUserData) {
Preconditions.checkNotNull(keepUserData, "keepUserData cannot be null");
Map _parameters = ParameterMap
.put("keepUserData", "Edm.Boolean", keepUserData)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.cleanWindowsDevice"), _parameters);
}
@Action(name = "deleteUserFromSharedAppleDevice")
@JsonIgnore
public ActionRequestNoReturn deleteUserFromSharedAppleDevice(String userPrincipalName) {
Map _parameters = ParameterMap
.put("userPrincipalName", "Edm.String", Checks.checkIsAscii(userPrincipalName))
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.deleteUserFromSharedAppleDevice"), _parameters);
}
@Action(name = "disableLostMode")
@JsonIgnore
public ActionRequestNoReturn disableLostMode() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.disableLostMode"), _parameters);
}
@Action(name = "locateDevice")
@JsonIgnore
public ActionRequestNoReturn locateDevice() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.locateDevice"), _parameters);
}
@Action(name = "logoutSharedAppleDeviceActiveUser")
@JsonIgnore
public ActionRequestNoReturn logoutSharedAppleDeviceActiveUser() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.logoutSharedAppleDeviceActiveUser"), _parameters);
}
@Action(name = "rebootNow")
@JsonIgnore
public ActionRequestNoReturn rebootNow() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.rebootNow"), _parameters);
}
@Action(name = "recoverPasscode")
@JsonIgnore
public ActionRequestNoReturn recoverPasscode() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.recoverPasscode"), _parameters);
}
@Action(name = "remoteLock")
@JsonIgnore
public ActionRequestNoReturn remoteLock() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.remoteLock"), _parameters);
}
@Action(name = "requestRemoteAssistance")
@JsonIgnore
public ActionRequestNoReturn requestRemoteAssistance() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.requestRemoteAssistance"), _parameters);
}
@Action(name = "resetPasscode")
@JsonIgnore
public ActionRequestNoReturn resetPasscode() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.resetPasscode"), _parameters);
}
@Action(name = "retire")
@JsonIgnore
public ActionRequestNoReturn retire() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.retire"), _parameters);
}
@Action(name = "shutDown")
@JsonIgnore
public ActionRequestNoReturn shutDown() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.shutDown"), _parameters);
}
@Action(name = "syncDevice")
@JsonIgnore
public ActionRequestNoReturn syncDevice() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.syncDevice"), _parameters);
}
@Action(name = "updateWindowsDeviceAccount")
@JsonIgnore
public ActionRequestNoReturn updateWindowsDeviceAccount(UpdateWindowsDeviceAccountActionParameter updateWindowsDeviceAccountActionParameter) {
Map _parameters = ParameterMap
.put("updateWindowsDeviceAccountActionParameter", "microsoft.graph.updateWindowsDeviceAccountActionParameter", updateWindowsDeviceAccountActionParameter)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.updateWindowsDeviceAccount"), _parameters);
}
@Action(name = "windowsDefenderScan")
@JsonIgnore
public ActionRequestNoReturn windowsDefenderScan(Boolean quickScan) {
Preconditions.checkNotNull(quickScan, "quickScan cannot be null");
Map _parameters = ParameterMap
.put("quickScan", "Edm.Boolean", quickScan)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.windowsDefenderScan"), _parameters);
}
@Action(name = "windowsDefenderUpdateSignatures")
@JsonIgnore
public ActionRequestNoReturn windowsDefenderUpdateSignatures() {
Map _parameters = ParameterMap.empty();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.windowsDefenderUpdateSignatures"), _parameters);
}
@Action(name = "wipe")
@JsonIgnore
public ActionRequestNoReturn wipe(Boolean keepEnrollmentData, Boolean keepUserData, String macOsUnlockCode, Boolean persistEsimDataPlan) {
Map _parameters = ParameterMap
.put("keepEnrollmentData", "Edm.Boolean", keepEnrollmentData)
.put("keepUserData", "Edm.Boolean", keepUserData)
.put("macOsUnlockCode", "Edm.String", Checks.checkIsAscii(macOsUnlockCode))
.put("persistEsimDataPlan", "Edm.Boolean", persistEsimDataPlan)
.build();
return new ActionRequestNoReturn(this.contextPath.addActionOrFunctionSegment("microsoft.graph.wipe"), _parameters);
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("ManagedDevice[");
b.append("id=");
b.append(this.id);
b.append(", ");
b.append("activationLockBypassCode=");
b.append(this.activationLockBypassCode);
b.append(", ");
b.append("androidSecurityPatchLevel=");
b.append(this.androidSecurityPatchLevel);
b.append(", ");
b.append("azureADDeviceId=");
b.append(this.azureADDeviceId);
b.append(", ");
b.append("azureADRegistered=");
b.append(this.azureADRegistered);
b.append(", ");
b.append("complianceGracePeriodExpirationDateTime=");
b.append(this.complianceGracePeriodExpirationDateTime);
b.append(", ");
b.append("complianceState=");
b.append(this.complianceState);
b.append(", ");
b.append("configurationManagerClientEnabledFeatures=");
b.append(this.configurationManagerClientEnabledFeatures);
b.append(", ");
b.append("deviceActionResults=");
b.append(this.deviceActionResults);
b.append(", ");
b.append("deviceCategoryDisplayName=");
b.append(this.deviceCategoryDisplayName);
b.append(", ");
b.append("deviceEnrollmentType=");
b.append(this.deviceEnrollmentType);
b.append(", ");
b.append("deviceHealthAttestationState=");
b.append(this.deviceHealthAttestationState);
b.append(", ");
b.append("deviceName=");
b.append(this.deviceName);
b.append(", ");
b.append("deviceRegistrationState=");
b.append(this.deviceRegistrationState);
b.append(", ");
b.append("easActivated=");
b.append(this.easActivated);
b.append(", ");
b.append("easActivationDateTime=");
b.append(this.easActivationDateTime);
b.append(", ");
b.append("easDeviceId=");
b.append(this.easDeviceId);
b.append(", ");
b.append("emailAddress=");
b.append(this.emailAddress);
b.append(", ");
b.append("enrolledDateTime=");
b.append(this.enrolledDateTime);
b.append(", ");
b.append("ethernetMacAddress=");
b.append(this.ethernetMacAddress);
b.append(", ");
b.append("exchangeAccessState=");
b.append(this.exchangeAccessState);
b.append(", ");
b.append("exchangeAccessStateReason=");
b.append(this.exchangeAccessStateReason);
b.append(", ");
b.append("exchangeLastSuccessfulSyncDateTime=");
b.append(this.exchangeLastSuccessfulSyncDateTime);
b.append(", ");
b.append("freeStorageSpaceInBytes=");
b.append(this.freeStorageSpaceInBytes);
b.append(", ");
b.append("iccid=");
b.append(this.iccid);
b.append(", ");
b.append("imei=");
b.append(this.imei);
b.append(", ");
b.append("isEncrypted=");
b.append(this.isEncrypted);
b.append(", ");
b.append("isSupervised=");
b.append(this.isSupervised);
b.append(", ");
b.append("jailBroken=");
b.append(this.jailBroken);
b.append(", ");
b.append("lastSyncDateTime=");
b.append(this.lastSyncDateTime);
b.append(", ");
b.append("managedDeviceName=");
b.append(this.managedDeviceName);
b.append(", ");
b.append("managedDeviceOwnerType=");
b.append(this.managedDeviceOwnerType);
b.append(", ");
b.append("managementAgent=");
b.append(this.managementAgent);
b.append(", ");
b.append("managementCertificateExpirationDate=");
b.append(this.managementCertificateExpirationDate);
b.append(", ");
b.append("manufacturer=");
b.append(this.manufacturer);
b.append(", ");
b.append("meid=");
b.append(this.meid);
b.append(", ");
b.append("model=");
b.append(this.model);
b.append(", ");
b.append("notes=");
b.append(this.notes);
b.append(", ");
b.append("operatingSystem=");
b.append(this.operatingSystem);
b.append(", ");
b.append("osVersion=");
b.append(this.osVersion);
b.append(", ");
b.append("partnerReportedThreatState=");
b.append(this.partnerReportedThreatState);
b.append(", ");
b.append("phoneNumber=");
b.append(this.phoneNumber);
b.append(", ");
b.append("physicalMemoryInBytes=");
b.append(this.physicalMemoryInBytes);
b.append(", ");
b.append("remoteAssistanceSessionErrorDetails=");
b.append(this.remoteAssistanceSessionErrorDetails);
b.append(", ");
b.append("remoteAssistanceSessionUrl=");
b.append(this.remoteAssistanceSessionUrl);
b.append(", ");
b.append("requireUserEnrollmentApproval=");
b.append(this.requireUserEnrollmentApproval);
b.append(", ");
b.append("serialNumber=");
b.append(this.serialNumber);
b.append(", ");
b.append("subscriberCarrier=");
b.append(this.subscriberCarrier);
b.append(", ");
b.append("totalStorageSpaceInBytes=");
b.append(this.totalStorageSpaceInBytes);
b.append(", ");
b.append("udid=");
b.append(this.udid);
b.append(", ");
b.append("userDisplayName=");
b.append(this.userDisplayName);
b.append(", ");
b.append("userId=");
b.append(this.userId);
b.append(", ");
b.append("userPrincipalName=");
b.append(this.userPrincipalName);
b.append(", ");
b.append("wiFiMacAddress=");
b.append(this.wiFiMacAddress);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}