com.microsoft.graph.beta.generated.models.WindowsAssignedAccessProfile Maven / Gradle / Ivy
package com.microsoft.graph.beta.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;
/**
* Assigned Access profile for Windows.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class WindowsAssignedAccessProfile extends Entity implements Parsable {
/**
* Instantiates a new {@link WindowsAssignedAccessProfile} and sets the default values.
*/
public WindowsAssignedAccessProfile() {
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 WindowsAssignedAccessProfile}
*/
@jakarta.annotation.Nonnull
public static WindowsAssignedAccessProfile createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new WindowsAssignedAccessProfile();
}
/**
* Gets the appUserModelIds property value. These are the only Windows Store Apps that will be available to launch from the Start menu.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAppUserModelIds() {
return this.backingStore.get("appUserModelIds");
}
/**
* Gets the desktopAppPaths property value. These are the paths of the Desktop Apps that will be available on the Start menu and the only apps the user will be able to launch.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDesktopAppPaths() {
return this.backingStore.get("desktopAppPaths");
}
/**
* 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("appUserModelIds", (n) -> { this.setAppUserModelIds(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("desktopAppPaths", (n) -> { this.setDesktopAppPaths(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("profileName", (n) -> { this.setProfileName(n.getStringValue()); });
deserializerMap.put("showTaskBar", (n) -> { this.setShowTaskBar(n.getBooleanValue()); });
deserializerMap.put("startMenuLayoutXml", (n) -> { this.setStartMenuLayoutXml(n.getByteArrayValue()); });
deserializerMap.put("userAccounts", (n) -> { this.setUserAccounts(n.getCollectionOfPrimitiveValues(String.class)); });
return deserializerMap;
}
/**
* Gets the profileName property value. This is a friendly nameused to identify a group of applications, the layout of these apps on the start menu and the users to whom this kiosk configuration is assigned.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getProfileName() {
return this.backingStore.get("profileName");
}
/**
* Gets the showTaskBar property value. This setting allows the admin to specify whether the Task Bar is shown or not.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getShowTaskBar() {
return this.backingStore.get("showTaskBar");
}
/**
* Gets the startMenuLayoutXml property value. Allows admins to override the default Start layout and prevents the user from changing it.The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in Binary format.
* @return a {@link byte[]}
*/
@jakarta.annotation.Nullable
public byte[] getStartMenuLayoutXml() {
return this.backingStore.get("startMenuLayoutXml");
}
/**
* Gets the userAccounts property value. The user accounts that will be locked to this kiosk configuration.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getUserAccounts() {
return this.backingStore.get("userAccounts");
}
/**
* 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.writeCollectionOfPrimitiveValues("appUserModelIds", this.getAppUserModelIds());
writer.writeCollectionOfPrimitiveValues("desktopAppPaths", this.getDesktopAppPaths());
writer.writeStringValue("profileName", this.getProfileName());
writer.writeBooleanValue("showTaskBar", this.getShowTaskBar());
writer.writeByteArrayValue("startMenuLayoutXml", this.getStartMenuLayoutXml());
writer.writeCollectionOfPrimitiveValues("userAccounts", this.getUserAccounts());
}
/**
* Sets the appUserModelIds property value. These are the only Windows Store Apps that will be available to launch from the Start menu.
* @param value Value to set for the appUserModelIds property.
*/
public void setAppUserModelIds(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("appUserModelIds", value);
}
/**
* Sets the desktopAppPaths property value. These are the paths of the Desktop Apps that will be available on the Start menu and the only apps the user will be able to launch.
* @param value Value to set for the desktopAppPaths property.
*/
public void setDesktopAppPaths(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("desktopAppPaths", value);
}
/**
* Sets the profileName property value. This is a friendly nameused to identify a group of applications, the layout of these apps on the start menu and the users to whom this kiosk configuration is assigned.
* @param value Value to set for the profileName property.
*/
public void setProfileName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("profileName", value);
}
/**
* Sets the showTaskBar property value. This setting allows the admin to specify whether the Task Bar is shown or not.
* @param value Value to set for the showTaskBar property.
*/
public void setShowTaskBar(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("showTaskBar", value);
}
/**
* Sets the startMenuLayoutXml property value. Allows admins to override the default Start layout and prevents the user from changing it.The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in Binary format.
* @param value Value to set for the startMenuLayoutXml property.
*/
public void setStartMenuLayoutXml(@jakarta.annotation.Nullable final byte[] value) {
this.backingStore.set("startMenuLayoutXml", value);
}
/**
* Sets the userAccounts property value. The user accounts that will be locked to this kiosk configuration.
* @param value Value to set for the userAccounts property.
*/
public void setUserAccounts(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("userAccounts", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy