com.microsoft.graph.generated.models.LandingPageDetail Maven / Gradle / Ivy
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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class LandingPageDetail extends Entity implements Parsable {
/**
* Instantiates a new {@link LandingPageDetail} and sets the default values.
*/
public LandingPageDetail() {
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 LandingPageDetail}
*/
@jakarta.annotation.Nonnull
public static LandingPageDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new LandingPageDetail();
}
/**
* Gets the content property value. Landing page detail content.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getContent() {
return this.backingStore.get("content");
}
/**
* 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("content", (n) -> { this.setContent(n.getStringValue()); });
deserializerMap.put("isDefaultLangauge", (n) -> { this.setIsDefaultLangauge(n.getBooleanValue()); });
deserializerMap.put("language", (n) -> { this.setLanguage(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the isDefaultLangauge property value. Indicates whether this language detail is default for the landing page.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsDefaultLangauge() {
return this.backingStore.get("isDefaultLangauge");
}
/**
* Gets the language property value. The content language for the landing page.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getLanguage() {
return this.backingStore.get("language");
}
/**
* 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("content", this.getContent());
writer.writeBooleanValue("isDefaultLangauge", this.getIsDefaultLangauge());
writer.writeStringValue("language", this.getLanguage());
}
/**
* Sets the content property value. Landing page detail content.
* @param value Value to set for the content property.
*/
public void setContent(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("content", value);
}
/**
* Sets the isDefaultLangauge property value. Indicates whether this language detail is default for the landing page.
* @param value Value to set for the isDefaultLangauge property.
*/
public void setIsDefaultLangauge(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isDefaultLangauge", value);
}
/**
* Sets the language property value. The content language for the landing page.
* @param value Value to set for the language property.
*/
public void setLanguage(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("language", value);
}
}