Package com.microsoft.graph.models
Class PrinterShare
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.PrinterBase
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PrinterSharecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the allowAllUsers property value.Gets the allowedGroups property value.Gets the allowedUsers property value.Gets the createdDateTime property value.The deserialization information for the current modelGets the printer property value.Gets the viewPoint property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAllowAllUsers(Boolean value) Sets the allowAllUsers property value.voidsetAllowedGroups(List<Group> value) Sets the allowedGroups property value.voidsetAllowedUsers(List<User> value) Sets the allowedUsers property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidsetPrinter(Printer value) Sets the printer property value.voidSets the viewPoint property value.Methods inherited from class com.microsoft.graph.models.PrinterBase
getCapabilities, getDefaults, getDisplayName, getIsAcceptingJobs, getJobs, getLocation, getManufacturer, getModel, getStatus, setCapabilities, setDefaults, setDisplayName, setIsAcceptingJobs, setJobs, setLocation, setManufacturer, setModel, setStatusMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
PrinterShare
public PrinterShare()Instantiates a newPrinterShareand 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
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
Gets the allowedGroups property value. The groups whose users have access to print using the printer. -
getAllowedUsers
Gets the allowedUsers property value. The users who have access to print using the printer. -
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classPrinterBase- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getPrinter
Gets the printer property value. The printer that this printer share is related to.- Returns:
- a
Printer
-
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classPrinterBase- Parameters:
writer- Serialization writer to use to serialize this model
-
setAllowAllUsers
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
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
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
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
Sets the printer property value. The printer that this printer share is related to.- Parameters:
value- Value to set for the printer property.
-