![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.EBookInstallSummary 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.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* Contains properties for the installation summary of a book for a device.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class EBookInstallSummary extends Entity implements Parsable {
/**
* Instantiates a new {@link EBookInstallSummary} and sets the default values.
*/
public EBookInstallSummary() {
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 EBookInstallSummary}
*/
@jakarta.annotation.Nonnull
public static EBookInstallSummary createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new EBookInstallSummary();
}
/**
* Gets the failedDeviceCount property value. Number of Devices that have failed to install this book.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getFailedDeviceCount() {
return this.backingStore.get("failedDeviceCount");
}
/**
* Gets the failedUserCount property value. Number of Users that have 1 or more device that failed to install this book.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getFailedUserCount() {
return this.backingStore.get("failedUserCount");
}
/**
* 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("failedDeviceCount", (n) -> { this.setFailedDeviceCount(n.getIntegerValue()); });
deserializerMap.put("failedUserCount", (n) -> { this.setFailedUserCount(n.getIntegerValue()); });
deserializerMap.put("installedDeviceCount", (n) -> { this.setInstalledDeviceCount(n.getIntegerValue()); });
deserializerMap.put("installedUserCount", (n) -> { this.setInstalledUserCount(n.getIntegerValue()); });
deserializerMap.put("notInstalledDeviceCount", (n) -> { this.setNotInstalledDeviceCount(n.getIntegerValue()); });
deserializerMap.put("notInstalledUserCount", (n) -> { this.setNotInstalledUserCount(n.getIntegerValue()); });
return deserializerMap;
}
/**
* Gets the installedDeviceCount property value. Number of Devices that have successfully installed this book.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getInstalledDeviceCount() {
return this.backingStore.get("installedDeviceCount");
}
/**
* Gets the installedUserCount property value. Number of Users whose devices have all succeeded to install this book.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getInstalledUserCount() {
return this.backingStore.get("installedUserCount");
}
/**
* Gets the notInstalledDeviceCount property value. Number of Devices that does not have this book installed.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getNotInstalledDeviceCount() {
return this.backingStore.get("notInstalledDeviceCount");
}
/**
* Gets the notInstalledUserCount property value. Number of Users that did not install this book.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getNotInstalledUserCount() {
return this.backingStore.get("notInstalledUserCount");
}
/**
* 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.writeIntegerValue("failedDeviceCount", this.getFailedDeviceCount());
writer.writeIntegerValue("failedUserCount", this.getFailedUserCount());
writer.writeIntegerValue("installedDeviceCount", this.getInstalledDeviceCount());
writer.writeIntegerValue("installedUserCount", this.getInstalledUserCount());
writer.writeIntegerValue("notInstalledDeviceCount", this.getNotInstalledDeviceCount());
writer.writeIntegerValue("notInstalledUserCount", this.getNotInstalledUserCount());
}
/**
* Sets the failedDeviceCount property value. Number of Devices that have failed to install this book.
* @param value Value to set for the failedDeviceCount property.
*/
public void setFailedDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("failedDeviceCount", value);
}
/**
* Sets the failedUserCount property value. Number of Users that have 1 or more device that failed to install this book.
* @param value Value to set for the failedUserCount property.
*/
public void setFailedUserCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("failedUserCount", value);
}
/**
* Sets the installedDeviceCount property value. Number of Devices that have successfully installed this book.
* @param value Value to set for the installedDeviceCount property.
*/
public void setInstalledDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("installedDeviceCount", value);
}
/**
* Sets the installedUserCount property value. Number of Users whose devices have all succeeded to install this book.
* @param value Value to set for the installedUserCount property.
*/
public void setInstalledUserCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("installedUserCount", value);
}
/**
* Sets the notInstalledDeviceCount property value. Number of Devices that does not have this book installed.
* @param value Value to set for the notInstalledDeviceCount property.
*/
public void setNotInstalledDeviceCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("notInstalledDeviceCount", value);
}
/**
* Sets the notInstalledUserCount property value. Number of Users that did not install this book.
* @param value Value to set for the notInstalledUserCount property.
*/
public void setNotInstalledUserCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("notInstalledUserCount", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy