
com.microsoft.graph.beta.generated.models.MacOSExtensionsConfiguration 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;
/**
* MacOS extensions configuration profile.
*/
@jakarta.annotation.Generated("com.microsoft.kiota")
public class MacOSExtensionsConfiguration extends DeviceConfiguration implements Parsable {
/**
* Instantiates a new {@link MacOSExtensionsConfiguration} and sets the default values.
*/
public MacOSExtensionsConfiguration() {
super();
this.setOdataType("#microsoft.graph.macOSExtensionsConfiguration");
}
/**
* 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 MacOSExtensionsConfiguration}
*/
@jakarta.annotation.Nonnull
public static MacOSExtensionsConfiguration createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new MacOSExtensionsConfiguration();
}
/**
* 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("kernelExtensionAllowedTeamIdentifiers", (n) -> { this.setKernelExtensionAllowedTeamIdentifiers(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("kernelExtensionOverridesAllowed", (n) -> { this.setKernelExtensionOverridesAllowed(n.getBooleanValue()); });
deserializerMap.put("kernelExtensionsAllowed", (n) -> { this.setKernelExtensionsAllowed(n.getCollectionOfObjectValues(MacOSKernelExtension::createFromDiscriminatorValue)); });
deserializerMap.put("systemExtensionsAllowed", (n) -> { this.setSystemExtensionsAllowed(n.getCollectionOfObjectValues(MacOSSystemExtension::createFromDiscriminatorValue)); });
deserializerMap.put("systemExtensionsAllowedTeamIdentifiers", (n) -> { this.setSystemExtensionsAllowedTeamIdentifiers(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("systemExtensionsAllowedTypes", (n) -> { this.setSystemExtensionsAllowedTypes(n.getCollectionOfObjectValues(MacOSSystemExtensionTypeMapping::createFromDiscriminatorValue)); });
deserializerMap.put("systemExtensionsBlockOverride", (n) -> { this.setSystemExtensionsBlockOverride(n.getBooleanValue()); });
return deserializerMap;
}
/**
* Gets the kernelExtensionAllowedTeamIdentifiers property value. All kernel extensions validly signed by the team identifiers in this list will be allowed to load.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getKernelExtensionAllowedTeamIdentifiers() {
return this.backingStore.get("kernelExtensionAllowedTeamIdentifiers");
}
/**
* Gets the kernelExtensionOverridesAllowed property value. If set to true, users can approve additional kernel extensions not explicitly allowed by configurations profiles.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getKernelExtensionOverridesAllowed() {
return this.backingStore.get("kernelExtensionOverridesAllowed");
}
/**
* Gets the kernelExtensionsAllowed property value. A list of kernel extensions that will be allowed to load. . This collection can contain a maximum of 500 elements.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getKernelExtensionsAllowed() {
return this.backingStore.get("kernelExtensionsAllowed");
}
/**
* Gets the systemExtensionsAllowed property value. Gets or sets a list of allowed macOS system extensions. This collection can contain a maximum of 500 elements.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSystemExtensionsAllowed() {
return this.backingStore.get("systemExtensionsAllowed");
}
/**
* Gets the systemExtensionsAllowedTeamIdentifiers property value. Gets or sets a list of allowed team identifiers. Any system extension signed with any of the specified team identifiers will be approved.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSystemExtensionsAllowedTeamIdentifiers() {
return this.backingStore.get("systemExtensionsAllowedTeamIdentifiers");
}
/**
* Gets the systemExtensionsAllowedTypes property value. Gets or sets a list of allowed macOS system extension types. This collection can contain a maximum of 500 elements.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSystemExtensionsAllowedTypes() {
return this.backingStore.get("systemExtensionsAllowedTypes");
}
/**
* Gets the systemExtensionsBlockOverride property value. Gets or sets whether to allow the user to approve additional system extensions not explicitly allowed by configuration profiles.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getSystemExtensionsBlockOverride() {
return this.backingStore.get("systemExtensionsBlockOverride");
}
/**
* 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("kernelExtensionAllowedTeamIdentifiers", this.getKernelExtensionAllowedTeamIdentifiers());
writer.writeBooleanValue("kernelExtensionOverridesAllowed", this.getKernelExtensionOverridesAllowed());
writer.writeCollectionOfObjectValues("kernelExtensionsAllowed", this.getKernelExtensionsAllowed());
writer.writeCollectionOfObjectValues("systemExtensionsAllowed", this.getSystemExtensionsAllowed());
writer.writeCollectionOfPrimitiveValues("systemExtensionsAllowedTeamIdentifiers", this.getSystemExtensionsAllowedTeamIdentifiers());
writer.writeCollectionOfObjectValues("systemExtensionsAllowedTypes", this.getSystemExtensionsAllowedTypes());
writer.writeBooleanValue("systemExtensionsBlockOverride", this.getSystemExtensionsBlockOverride());
}
/**
* Sets the kernelExtensionAllowedTeamIdentifiers property value. All kernel extensions validly signed by the team identifiers in this list will be allowed to load.
* @param value Value to set for the kernelExtensionAllowedTeamIdentifiers property.
*/
public void setKernelExtensionAllowedTeamIdentifiers(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("kernelExtensionAllowedTeamIdentifiers", value);
}
/**
* Sets the kernelExtensionOverridesAllowed property value. If set to true, users can approve additional kernel extensions not explicitly allowed by configurations profiles.
* @param value Value to set for the kernelExtensionOverridesAllowed property.
*/
public void setKernelExtensionOverridesAllowed(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("kernelExtensionOverridesAllowed", value);
}
/**
* Sets the kernelExtensionsAllowed property value. A list of kernel extensions that will be allowed to load. . This collection can contain a maximum of 500 elements.
* @param value Value to set for the kernelExtensionsAllowed property.
*/
public void setKernelExtensionsAllowed(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("kernelExtensionsAllowed", value);
}
/**
* Sets the systemExtensionsAllowed property value. Gets or sets a list of allowed macOS system extensions. This collection can contain a maximum of 500 elements.
* @param value Value to set for the systemExtensionsAllowed property.
*/
public void setSystemExtensionsAllowed(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("systemExtensionsAllowed", value);
}
/**
* Sets the systemExtensionsAllowedTeamIdentifiers property value. Gets or sets a list of allowed team identifiers. Any system extension signed with any of the specified team identifiers will be approved.
* @param value Value to set for the systemExtensionsAllowedTeamIdentifiers property.
*/
public void setSystemExtensionsAllowedTeamIdentifiers(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("systemExtensionsAllowedTeamIdentifiers", value);
}
/**
* Sets the systemExtensionsAllowedTypes property value. Gets or sets a list of allowed macOS system extension types. This collection can contain a maximum of 500 elements.
* @param value Value to set for the systemExtensionsAllowedTypes property.
*/
public void setSystemExtensionsAllowedTypes(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("systemExtensionsAllowedTypes", value);
}
/**
* Sets the systemExtensionsBlockOverride property value. Gets or sets whether to allow the user to approve additional system extensions not explicitly allowed by configuration profiles.
* @param value Value to set for the systemExtensionsBlockOverride property.
*/
public void setSystemExtensionsBlockOverride(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("systemExtensionsBlockOverride", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy