![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.ImportedWindowsAutopilotDeviceIdentityUpload Maven / Gradle / Ivy
package com.microsoft.graph.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Import windows autopilot devices using upload.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class ImportedWindowsAutopilotDeviceIdentityUpload extends Entity implements Parsable {
/**
* Instantiates a new {@link ImportedWindowsAutopilotDeviceIdentityUpload} and sets the default values.
*/
public ImportedWindowsAutopilotDeviceIdentityUpload() {
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 ImportedWindowsAutopilotDeviceIdentityUpload}
*/
@jakarta.annotation.Nonnull
public static ImportedWindowsAutopilotDeviceIdentityUpload createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ImportedWindowsAutopilotDeviceIdentityUpload();
}
/**
* Gets the createdDateTimeUtc property value. DateTime when the entity is created.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTimeUtc() {
return this.backingStore.get("createdDateTimeUtc");
}
/**
* Gets the deviceIdentities property value. Collection of all Autopilot devices as a part of this upload.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDeviceIdentities() {
return this.backingStore.get("deviceIdentities");
}
/**
* 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("createdDateTimeUtc", (n) -> { this.setCreatedDateTimeUtc(n.getOffsetDateTimeValue()); });
deserializerMap.put("deviceIdentities", (n) -> { this.setDeviceIdentities(n.getCollectionOfObjectValues(ImportedWindowsAutopilotDeviceIdentity::createFromDiscriminatorValue)); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(ImportedWindowsAutopilotDeviceIdentityUploadStatus::forValue)); });
return deserializerMap;
}
/**
* Gets the status property value. The status property
* @return a {@link ImportedWindowsAutopilotDeviceIdentityUploadStatus}
*/
@jakarta.annotation.Nullable
public ImportedWindowsAutopilotDeviceIdentityUploadStatus getStatus() {
return this.backingStore.get("status");
}
/**
* 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.writeOffsetDateTimeValue("createdDateTimeUtc", this.getCreatedDateTimeUtc());
writer.writeCollectionOfObjectValues("deviceIdentities", this.getDeviceIdentities());
writer.writeEnumValue("status", this.getStatus());
}
/**
* Sets the createdDateTimeUtc property value. DateTime when the entity is created.
* @param value Value to set for the createdDateTimeUtc property.
*/
public void setCreatedDateTimeUtc(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTimeUtc", value);
}
/**
* Sets the deviceIdentities property value. Collection of all Autopilot devices as a part of this upload.
* @param value Value to set for the deviceIdentities property.
*/
public void setDeviceIdentities(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("deviceIdentities", 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 ImportedWindowsAutopilotDeviceIdentityUploadStatus value) {
this.backingStore.set("status", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy