Class PrinterShare

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class PrinterShare extends PrinterBase implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • PrinterShare

      public PrinterShare()
      Instantiates a new PrinterShare and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static PrinterShare 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 PrinterShare
    • getAllowAllUsers

      @Nullable public Boolean getAllowAllUsers()
      Gets the allowAllUsers property value. If true, all users and groups will be granted access to this printer share. This supersedes the allow lists defined by the allowedUsers and allowedGroups navigation properties.
      Returns:
      a Boolean
    • getAllowedGroups

      @Nullable public List<Group> getAllowedGroups()
      Gets the allowedGroups property value. The groups whose users have access to print using the printer.
      Returns:
      a List<Group>
    • getAllowedUsers

      @Nullable public List<User> getAllowedUsers()
      Gets the allowedUsers property value. The users who have access to print using the printer.
      Returns:
      a List<User>
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The DateTimeOffset when the printer share was created. Read-only.
      Returns:
      a OffsetDateTime
    • 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 PrinterBase
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getPrinter

      @Nullable public Printer getPrinter()
      Gets the printer property value. The printer that this printer share is related to.
      Returns:
      a Printer
    • getViewPoint

      @Nullable public PrinterShareViewpoint getViewPoint()
      Gets the viewPoint property value. Additional data for a printer share as viewed by the signed-in user.
      Returns:
      a PrinterShareViewpoint
    • 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 PrinterBase
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAllowAllUsers

      public void setAllowAllUsers(@Nullable Boolean value)
      Sets the allowAllUsers property value. If true, all users and groups will be granted access to this printer share. This supersedes the allow lists defined by the allowedUsers and allowedGroups navigation properties.
      Parameters:
      value - Value to set for the allowAllUsers property.
    • setAllowedGroups

      public void setAllowedGroups(@Nullable List<Group> value)
      Sets the allowedGroups property value. The groups whose users have access to print using the printer.
      Parameters:
      value - Value to set for the allowedGroups property.
    • setAllowedUsers

      public void setAllowedUsers(@Nullable List<User> value)
      Sets the allowedUsers property value. The users who have access to print using the printer.
      Parameters:
      value - Value to set for the allowedUsers property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The DateTimeOffset when the printer share was created. Read-only.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setPrinter

      public void setPrinter(@Nullable Printer value)
      Sets the printer property value. The printer that this printer share is related to.
      Parameters:
      value - Value to set for the printer property.
    • setViewPoint

      public void setViewPoint(@Nullable PrinterShareViewpoint value)
      Sets the viewPoint property value. Additional data for a printer share as viewed by the signed-in user.
      Parameters:
      value - Value to set for the viewPoint property.