![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.security.EdiscoveryEstimateOperation Maven / Gradle / Ivy
package com.microsoft.graph.models.security;
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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class EdiscoveryEstimateOperation extends CaseOperation implements Parsable {
/**
* Instantiates a new {@link EdiscoveryEstimateOperation} and sets the default values.
*/
public EdiscoveryEstimateOperation() {
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 EdiscoveryEstimateOperation}
*/
@jakarta.annotation.Nonnull
public static EdiscoveryEstimateOperation createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new EdiscoveryEstimateOperation();
}
/**
* 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("indexedItemCount", (n) -> { this.setIndexedItemCount(n.getLongValue()); });
deserializerMap.put("indexedItemsSize", (n) -> { this.setIndexedItemsSize(n.getLongValue()); });
deserializerMap.put("mailboxCount", (n) -> { this.setMailboxCount(n.getIntegerValue()); });
deserializerMap.put("search", (n) -> { this.setSearch(n.getObjectValue(EdiscoverySearch::createFromDiscriminatorValue)); });
deserializerMap.put("siteCount", (n) -> { this.setSiteCount(n.getIntegerValue()); });
deserializerMap.put("unindexedItemCount", (n) -> { this.setUnindexedItemCount(n.getLongValue()); });
deserializerMap.put("unindexedItemsSize", (n) -> { this.setUnindexedItemsSize(n.getLongValue()); });
return deserializerMap;
}
/**
* Gets the indexedItemCount property value. The estimated count of items for the search that matched the content query.
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getIndexedItemCount() {
return this.backingStore.get("indexedItemCount");
}
/**
* Gets the indexedItemsSize property value. The estimated size of items for the search that matched the content query.
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getIndexedItemsSize() {
return this.backingStore.get("indexedItemsSize");
}
/**
* Gets the mailboxCount property value. The number of mailboxes that had search hits.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getMailboxCount() {
return this.backingStore.get("mailboxCount");
}
/**
* Gets the search property value. eDiscovery search.
* @return a {@link EdiscoverySearch}
*/
@jakarta.annotation.Nullable
public EdiscoverySearch getSearch() {
return this.backingStore.get("search");
}
/**
* Gets the siteCount property value. The number of mailboxes that had search hits.
* @return a {@link Integer}
*/
@jakarta.annotation.Nullable
public Integer getSiteCount() {
return this.backingStore.get("siteCount");
}
/**
* Gets the unindexedItemCount property value. The estimated count of unindexed items for the collection.
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getUnindexedItemCount() {
return this.backingStore.get("unindexedItemCount");
}
/**
* Gets the unindexedItemsSize property value. The estimated size of unindexed items for the collection.
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getUnindexedItemsSize() {
return this.backingStore.get("unindexedItemsSize");
}
/**
* 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.writeLongValue("indexedItemCount", this.getIndexedItemCount());
writer.writeLongValue("indexedItemsSize", this.getIndexedItemsSize());
writer.writeIntegerValue("mailboxCount", this.getMailboxCount());
writer.writeObjectValue("search", this.getSearch());
writer.writeIntegerValue("siteCount", this.getSiteCount());
writer.writeLongValue("unindexedItemCount", this.getUnindexedItemCount());
writer.writeLongValue("unindexedItemsSize", this.getUnindexedItemsSize());
}
/**
* Sets the indexedItemCount property value. The estimated count of items for the search that matched the content query.
* @param value Value to set for the indexedItemCount property.
*/
public void setIndexedItemCount(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("indexedItemCount", value);
}
/**
* Sets the indexedItemsSize property value. The estimated size of items for the search that matched the content query.
* @param value Value to set for the indexedItemsSize property.
*/
public void setIndexedItemsSize(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("indexedItemsSize", value);
}
/**
* Sets the mailboxCount property value. The number of mailboxes that had search hits.
* @param value Value to set for the mailboxCount property.
*/
public void setMailboxCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("mailboxCount", value);
}
/**
* Sets the search property value. eDiscovery search.
* @param value Value to set for the search property.
*/
public void setSearch(@jakarta.annotation.Nullable final EdiscoverySearch value) {
this.backingStore.set("search", value);
}
/**
* Sets the siteCount property value. The number of mailboxes that had search hits.
* @param value Value to set for the siteCount property.
*/
public void setSiteCount(@jakarta.annotation.Nullable final Integer value) {
this.backingStore.set("siteCount", value);
}
/**
* Sets the unindexedItemCount property value. The estimated count of unindexed items for the collection.
* @param value Value to set for the unindexedItemCount property.
*/
public void setUnindexedItemCount(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("unindexedItemCount", value);
}
/**
* Sets the unindexedItemsSize property value. The estimated size of unindexed items for the collection.
* @param value Value to set for the unindexedItemsSize property.
*/
public void setUnindexedItemsSize(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("unindexedItemsSize", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy