
odata.msgraph.client.entity.Device 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.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.NavigationProperty;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.RequestHelper;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;
import java.lang.Boolean;
import java.lang.Integer;
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.Optional;
import odata.msgraph.client.complex.AlternativeSecurityId;
import odata.msgraph.client.entity.collection.request.DirectoryObjectCollectionRequest;
import odata.msgraph.client.entity.collection.request.ExtensionCollectionRequest;
/**
*
* Org.OData.Capabilities.V1.ChangeTracking
*
* Supported = true
*/@JsonPropertyOrder({
"@odata.type",
"accountEnabled",
"alternativeSecurityIds",
"approximateLastSignInDateTime",
"complianceExpirationDateTime",
"deviceId",
"deviceMetadata",
"deviceVersion",
"displayName",
"isCompliant",
"isManaged",
"mdmAppId",
"onPremisesLastSyncDateTime",
"onPremisesSyncEnabled",
"operatingSystem",
"operatingSystemVersion",
"physicalIds",
"profileType",
"systemLabels",
"trustType"})
@JsonInclude(Include.NON_NULL)
public class Device extends DirectoryObject implements ODataEntityType {
@Override
public String odataTypeName() {
return "microsoft.graph.device";
}
@JsonProperty("accountEnabled")
protected Boolean accountEnabled;
@JsonProperty("alternativeSecurityIds")
protected List alternativeSecurityIds;
@JsonProperty("alternativeSecurityIds@nextLink")
protected String alternativeSecurityIdsNextLink;
@JsonProperty("approximateLastSignInDateTime")
protected OffsetDateTime approximateLastSignInDateTime;
@JsonProperty("complianceExpirationDateTime")
protected OffsetDateTime complianceExpirationDateTime;
@JsonProperty("deviceId")
protected String deviceId;
@JsonProperty("deviceMetadata")
protected String deviceMetadata;
@JsonProperty("deviceVersion")
protected Integer deviceVersion;
@JsonProperty("displayName")
protected String displayName;
@JsonProperty("isCompliant")
protected Boolean isCompliant;
@JsonProperty("isManaged")
protected Boolean isManaged;
@JsonProperty("mdmAppId")
protected String mdmAppId;
@JsonProperty("onPremisesLastSyncDateTime")
protected OffsetDateTime onPremisesLastSyncDateTime;
@JsonProperty("onPremisesSyncEnabled")
protected Boolean onPremisesSyncEnabled;
@JsonProperty("operatingSystem")
protected String operatingSystem;
@JsonProperty("operatingSystemVersion")
protected String operatingSystemVersion;
@JsonProperty("physicalIds")
protected List physicalIds;
@JsonProperty("physicalIds@nextLink")
protected String physicalIdsNextLink;
@JsonProperty("profileType")
protected String profileType;
@JsonProperty("systemLabels")
protected List systemLabels;
@JsonProperty("systemLabels@nextLink")
protected String systemLabelsNextLink;
@JsonProperty("trustType")
protected String trustType;
protected Device() {
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 builderDevice() {
return new Builder();
}
public static final class Builder {
private String id;
private OffsetDateTime deletedDateTime;
private Boolean accountEnabled;
private List alternativeSecurityIds;
private String alternativeSecurityIdsNextLink;
private OffsetDateTime approximateLastSignInDateTime;
private OffsetDateTime complianceExpirationDateTime;
private String deviceId;
private String deviceMetadata;
private Integer deviceVersion;
private String displayName;
private Boolean isCompliant;
private Boolean isManaged;
private String mdmAppId;
private OffsetDateTime onPremisesLastSyncDateTime;
private Boolean onPremisesSyncEnabled;
private String operatingSystem;
private String operatingSystemVersion;
private List physicalIds;
private String physicalIdsNextLink;
private String profileType;
private List systemLabels;
private String systemLabelsNextLink;
private String trustType;
private ChangedFields changedFields = ChangedFields.EMPTY;
Builder() {
// prevent instantiation
}
public Builder id(String id) {
this.id = id;
this.changedFields = changedFields.add("id");
return this;
}
public Builder deletedDateTime(OffsetDateTime deletedDateTime) {
this.deletedDateTime = deletedDateTime;
this.changedFields = changedFields.add("deletedDateTime");
return this;
}
public Builder accountEnabled(Boolean accountEnabled) {
this.accountEnabled = accountEnabled;
this.changedFields = changedFields.add("accountEnabled");
return this;
}
public Builder alternativeSecurityIds(List alternativeSecurityIds) {
this.alternativeSecurityIds = alternativeSecurityIds;
this.changedFields = changedFields.add("alternativeSecurityIds");
return this;
}
public Builder alternativeSecurityIds(AlternativeSecurityId... alternativeSecurityIds) {
return alternativeSecurityIds(Arrays.asList(alternativeSecurityIds));
}
public Builder alternativeSecurityIdsNextLink(String alternativeSecurityIdsNextLink) {
this.alternativeSecurityIdsNextLink = alternativeSecurityIdsNextLink;
this.changedFields = changedFields.add("alternativeSecurityIds");
return this;
}
public Builder approximateLastSignInDateTime(OffsetDateTime approximateLastSignInDateTime) {
this.approximateLastSignInDateTime = approximateLastSignInDateTime;
this.changedFields = changedFields.add("approximateLastSignInDateTime");
return this;
}
public Builder complianceExpirationDateTime(OffsetDateTime complianceExpirationDateTime) {
this.complianceExpirationDateTime = complianceExpirationDateTime;
this.changedFields = changedFields.add("complianceExpirationDateTime");
return this;
}
public Builder deviceId(String deviceId) {
this.deviceId = deviceId;
this.changedFields = changedFields.add("deviceId");
return this;
}
public Builder deviceMetadata(String deviceMetadata) {
this.deviceMetadata = deviceMetadata;
this.changedFields = changedFields.add("deviceMetadata");
return this;
}
public Builder deviceVersion(Integer deviceVersion) {
this.deviceVersion = deviceVersion;
this.changedFields = changedFields.add("deviceVersion");
return this;
}
public Builder displayName(String displayName) {
this.displayName = displayName;
this.changedFields = changedFields.add("displayName");
return this;
}
public Builder isCompliant(Boolean isCompliant) {
this.isCompliant = isCompliant;
this.changedFields = changedFields.add("isCompliant");
return this;
}
public Builder isManaged(Boolean isManaged) {
this.isManaged = isManaged;
this.changedFields = changedFields.add("isManaged");
return this;
}
public Builder mdmAppId(String mdmAppId) {
this.mdmAppId = mdmAppId;
this.changedFields = changedFields.add("mdmAppId");
return this;
}
public Builder onPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime) {
this.onPremisesLastSyncDateTime = onPremisesLastSyncDateTime;
this.changedFields = changedFields.add("onPremisesLastSyncDateTime");
return this;
}
public Builder onPremisesSyncEnabled(Boolean onPremisesSyncEnabled) {
this.onPremisesSyncEnabled = onPremisesSyncEnabled;
this.changedFields = changedFields.add("onPremisesSyncEnabled");
return this;
}
public Builder operatingSystem(String operatingSystem) {
this.operatingSystem = operatingSystem;
this.changedFields = changedFields.add("operatingSystem");
return this;
}
public Builder operatingSystemVersion(String operatingSystemVersion) {
this.operatingSystemVersion = operatingSystemVersion;
this.changedFields = changedFields.add("operatingSystemVersion");
return this;
}
public Builder physicalIds(List physicalIds) {
this.physicalIds = physicalIds;
this.changedFields = changedFields.add("physicalIds");
return this;
}
public Builder physicalIds(String... physicalIds) {
return physicalIds(Arrays.asList(physicalIds));
}
public Builder physicalIdsNextLink(String physicalIdsNextLink) {
this.physicalIdsNextLink = physicalIdsNextLink;
this.changedFields = changedFields.add("physicalIds");
return this;
}
public Builder profileType(String profileType) {
this.profileType = profileType;
this.changedFields = changedFields.add("profileType");
return this;
}
public Builder systemLabels(List systemLabels) {
this.systemLabels = systemLabels;
this.changedFields = changedFields.add("systemLabels");
return this;
}
public Builder systemLabels(String... systemLabels) {
return systemLabels(Arrays.asList(systemLabels));
}
public Builder systemLabelsNextLink(String systemLabelsNextLink) {
this.systemLabelsNextLink = systemLabelsNextLink;
this.changedFields = changedFields.add("systemLabels");
return this;
}
public Builder trustType(String trustType) {
this.trustType = trustType;
this.changedFields = changedFields.add("trustType");
return this;
}
public Device build() {
Device _x = new Device();
_x.contextPath = null;
_x.changedFields = changedFields;
_x.unmappedFields = new UnmappedFieldsImpl();
_x.odataType = "microsoft.graph.device";
_x.id = id;
_x.deletedDateTime = deletedDateTime;
_x.accountEnabled = accountEnabled;
_x.alternativeSecurityIds = alternativeSecurityIds;
_x.alternativeSecurityIdsNextLink = alternativeSecurityIdsNextLink;
_x.approximateLastSignInDateTime = approximateLastSignInDateTime;
_x.complianceExpirationDateTime = complianceExpirationDateTime;
_x.deviceId = deviceId;
_x.deviceMetadata = deviceMetadata;
_x.deviceVersion = deviceVersion;
_x.displayName = displayName;
_x.isCompliant = isCompliant;
_x.isManaged = isManaged;
_x.mdmAppId = mdmAppId;
_x.onPremisesLastSyncDateTime = onPremisesLastSyncDateTime;
_x.onPremisesSyncEnabled = onPremisesSyncEnabled;
_x.operatingSystem = operatingSystem;
_x.operatingSystemVersion = operatingSystemVersion;
_x.physicalIds = physicalIds;
_x.physicalIdsNextLink = physicalIdsNextLink;
_x.profileType = profileType;
_x.systemLabels = systemLabels;
_x.systemLabelsNextLink = systemLabelsNextLink;
_x.trustType = trustType;
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()));
}
}
@Property(name="accountEnabled")
@JsonIgnore
public Optional getAccountEnabled() {
return Optional.ofNullable(accountEnabled);
}
public Device withAccountEnabled(Boolean accountEnabled) {
Device _x = _copy();
_x.changedFields = changedFields.add("accountEnabled");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.accountEnabled = accountEnabled;
return _x;
}
@Property(name="alternativeSecurityIds")
@JsonIgnore
public CollectionPage getAlternativeSecurityIds() {
return new CollectionPage(contextPath, AlternativeSecurityId.class, this.alternativeSecurityIds, Optional.ofNullable(alternativeSecurityIdsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY);
}
public Device withAlternativeSecurityIds(List alternativeSecurityIds) {
Device _x = _copy();
_x.changedFields = changedFields.add("alternativeSecurityIds");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.alternativeSecurityIds = alternativeSecurityIds;
return _x;
}
@Property(name="alternativeSecurityIds")
@JsonIgnore
public CollectionPage getAlternativeSecurityIds(HttpRequestOptions options) {
return new CollectionPage(contextPath, AlternativeSecurityId.class, this.alternativeSecurityIds, Optional.ofNullable(alternativeSecurityIdsNextLink), Collections.emptyList(), options);
}
@Property(name="approximateLastSignInDateTime")
@JsonIgnore
public Optional getApproximateLastSignInDateTime() {
return Optional.ofNullable(approximateLastSignInDateTime);
}
public Device withApproximateLastSignInDateTime(OffsetDateTime approximateLastSignInDateTime) {
Device _x = _copy();
_x.changedFields = changedFields.add("approximateLastSignInDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.approximateLastSignInDateTime = approximateLastSignInDateTime;
return _x;
}
@Property(name="complianceExpirationDateTime")
@JsonIgnore
public Optional getComplianceExpirationDateTime() {
return Optional.ofNullable(complianceExpirationDateTime);
}
public Device withComplianceExpirationDateTime(OffsetDateTime complianceExpirationDateTime) {
Device _x = _copy();
_x.changedFields = changedFields.add("complianceExpirationDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.complianceExpirationDateTime = complianceExpirationDateTime;
return _x;
}
@Property(name="deviceId")
@JsonIgnore
public Optional getDeviceId() {
return Optional.ofNullable(deviceId);
}
public Device withDeviceId(String deviceId) {
Device _x = _copy();
_x.changedFields = changedFields.add("deviceId");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.deviceId = deviceId;
return _x;
}
@Property(name="deviceMetadata")
@JsonIgnore
public Optional getDeviceMetadata() {
return Optional.ofNullable(deviceMetadata);
}
public Device withDeviceMetadata(String deviceMetadata) {
Device _x = _copy();
_x.changedFields = changedFields.add("deviceMetadata");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.deviceMetadata = deviceMetadata;
return _x;
}
@Property(name="deviceVersion")
@JsonIgnore
public Optional getDeviceVersion() {
return Optional.ofNullable(deviceVersion);
}
public Device withDeviceVersion(Integer deviceVersion) {
Device _x = _copy();
_x.changedFields = changedFields.add("deviceVersion");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.deviceVersion = deviceVersion;
return _x;
}
@Property(name="displayName")
@JsonIgnore
public Optional getDisplayName() {
return Optional.ofNullable(displayName);
}
public Device withDisplayName(String displayName) {
Device _x = _copy();
_x.changedFields = changedFields.add("displayName");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.displayName = displayName;
return _x;
}
@Property(name="isCompliant")
@JsonIgnore
public Optional getIsCompliant() {
return Optional.ofNullable(isCompliant);
}
public Device withIsCompliant(Boolean isCompliant) {
Device _x = _copy();
_x.changedFields = changedFields.add("isCompliant");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.isCompliant = isCompliant;
return _x;
}
@Property(name="isManaged")
@JsonIgnore
public Optional getIsManaged() {
return Optional.ofNullable(isManaged);
}
public Device withIsManaged(Boolean isManaged) {
Device _x = _copy();
_x.changedFields = changedFields.add("isManaged");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.isManaged = isManaged;
return _x;
}
@Property(name="mdmAppId")
@JsonIgnore
public Optional getMdmAppId() {
return Optional.ofNullable(mdmAppId);
}
public Device withMdmAppId(String mdmAppId) {
Device _x = _copy();
_x.changedFields = changedFields.add("mdmAppId");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.mdmAppId = mdmAppId;
return _x;
}
@Property(name="onPremisesLastSyncDateTime")
@JsonIgnore
public Optional getOnPremisesLastSyncDateTime() {
return Optional.ofNullable(onPremisesLastSyncDateTime);
}
public Device withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime) {
Device _x = _copy();
_x.changedFields = changedFields.add("onPremisesLastSyncDateTime");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.onPremisesLastSyncDateTime = onPremisesLastSyncDateTime;
return _x;
}
@Property(name="onPremisesSyncEnabled")
@JsonIgnore
public Optional getOnPremisesSyncEnabled() {
return Optional.ofNullable(onPremisesSyncEnabled);
}
public Device withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled) {
Device _x = _copy();
_x.changedFields = changedFields.add("onPremisesSyncEnabled");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.onPremisesSyncEnabled = onPremisesSyncEnabled;
return _x;
}
@Property(name="operatingSystem")
@JsonIgnore
public Optional getOperatingSystem() {
return Optional.ofNullable(operatingSystem);
}
public Device withOperatingSystem(String operatingSystem) {
Device _x = _copy();
_x.changedFields = changedFields.add("operatingSystem");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.operatingSystem = operatingSystem;
return _x;
}
@Property(name="operatingSystemVersion")
@JsonIgnore
public Optional getOperatingSystemVersion() {
return Optional.ofNullable(operatingSystemVersion);
}
public Device withOperatingSystemVersion(String operatingSystemVersion) {
Device _x = _copy();
_x.changedFields = changedFields.add("operatingSystemVersion");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.operatingSystemVersion = operatingSystemVersion;
return _x;
}
@Property(name="physicalIds")
@JsonIgnore
public CollectionPage getPhysicalIds() {
return new CollectionPage(contextPath, String.class, this.physicalIds, Optional.ofNullable(physicalIdsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY);
}
public Device withPhysicalIds(List physicalIds) {
Device _x = _copy();
_x.changedFields = changedFields.add("physicalIds");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.physicalIds = physicalIds;
return _x;
}
@Property(name="physicalIds")
@JsonIgnore
public CollectionPage getPhysicalIds(HttpRequestOptions options) {
return new CollectionPage(contextPath, String.class, this.physicalIds, Optional.ofNullable(physicalIdsNextLink), Collections.emptyList(), options);
}
@Property(name="profileType")
@JsonIgnore
public Optional getProfileType() {
return Optional.ofNullable(profileType);
}
public Device withProfileType(String profileType) {
Device _x = _copy();
_x.changedFields = changedFields.add("profileType");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.profileType = profileType;
return _x;
}
@Property(name="systemLabels")
@JsonIgnore
public CollectionPage getSystemLabels() {
return new CollectionPage(contextPath, String.class, this.systemLabels, Optional.ofNullable(systemLabelsNextLink), Collections.emptyList(), HttpRequestOptions.EMPTY);
}
public Device withSystemLabels(List systemLabels) {
Device _x = _copy();
_x.changedFields = changedFields.add("systemLabels");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.systemLabels = systemLabels;
return _x;
}
@Property(name="systemLabels")
@JsonIgnore
public CollectionPage getSystemLabels(HttpRequestOptions options) {
return new CollectionPage(contextPath, String.class, this.systemLabels, Optional.ofNullable(systemLabelsNextLink), Collections.emptyList(), options);
}
@Property(name="trustType")
@JsonIgnore
public Optional getTrustType() {
return Optional.ofNullable(trustType);
}
public Device withTrustType(String trustType) {
Device _x = _copy();
_x.changedFields = changedFields.add("trustType");
_x.odataType = Util.nvl(odataType, "microsoft.graph.device");
_x.trustType = trustType;
return _x;
}
public Device withUnmappedField(String name, String value) {
Device _x = _copy();
_x.setUnmappedField(name, value);
return _x;
}
@NavigationProperty(name="memberOf")
@JsonIgnore
public DirectoryObjectCollectionRequest getMemberOf() {
return new DirectoryObjectCollectionRequest(
contextPath.addSegment("memberOf"), RequestHelper.getValue(unmappedFields, "memberOf"));
}
@NavigationProperty(name="registeredOwners")
@JsonIgnore
public DirectoryObjectCollectionRequest getRegisteredOwners() {
return new DirectoryObjectCollectionRequest(
contextPath.addSegment("registeredOwners"), RequestHelper.getValue(unmappedFields, "registeredOwners"));
}
@NavigationProperty(name="registeredUsers")
@JsonIgnore
public DirectoryObjectCollectionRequest getRegisteredUsers() {
return new DirectoryObjectCollectionRequest(
contextPath.addSegment("registeredUsers"), RequestHelper.getValue(unmappedFields, "registeredUsers"));
}
@NavigationProperty(name="transitiveMemberOf")
@JsonIgnore
public DirectoryObjectCollectionRequest getTransitiveMemberOf() {
return new DirectoryObjectCollectionRequest(
contextPath.addSegment("transitiveMemberOf"), RequestHelper.getValue(unmappedFields, "transitiveMemberOf"));
}
@NavigationProperty(name="extensions")
@JsonIgnore
public ExtensionCollectionRequest getExtensions() {
return new ExtensionCollectionRequest(
contextPath.addSegment("extensions"), RequestHelper.getValue(unmappedFields, "extensions"));
}
@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 Device patch() {
RequestHelper.patch(this, contextPath, RequestOptions.EMPTY);
Device _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 Device put() {
RequestHelper.put(this, contextPath, RequestOptions.EMPTY);
Device _x = _copy();
_x.changedFields = null;
return _x;
}
private Device _copy() {
Device _x = new Device();
_x.contextPath = contextPath;
_x.changedFields = changedFields;
_x.unmappedFields = unmappedFields.copy();
_x.odataType = odataType;
_x.id = id;
_x.deletedDateTime = deletedDateTime;
_x.accountEnabled = accountEnabled;
_x.alternativeSecurityIds = alternativeSecurityIds;
_x.approximateLastSignInDateTime = approximateLastSignInDateTime;
_x.complianceExpirationDateTime = complianceExpirationDateTime;
_x.deviceId = deviceId;
_x.deviceMetadata = deviceMetadata;
_x.deviceVersion = deviceVersion;
_x.displayName = displayName;
_x.isCompliant = isCompliant;
_x.isManaged = isManaged;
_x.mdmAppId = mdmAppId;
_x.onPremisesLastSyncDateTime = onPremisesLastSyncDateTime;
_x.onPremisesSyncEnabled = onPremisesSyncEnabled;
_x.operatingSystem = operatingSystem;
_x.operatingSystemVersion = operatingSystemVersion;
_x.physicalIds = physicalIds;
_x.profileType = profileType;
_x.systemLabels = systemLabels;
_x.trustType = trustType;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("Device[");
b.append("id=");
b.append(this.id);
b.append(", ");
b.append("deletedDateTime=");
b.append(this.deletedDateTime);
b.append(", ");
b.append("accountEnabled=");
b.append(this.accountEnabled);
b.append(", ");
b.append("alternativeSecurityIds=");
b.append(this.alternativeSecurityIds);
b.append(", ");
b.append("approximateLastSignInDateTime=");
b.append(this.approximateLastSignInDateTime);
b.append(", ");
b.append("complianceExpirationDateTime=");
b.append(this.complianceExpirationDateTime);
b.append(", ");
b.append("deviceId=");
b.append(this.deviceId);
b.append(", ");
b.append("deviceMetadata=");
b.append(this.deviceMetadata);
b.append(", ");
b.append("deviceVersion=");
b.append(this.deviceVersion);
b.append(", ");
b.append("displayName=");
b.append(this.displayName);
b.append(", ");
b.append("isCompliant=");
b.append(this.isCompliant);
b.append(", ");
b.append("isManaged=");
b.append(this.isManaged);
b.append(", ");
b.append("mdmAppId=");
b.append(this.mdmAppId);
b.append(", ");
b.append("onPremisesLastSyncDateTime=");
b.append(this.onPremisesLastSyncDateTime);
b.append(", ");
b.append("onPremisesSyncEnabled=");
b.append(this.onPremisesSyncEnabled);
b.append(", ");
b.append("operatingSystem=");
b.append(this.operatingSystem);
b.append(", ");
b.append("operatingSystemVersion=");
b.append(this.operatingSystemVersion);
b.append(", ");
b.append("physicalIds=");
b.append(this.physicalIds);
b.append(", ");
b.append("profileType=");
b.append(this.profileType);
b.append(", ");
b.append("systemLabels=");
b.append(this.systemLabels);
b.append(", ");
b.append("trustType=");
b.append(this.trustType);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}