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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class LandingPage extends Entity implements Parsable {
/**
* Instantiates a new {@link LandingPage} and sets the default values.
*/
public LandingPage() {
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 LandingPage}
*/
@jakarta.annotation.Nonnull
public static LandingPage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new LandingPage();
}
/**
* Gets the createdBy property value. Identity of the user who created the landing page.
* @return a {@link EmailIdentity}
*/
@jakarta.annotation.Nullable
public EmailIdentity getCreatedBy() {
return this.backingStore.get("createdBy");
}
/**
* Gets the createdDateTime property value. Date and time when the landing page was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* Gets the description property value. Description of the landing page as defined by the user.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the details property value. The detail information for a landing page associated with a simulation during its creation.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDetails() {
return this.backingStore.get("details");
}
/**
* Gets the displayName property value. The display name of the landing page.
* @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("createdBy", (n) -> { this.setCreatedBy(n.getObjectValue(EmailIdentity::createFromDiscriminatorValue)); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("details", (n) -> { this.setDetails(n.getCollectionOfObjectValues(LandingPageDetail::createFromDiscriminatorValue)); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("lastModifiedBy", (n) -> { this.setLastModifiedBy(n.getObjectValue(EmailIdentity::createFromDiscriminatorValue)); });
deserializerMap.put("lastModifiedDateTime", (n) -> { this.setLastModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("locale", (n) -> { this.setLocale(n.getStringValue()); });
deserializerMap.put("source", (n) -> { this.setSource(n.getEnumValue(SimulationContentSource::forValue)); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(SimulationContentStatus::forValue)); });
deserializerMap.put("supportedLocales", (n) -> { this.setSupportedLocales(n.getCollectionOfPrimitiveValues(String.class)); });
return deserializerMap;
}
/**
* Gets the lastModifiedBy property value. Email identity of the user who last modified the landing page.
* @return a {@link EmailIdentity}
*/
@jakarta.annotation.Nullable
public EmailIdentity getLastModifiedBy() {
return this.backingStore.get("lastModifiedBy");
}
/**
* Gets the lastModifiedDateTime property value. Date and time when the landing page was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getLastModifiedDateTime() {
return this.backingStore.get("lastModifiedDateTime");
}
/**
* Gets the locale property value. Content locale.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLocale() {
return this.backingStore.get("locale");
}
/**
* Gets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue.
* @return a {@link SimulationContentSource}
*/
@jakarta.annotation.Nullable
public SimulationContentSource getSource() {
return this.backingStore.get("source");
}
/**
* Gets the status property value. The status of the simulation. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue.
* @return a {@link SimulationContentStatus}
*/
@jakarta.annotation.Nullable
public SimulationContentStatus getStatus() {
return this.backingStore.get("status");
}
/**
* Gets the supportedLocales property value. Supported locales.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSupportedLocales() {
return this.backingStore.get("supportedLocales");
}
/**
* 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.writeObjectValue("createdBy", this.getCreatedBy());
writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeStringValue("description", this.getDescription());
writer.writeCollectionOfObjectValues("details", this.getDetails());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeObjectValue("lastModifiedBy", this.getLastModifiedBy());
writer.writeOffsetDateTimeValue("lastModifiedDateTime", this.getLastModifiedDateTime());
writer.writeStringValue("locale", this.getLocale());
writer.writeEnumValue("source", this.getSource());
writer.writeEnumValue("status", this.getStatus());
writer.writeCollectionOfPrimitiveValues("supportedLocales", this.getSupportedLocales());
}
/**
* Sets the createdBy property value. Identity of the user who created the landing page.
* @param value Value to set for the createdBy property.
*/
public void setCreatedBy(@jakarta.annotation.Nullable final EmailIdentity value) {
this.backingStore.set("createdBy", value);
}
/**
* Sets the createdDateTime property value. Date and time when the landing page was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @param value Value to set for the createdDateTime property.
*/
public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTime", value);
}
/**
* Sets the description property value. Description of the landing page as defined by the user.
* @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 details property value. The detail information for a landing page associated with a simulation during its creation.
* @param value Value to set for the details property.
*/
public void setDetails(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("details", value);
}
/**
* Sets the displayName property value. The display name of the landing page.
* @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. Email identity of the user who last modified the landing page.
* @param value Value to set for the lastModifiedBy property.
*/
public void setLastModifiedBy(@jakarta.annotation.Nullable final EmailIdentity value) {
this.backingStore.set("lastModifiedBy", value);
}
/**
* Sets the lastModifiedDateTime property value. Date and time when the landing page was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
* @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 locale property value. Content locale.
* @param value Value to set for the locale property.
*/
public void setLocale(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("locale", value);
}
/**
* Sets the source property value. The source of the content. Possible values are: unknown, global, tenant, unknownFutureValue.
* @param value Value to set for the source property.
*/
public void setSource(@jakarta.annotation.Nullable final SimulationContentSource value) {
this.backingStore.set("source", value);
}
/**
* Sets the status property value. The status of the simulation. Possible values are: unknown, draft, ready, archive, delete, unknownFutureValue.
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final SimulationContentStatus value) {
this.backingStore.set("status", value);
}
/**
* Sets the supportedLocales property value. Supported locales.
* @param value Value to set for the supportedLocales property.
*/
public void setSupportedLocales(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("supportedLocales", value);
}
}