com.microsoft.graph.beta.generated.models.MicrosoftApplicationDataAccessSettings 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;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class MicrosoftApplicationDataAccessSettings extends Entity implements Parsable {
/**
* Instantiates a new {@link MicrosoftApplicationDataAccessSettings} and sets the default values.
*/
public MicrosoftApplicationDataAccessSettings() {
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 MicrosoftApplicationDataAccessSettings}
*/
@jakarta.annotation.Nonnull
public static MicrosoftApplicationDataAccessSettings createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MicrosoftApplicationDataAccessSettings();
}
/**
* Gets the disabledForGroup property value. The ID of a Microsoft Entra security group for which the members are allowed to access Microsoft 365 data using only Microsoft 365 apps, but not other Microsoft apps such as Edge. This is only applicable if isEnabledForAllMicrosoftApplications is set to true.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisabledForGroup() {
return this.backingStore.get("disabledForGroup");
}
/**
* 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("disabledForGroup", (n) -> { this.setDisabledForGroup(n.getStringValue()); });
deserializerMap.put("isEnabledForAllMicrosoftApplications", (n) -> { this.setIsEnabledForAllMicrosoftApplications(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the isEnabledForAllMicrosoftApplications property value. When set to true, all users in the organization can access in a Microsoft app any Microsoft 365 data that the user has been authorized to access. The Microsoft app can be a Microsoft 365 app (for example, Excel, Outlook) or non-Microsoft 365 app (for example, Edge). The default is true. It is possible to disable this access for a subset of users in a Microsoft Entra security group, by specifying the group in the disabledForGroup property. When set to false, all users can access authorized Microsoft 365 data only in a Microsoft 365 app.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsEnabledForAllMicrosoftApplications() {
return this.backingStore.get("isEnabledForAllMicrosoftApplications");
}
/**
* 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.writeStringValue("disabledForGroup", this.getDisabledForGroup());
writer.writeBooleanValue("isEnabledForAllMicrosoftApplications", this.getIsEnabledForAllMicrosoftApplications());
}
/**
* Sets the disabledForGroup property value. The ID of a Microsoft Entra security group for which the members are allowed to access Microsoft 365 data using only Microsoft 365 apps, but not other Microsoft apps such as Edge. This is only applicable if isEnabledForAllMicrosoftApplications is set to true.
* @param value Value to set for the disabledForGroup property.
*/
public void setDisabledForGroup(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("disabledForGroup", value);
}
/**
* Sets the isEnabledForAllMicrosoftApplications property value. When set to true, all users in the organization can access in a Microsoft app any Microsoft 365 data that the user has been authorized to access. The Microsoft app can be a Microsoft 365 app (for example, Excel, Outlook) or non-Microsoft 365 app (for example, Edge). The default is true. It is possible to disable this access for a subset of users in a Microsoft Entra security group, by specifying the group in the disabledForGroup property. When set to false, all users can access authorized Microsoft 365 data only in a Microsoft 365 app.
* @param value Value to set for the isEnabledForAllMicrosoftApplications property.
*/
public void setIsEnabledForAllMicrosoftApplications(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isEnabledForAllMicrosoftApplications", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy