Package com.microsoft.graph.models
Class SitePage
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.BaseItem
com.microsoft.graph.models.BaseSitePage
com.microsoft.graph.models.SitePage
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class SitePage
extends BaseSitePage
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SitePagecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the canvasLayout property value.The deserialization information for the current modelGets the promotionKind property value.Gets the reactions property value.Gets the showComments property value.Gets the showRecommendedPages property value.Gets the thumbnailWebUrl property value.Gets the titleArea property value.Gets the webParts property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetCanvasLayout(CanvasLayout value) Sets the canvasLayout property value.voidSets the promotionKind property value.voidsetReactions(ReactionsFacet value) Sets the reactions property value.voidsetShowComments(Boolean value) Sets the showComments property value.voidsetShowRecommendedPages(Boolean value) Sets the showRecommendedPages property value.voidsetThumbnailWebUrl(String value) Sets the thumbnailWebUrl property value.voidsetTitleArea(TitleArea value) Sets the titleArea property value.voidsetWebParts(List<WebPart> value) Sets the webParts property value.Methods inherited from class com.microsoft.graph.models.BaseSitePage
getPageLayout, getPublishingState, getTitle, setPageLayout, setPublishingState, setTitleMethods inherited from class com.microsoft.graph.models.BaseItem
getCreatedBy, getCreatedByUser, getCreatedDateTime, getDescription, getETag, getLastModifiedBy, getLastModifiedByUser, getLastModifiedDateTime, getName, getParentReference, getWebUrl, setCreatedBy, setCreatedByUser, setCreatedDateTime, setDescription, setETag, setLastModifiedBy, setLastModifiedByUser, setLastModifiedDateTime, setName, setParentReference, setWebUrlMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
SitePage
public SitePage()Instantiates a newSitePageand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static SitePage createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
SitePage
-
getCanvasLayout
Gets the canvasLayout property value. Indicates the layout of the content in a given SharePoint page, including horizontal sections and vertical sections.- Returns:
- a
CanvasLayout
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classBaseSitePage- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getPromotionKind
Gets the promotionKind property value. Indicates the promotion kind of the sitePage. The possible values are: microsoftReserved, page, newsPost, unknownFutureValue.- Returns:
- a
PagePromotionType
-
getReactions
Gets the reactions property value. Reactions information for the page.- Returns:
- a
ReactionsFacet
-
getShowComments
Gets the showComments property value. Determines whether or not to show comments at the bottom of the page.- Returns:
- a
Boolean
-
getShowRecommendedPages
Gets the showRecommendedPages property value. Determines whether or not to show recommended pages at the bottom of the page.- Returns:
- a
Boolean
-
getThumbnailWebUrl
Gets the thumbnailWebUrl property value. Url of the sitePage's thumbnail image- Returns:
- a
String
-
getTitleArea
Gets the titleArea property value. Title area on the SharePoint page.- Returns:
- a
TitleArea
-
getWebParts
Gets the webParts property value. Collection of webparts on the SharePoint page. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classBaseSitePage- Parameters:
writer- Serialization writer to use to serialize this model
-
setCanvasLayout
Sets the canvasLayout property value. Indicates the layout of the content in a given SharePoint page, including horizontal sections and vertical sections.- Parameters:
value- Value to set for the canvasLayout property.
-
setPromotionKind
Sets the promotionKind property value. Indicates the promotion kind of the sitePage. The possible values are: microsoftReserved, page, newsPost, unknownFutureValue.- Parameters:
value- Value to set for the promotionKind property.
-
setReactions
Sets the reactions property value. Reactions information for the page.- Parameters:
value- Value to set for the reactions property.
-
setShowComments
Sets the showComments property value. Determines whether or not to show comments at the bottom of the page.- Parameters:
value- Value to set for the showComments property.
-
setShowRecommendedPages
Sets the showRecommendedPages property value. Determines whether or not to show recommended pages at the bottom of the page.- Parameters:
value- Value to set for the showRecommendedPages property.
-
setThumbnailWebUrl
Sets the thumbnailWebUrl property value. Url of the sitePage's thumbnail image- Parameters:
value- Value to set for the thumbnailWebUrl property.
-
setTitleArea
Sets the titleArea property value. Title area on the SharePoint page.- Parameters:
value- Value to set for the titleArea property.
-
setWebParts
Sets the webParts property value. Collection of webparts on the SharePoint page.- Parameters:
value- Value to set for the webParts property.
-