Class 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
  • Constructor Details

    • SitePage

      public SitePage()
      Instantiates a new SitePage and 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

      @Nullable public CanvasLayout 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:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class BaseSitePage
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getPromotionKind

      @Nullable public PagePromotionType 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

      @Nullable public ReactionsFacet getReactions()
      Gets the reactions property value. Reactions information for the page.
      Returns:
      a ReactionsFacet
    • getShowComments

      @Nullable public Boolean getShowComments()
      Gets the showComments property value. Determines whether or not to show comments at the bottom of the page.
      Returns:
      a Boolean
    • getShowRecommendedPages

      @Nullable public 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

      @Nullable public String getThumbnailWebUrl()
      Gets the thumbnailWebUrl property value. Url of the sitePage's thumbnail image
      Returns:
      a String
    • getTitleArea

      @Nullable public TitleArea getTitleArea()
      Gets the titleArea property value. Title area on the SharePoint page.
      Returns:
      a TitleArea
    • getWebParts

      @Nullable public List<WebPart> getWebParts()
      Gets the webParts property value. Collection of webparts on the SharePoint page.
      Returns:
      a List<WebPart>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class BaseSitePage
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setCanvasLayout

      public void setCanvasLayout(@Nullable CanvasLayout value)
      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

      public void setPromotionKind(@Nullable PagePromotionType value)
      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

      public void setReactions(@Nullable ReactionsFacet value)
      Sets the reactions property value. Reactions information for the page.
      Parameters:
      value - Value to set for the reactions property.
    • setShowComments

      public void setShowComments(@Nullable Boolean value)
      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

      public void setShowRecommendedPages(@Nullable Boolean value)
      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

      public void setThumbnailWebUrl(@Nullable String value)
      Sets the thumbnailWebUrl property value. Url of the sitePage's thumbnail image
      Parameters:
      value - Value to set for the thumbnailWebUrl property.
    • setTitleArea

      public void setTitleArea(@Nullable TitleArea value)
      Sets the titleArea property value. Title area on the SharePoint page.
      Parameters:
      value - Value to set for the titleArea property.
    • setWebParts

      public void setWebParts(@Nullable List<WebPart> value)
      Sets the webParts property value. Collection of webparts on the SharePoint page.
      Parameters:
      value - Value to set for the webParts property.