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.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* The history for the site modifications
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class BrowserSiteHistory implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link BrowserSiteHistory} and sets the default values.
*/
public BrowserSiteHistory() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* 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 BrowserSiteHistory}
*/
@jakarta.annotation.Nonnull
public static BrowserSiteHistory createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new BrowserSiteHistory();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the allowRedirect property value. Controls the behavior of redirected sites. If true, indicates that the site will open in Internet Explorer 11 or Microsoft Edge even if the site is navigated to as part of a HTTP or meta refresh redirection chain.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getAllowRedirect() {
return this.backingStore.get("allowRedirect");
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the comment property value. The comment for the site.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getComment() {
return this.backingStore.get("comment");
}
/**
* Gets the compatibilityMode property value. Controls what compatibility setting is used for specific sites or domains. The possible values are: default, internetExplorer8Enterprise, internetExplorer7Enterprise, internetExplorer11, internetExplorer10, internetExplorer9, internetExplorer8, internetExplorer7, internetExplorer5, unknownFutureValue.
* @return a {@link BrowserSiteCompatibilityMode}
*/
@jakarta.annotation.Nullable
public BrowserSiteCompatibilityMode getCompatibilityMode() {
return this.backingStore.get("compatibilityMode");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(8);
deserializerMap.put("allowRedirect", (n) -> { this.setAllowRedirect(n.getBooleanValue()); });
deserializerMap.put("comment", (n) -> { this.setComment(n.getStringValue()); });
deserializerMap.put("compatibilityMode", (n) -> { this.setCompatibilityMode(n.getEnumValue(BrowserSiteCompatibilityMode::forValue)); });
deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); });
deserializerMap.put("mergeType", (n) -> { this.setMergeType(n.getEnumValue(BrowserSiteMergeType::forValue)); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("publishedDateTime", (n) -> { this.setPublishedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("targetEnvironment", (n) -> { this.setTargetEnvironment(n.getEnumValue(BrowserSiteTargetEnvironment::forValue)); });
return deserializerMap;
}
/**
* Gets the lastModifiedBy property value. The user who last modified the site.
* @return a {@link IdentitySet}
*/
@jakarta.annotation.Nullable
public IdentitySet getLastModifiedBy() {
return this.backingStore.get("lastModifiedBy");
}
/**
* Gets the mergeType property value. The merge type of the site. The possible values are: noMerge, default, unknownFutureValue.
* @return a {@link BrowserSiteMergeType}
*/
@jakarta.annotation.Nullable
public BrowserSiteMergeType getMergeType() {
return this.backingStore.get("mergeType");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the publishedDateTime property value. The date and time when the site was last published.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getPublishedDateTime() {
return this.backingStore.get("publishedDateTime");
}
/**
* Gets the targetEnvironment property value. The target environment that the site should open in. The possible values are: internetExplorerMode, internetExplorer11, microsoftEdge, configurable, none, unknownFutureValue.Prior to June 15, 2022, the internetExplorer11 option would allow opening a site in the Internet Explorer 11 (IE11) desktop application. Following the retirement of IE11 on June 15, 2022, the internetExplorer11 option will no longer open an IE11 window and will instead behave the same as the internetExplorerMode option.
* @return a {@link BrowserSiteTargetEnvironment}
*/
@jakarta.annotation.Nullable
public BrowserSiteTargetEnvironment getTargetEnvironment() {
return this.backingStore.get("targetEnvironment");
}
/**
* 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);
writer.writeBooleanValue("allowRedirect", this.getAllowRedirect());
writer.writeStringValue("comment", this.getComment());
writer.writeEnumValue("compatibilityMode", this.getCompatibilityMode());
writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy());
writer.writeEnumValue("mergeType", this.getMergeType());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeOffsetDateTimeValue("publishedDateTime", this.getPublishedDateTime());
writer.writeEnumValue("targetEnvironment", this.getTargetEnvironment());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the allowRedirect property value. Controls the behavior of redirected sites. If true, indicates that the site will open in Internet Explorer 11 or Microsoft Edge even if the site is navigated to as part of a HTTP or meta refresh redirection chain.
* @param value Value to set for the allowRedirect property.
*/
public void setAllowRedirect(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("allowRedirect", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the comment property value. The comment for the site.
* @param value Value to set for the comment property.
*/
public void setComment(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("comment", value);
}
/**
* Sets the compatibilityMode property value. Controls what compatibility setting is used for specific sites or domains. The possible values are: default, internetExplorer8Enterprise, internetExplorer7Enterprise, internetExplorer11, internetExplorer10, internetExplorer9, internetExplorer8, internetExplorer7, internetExplorer5, unknownFutureValue.
* @param value Value to set for the compatibilityMode property.
*/
public void setCompatibilityMode(@jakarta.annotation.Nullable final BrowserSiteCompatibilityMode value) {
this.backingStore.set("compatibilityMode", value);
}
/**
* Sets the lastModifiedBy property value. The user who last modified the site.
* @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 mergeType property value. The merge type of the site. The possible values are: noMerge, default, unknownFutureValue.
* @param value Value to set for the mergeType property.
*/
public void setMergeType(@jakarta.annotation.Nullable final BrowserSiteMergeType value) {
this.backingStore.set("mergeType", value);
}
/**
* Sets the @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
/**
* Sets the publishedDateTime property value. The date and time when the site was last 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 targetEnvironment property value. The target environment that the site should open in. The possible values are: internetExplorerMode, internetExplorer11, microsoftEdge, configurable, none, unknownFutureValue.Prior to June 15, 2022, the internetExplorer11 option would allow opening a site in the Internet Explorer 11 (IE11) desktop application. Following the retirement of IE11 on June 15, 2022, the internetExplorer11 option will no longer open an IE11 window and will instead behave the same as the internetExplorerMode option.
* @param value Value to set for the targetEnvironment property.
*/
public void setTargetEnvironment(@jakarta.annotation.Nullable final BrowserSiteTargetEnvironment value) {
this.backingStore.set("targetEnvironment", value);
}
}