com.microsoft.graph.beta.generated.models.ComanagementEligibleDevice Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Device Co-Management eligibility state
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ComanagementEligibleDevice extends Entity implements Parsable {
/**
* Instantiates a new {@link ComanagementEligibleDevice} and sets the default values.
*/
public ComanagementEligibleDevice() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link ComanagementEligibleDevice}
*/
@jakarta.annotation.Nonnull
public static ComanagementEligibleDevice createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ComanagementEligibleDevice();
}
/**
* Gets the clientRegistrationStatus property value. Device registration status.
* @return a {@link DeviceRegistrationState}
*/
@jakarta.annotation.Nullable
public DeviceRegistrationState getClientRegistrationStatus() {
return this.backingStore.get("clientRegistrationStatus");
}
/**
* Gets the deviceName property value. DeviceName
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDeviceName() {
return this.backingStore.get("deviceName");
}
/**
* Gets the deviceType property value. Device type.
* @return a {@link DeviceType}
*/
@jakarta.annotation.Nullable
public DeviceType getDeviceType() {
return this.backingStore.get("deviceType");
}
/**
* Gets the entitySource property value. EntitySource
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getEntitySource() {
return this.backingStore.get("entitySource");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("clientRegistrationStatus", (n) -> { this.setClientRegistrationStatus(n.getEnumValue(DeviceRegistrationState::forValue)); });
deserializerMap.put("deviceName", (n) -> { this.setDeviceName(n.getStringValue()); });
deserializerMap.put("deviceType", (n) -> { this.setDeviceType(n.getEnumValue(DeviceType::forValue)); });
deserializerMap.put("entitySource", (n) -> { this.setEntitySource(n.getIntegerValue()); });
deserializerMap.put("managementAgents", (n) -> { this.setManagementAgents(n.getEnumValue(ManagementAgentType::forValue)); });
deserializerMap.put("managementState", (n) -> { this.setManagementState(n.getEnumValue(ManagementState::forValue)); });
deserializerMap.put("manufacturer", (n) -> { this.setManufacturer(n.getStringValue()); });
deserializerMap.put("mdmStatus", (n) -> { this.setMdmStatus(n.getStringValue()); });
deserializerMap.put("model", (n) -> { this.setModel(n.getStringValue()); });
deserializerMap.put("osDescription", (n) -> { this.setOsDescription(n.getStringValue()); });
deserializerMap.put("osVersion", (n) -> { this.setOsVersion(n.getStringValue()); });
deserializerMap.put("ownerType", (n) -> { this.setOwnerType(n.getEnumValue(OwnerType::forValue)); });
deserializerMap.put("referenceId", (n) -> { this.setReferenceId(n.getStringValue()); });
deserializerMap.put("serialNumber", (n) -> { this.setSerialNumber(n.getStringValue()); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(ComanagementEligibleType::forValue)); });
deserializerMap.put("upn", (n) -> { this.setUpn(n.getStringValue()); });
deserializerMap.put("userEmail", (n) -> { this.setUserEmail(n.getStringValue()); });
deserializerMap.put("userId", (n) -> { this.setUserId(n.getStringValue()); });
deserializerMap.put("userName", (n) -> { this.setUserName(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the managementAgents property value. Management agent type.
* @return a {@link ManagementAgentType}
*/
@jakarta.annotation.Nullable
public ManagementAgentType getManagementAgents() {
return this.backingStore.get("managementAgents");
}
/**
* Gets the managementState property value. Management state of device in Microsoft Intune.
* @return a {@link ManagementState}
*/
@jakarta.annotation.Nullable
public ManagementState getManagementState() {
return this.backingStore.get("managementState");
}
/**
* Gets the manufacturer property value. Manufacturer
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getManufacturer() {
return this.backingStore.get("manufacturer");
}
/**
* Gets the mdmStatus property value. MDMStatus
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMdmStatus() {
return this.backingStore.get("mdmStatus");
}
/**
* Gets the model property value. Model
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getModel() {
return this.backingStore.get("model");
}
/**
* Gets the osDescription property value. OSDescription
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOsDescription() {
return this.backingStore.get("osDescription");
}
/**
* Gets the osVersion property value. OSVersion
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOsVersion() {
return this.backingStore.get("osVersion");
}
/**
* Gets the ownerType property value. Owner type of device.
* @return a {@link OwnerType}
*/
@jakarta.annotation.Nullable
public OwnerType getOwnerType() {
return this.backingStore.get("ownerType");
}
/**
* Gets the referenceId property value. ReferenceId
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getReferenceId() {
return this.backingStore.get("referenceId");
}
/**
* Gets the serialNumber property value. SerialNumber
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getSerialNumber() {
return this.backingStore.get("serialNumber");
}
/**
* Gets the status property value. The status property
* @return a {@link ComanagementEligibleType}
*/
@jakarta.annotation.Nullable
public ComanagementEligibleType getStatus() {
return this.backingStore.get("status");
}
/**
* Gets the upn property value. UPN
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getUpn() {
return this.backingStore.get("upn");
}
/**
* Gets the userEmail property value. UserEmail
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getUserEmail() {
return this.backingStore.get("userEmail");
}
/**
* Gets the userId property value. UserId
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getUserId() {
return this.backingStore.get("userId");
}
/**
* Gets the userName property value. UserName
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getUserName() {
return this.backingStore.get("userName");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeEnumValue("clientRegistrationStatus", this.getClientRegistrationStatus());
writer.writeStringValue("deviceName", this.getDeviceName());
writer.writeEnumValue("deviceType", this.getDeviceType());
writer.writeIntegerValue("entitySource", this.getEntitySource());
writer.writeEnumValue("managementAgents", this.getManagementAgents());
writer.writeEnumValue("managementState", this.getManagementState());
writer.writeStringValue("manufacturer", this.getManufacturer());
writer.writeStringValue("mdmStatus", this.getMdmStatus());
writer.writeStringValue("model", this.getModel());
writer.writeStringValue("osDescription", this.getOsDescription());
writer.writeStringValue("osVersion", this.getOsVersion());
writer.writeEnumValue("ownerType", this.getOwnerType());
writer.writeStringValue("referenceId", this.getReferenceId());
writer.writeStringValue("serialNumber", this.getSerialNumber());
writer.writeEnumValue("status", this.getStatus());
writer.writeStringValue("upn", this.getUpn());
writer.writeStringValue("userEmail", this.getUserEmail());
writer.writeStringValue("userId", this.getUserId());
writer.writeStringValue("userName", this.getUserName());
}
/**
* Sets the clientRegistrationStatus property value. Device registration status.
* @param value Value to set for the clientRegistrationStatus property.
*/
public void setClientRegistrationStatus(@jakarta.annotation.Nullable final DeviceRegistrationState value) {
this.backingStore.set("clientRegistrationStatus", value);
}
/**
* Sets the deviceName property value. DeviceName
* @param value Value to set for the deviceName property.
*/
public void setDeviceName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("deviceName", value);
}
/**
* Sets the deviceType property value. Device type.
* @param value Value to set for the deviceType property.
*/
public void setDeviceType(@jakarta.annotation.Nullable final DeviceType value) {
this.backingStore.set("deviceType", value);
}
/**
* Sets the entitySource property value. EntitySource
* @param value Value to set for the entitySource property.
*/
public void setEntitySource(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("entitySource", value);
}
/**
* Sets the managementAgents property value. Management agent type.
* @param value Value to set for the managementAgents property.
*/
public void setManagementAgents(@jakarta.annotation.Nullable final ManagementAgentType value) {
this.backingStore.set("managementAgents", value);
}
/**
* Sets the managementState property value. Management state of device in Microsoft Intune.
* @param value Value to set for the managementState property.
*/
public void setManagementState(@jakarta.annotation.Nullable final ManagementState value) {
this.backingStore.set("managementState", value);
}
/**
* Sets the manufacturer property value. Manufacturer
* @param value Value to set for the manufacturer property.
*/
public void setManufacturer(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("manufacturer", value);
}
/**
* Sets the mdmStatus property value. MDMStatus
* @param value Value to set for the mdmStatus property.
*/
public void setMdmStatus(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("mdmStatus", value);
}
/**
* Sets the model property value. Model
* @param value Value to set for the model property.
*/
public void setModel(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("model", value);
}
/**
* Sets the osDescription property value. OSDescription
* @param value Value to set for the osDescription property.
*/
public void setOsDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("osDescription", value);
}
/**
* Sets the osVersion property value. OSVersion
* @param value Value to set for the osVersion property.
*/
public void setOsVersion(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("osVersion", value);
}
/**
* Sets the ownerType property value. Owner type of device.
* @param value Value to set for the ownerType property.
*/
public void setOwnerType(@jakarta.annotation.Nullable final OwnerType value) {
this.backingStore.set("ownerType", value);
}
/**
* Sets the referenceId property value. ReferenceId
* @param value Value to set for the referenceId property.
*/
public void setReferenceId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("referenceId", value);
}
/**
* Sets the serialNumber property value. SerialNumber
* @param value Value to set for the serialNumber property.
*/
public void setSerialNumber(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("serialNumber", value);
}
/**
* Sets the status property value. The status property
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final ComanagementEligibleType value) {
this.backingStore.set("status", value);
}
/**
* Sets the upn property value. UPN
* @param value Value to set for the upn property.
*/
public void setUpn(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("upn", value);
}
/**
* Sets the userEmail property value. UserEmail
* @param value Value to set for the userEmail property.
*/
public void setUserEmail(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("userEmail", value);
}
/**
* Sets the userId property value. UserId
* @param value Value to set for the userId property.
*/
public void setUserId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("userId", value);
}
/**
* Sets the userName property value. UserName
* @param value Value to set for the userName property.
*/
public void setUserName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("userName", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy