
com.microsoft.graph.beta.generated.models.Office365GroupsActivityFileCounts 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.time.LocalDate;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class Office365GroupsActivityFileCounts extends Entity implements Parsable {
/**
* Instantiates a new {@link Office365GroupsActivityFileCounts} and sets the default values.
*/
public Office365GroupsActivityFileCounts() {
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 Office365GroupsActivityFileCounts}
*/
@jakarta.annotation.Nonnull
public static Office365GroupsActivityFileCounts createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Office365GroupsActivityFileCounts();
}
/**
* Gets the active property value. The number of files that were viewed, edited, shared, or synced in the group's SharePoint document library.
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getActive() {
return this.backingStore.get("active");
}
/**
* 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("active", (n) -> { this.setActive(n.getLongValue()); });
deserializerMap.put("reportDate", (n) -> { this.setReportDate(n.getLocalDateValue()); });
deserializerMap.put("reportPeriod", (n) -> { this.setReportPeriod(n.getStringValue()); });
deserializerMap.put("reportRefreshDate", (n) -> { this.setReportRefreshDate(n.getLocalDateValue()); });
deserializerMap.put("total", (n) -> { this.setTotal(n.getLongValue()); });
return deserializerMap;
}
/**
* Gets the reportDate property value. The date on which a number of files were active in the group's SharePoint site.
* @return a {@link LocalDate}
*/
@jakarta.annotation.Nullable
public LocalDate getReportDate() {
return this.backingStore.get("reportDate");
}
/**
* Gets the reportPeriod property value. The number of days the report covers.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getReportPeriod() {
return this.backingStore.get("reportPeriod");
}
/**
* Gets the reportRefreshDate property value. The latest date of the content.
* @return a {@link LocalDate}
*/
@jakarta.annotation.Nullable
public LocalDate getReportRefreshDate() {
return this.backingStore.get("reportRefreshDate");
}
/**
* Gets the total property value. The total number of files in the group's SharePoint document library.
* @return a {@link Long}
*/
@jakarta.annotation.Nullable
public Long getTotal() {
return this.backingStore.get("total");
}
/**
* 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("active", this.getActive());
writer.writeLocalDateValue("reportDate", this.getReportDate());
writer.writeStringValue("reportPeriod", this.getReportPeriod());
writer.writeLocalDateValue("reportRefreshDate", this.getReportRefreshDate());
writer.writeLongValue("total", this.getTotal());
}
/**
* Sets the active property value. The number of files that were viewed, edited, shared, or synced in the group's SharePoint document library.
* @param value Value to set for the active property.
*/
public void setActive(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("active", value);
}
/**
* Sets the reportDate property value. The date on which a number of files were active in the group's SharePoint site.
* @param value Value to set for the reportDate property.
*/
public void setReportDate(@jakarta.annotation.Nullable final LocalDate value) {
this.backingStore.set("reportDate", value);
}
/**
* Sets the reportPeriod property value. The number of days the report covers.
* @param value Value to set for the reportPeriod property.
*/
public void setReportPeriod(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("reportPeriod", value);
}
/**
* Sets the reportRefreshDate property value. The latest date of the content.
* @param value Value to set for the reportRefreshDate property.
*/
public void setReportRefreshDate(@jakarta.annotation.Nullable final LocalDate value) {
this.backingStore.set("reportRefreshDate", value);
}
/**
* Sets the total property value. The total number of files in the group's SharePoint document library.
* @param value Value to set for the total property.
*/
public void setTotal(@jakarta.annotation.Nullable final Long value) {
this.backingStore.set("total", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy