Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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;
/**
* A singleton entity which is used to specify IE mode site list metadata
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class BrowserSiteList extends Entity implements Parsable {
/**
* Instantiates a new {@link BrowserSiteList} and sets the default values.
*/
public BrowserSiteList() {
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 BrowserSiteList}
*/
@jakarta.annotation.Nonnull
public static BrowserSiteList createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new BrowserSiteList();
}
/**
* Gets the description property value. The description of the site list.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the displayName property value. The name of the site list.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* 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("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); });
deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("publishedBy", (n) -> { this.setPublishedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); });
deserializerMap.put("publishedDateTime", (n) -> { this.setPublishedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("revision", (n) -> { this.setRevision(n.getStringValue()); });
deserializerMap.put("sharedCookies", (n) -> { this.setSharedCookies(n.getCollectionOfObjectValues(BrowserSharedCookie::createFromDiscriminatorValue)); });
deserializerMap.put("sites", (n) -> { this.setSites(n.getCollectionOfObjectValues(BrowserSite::createFromDiscriminatorValue)); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(BrowserSiteListStatus::forValue)); });
return deserializerMap;
}
/**
* Gets the lastModifiedBy property value. The user who last modified the site list.
* @return a {@link IdentitySet}
*/
@jakarta.annotation.Nullable
public IdentitySet getLastModifiedBy() {
return this.backingStore.get("lastModifiedBy");
}
/**
* Gets the lastModifiedDateTime property value. The date and time when the site list was last modified.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the publishedBy property value. The user who published the site list.
* @return a {@link IdentitySet}
*/
@jakarta.annotation.Nullable
public IdentitySet getPublishedBy() {
return this.backingStore.get("publishedBy");
}
/**
* Gets the publishedDateTime property value. The date and time when the site list was published.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getPublishedDateTime() {
return this.backingStore.get("publishedDateTime");
}
/**
* Gets the revision property value. The current revision of the site list.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRevision() {
return this.backingStore.get("revision");
}
/**
* Gets the sharedCookies property value. A collection of shared cookies defined for the site list.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSharedCookies() {
return this.backingStore.get("sharedCookies");
}
/**
* Gets the sites property value. A collection of sites defined for the site list.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSites() {
return this.backingStore.get("sites");
}
/**
* Gets the status property value. The status property
* @return a {@link BrowserSiteListStatus}
*/
@jakarta.annotation.Nullable
public BrowserSiteListStatus 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.writeStringValue("description", this.getDescription());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy());
writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime());
writer.writeObjectValue("publishedBy", this.getPublishedBy());
writer.writeOffsetDateTimeValue("publishedDateTime", this.getPublishedDateTime());
writer.writeStringValue("revision", this.getRevision());
writer.writeCollectionOfObjectValues("sharedCookies", this.getSharedCookies());
writer.writeCollectionOfObjectValues("sites", this.getSites());
writer.writeEnumValue("status", this.getStatus());
}
/**
* Sets the description property value. The description of the site list.
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("description", value);
}
/**
* Sets the displayName property value. The name of the site list.
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the lastModifiedBy property value. The user who last modified the site list.
* @param value Value to set for the lastModifiedBy property.
*/
public void setLastModifiedBy(@jakarta.annotation.Nullable final IdentitySet value) {
this.backingStore.set("lastModifiedBy", value);
}
/**
* Sets the lastModifiedDateTime property value. The date and time when the site list was last modified.
* @param value Value to set for the lastModifiedDateTime property.
*/
public void setLastModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("lastModifiedDateTime", value);
}
/**
* Sets the publishedBy property value. The user who published the site list.
* @param value Value to set for the publishedBy property.
*/
public void setPublishedBy(@jakarta.annotation.Nullable final IdentitySet value) {
this.backingStore.set("publishedBy", value);
}
/**
* Sets the publishedDateTime property value. The date and time when the site list was published.
* @param value Value to set for the publishedDateTime property.
*/
public void setPublishedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("publishedDateTime", value);
}
/**
* Sets the revision property value. The current revision of the site list.
* @param value Value to set for the revision property.
*/
public void setRevision(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("revision", value);
}
/**
* Sets the sharedCookies property value. A collection of shared cookies defined for the site list.
* @param value Value to set for the sharedCookies property.
*/
public void setSharedCookies(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("sharedCookies", value);
}
/**
* Sets the sites property value. A collection of sites defined for the site list.
* @param value Value to set for the sites property.
*/
public void setSites(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("sites", 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 BrowserSiteListStatus value) {
this.backingStore.set("status", value);
}
}