![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.Directory Maven / Gradle / Ivy
package com.microsoft.graph.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 Directory extends Entity implements Parsable {
/**
* Instantiates a new {@link Directory} and sets the default values.
*/
public Directory() {
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 Directory}
*/
@jakarta.annotation.Nonnull
public static Directory createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Directory();
}
/**
* Gets the administrativeUnits property value. Conceptual container for user and group directory objects.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAdministrativeUnits() {
return this.backingStore.get("administrativeUnits");
}
/**
* Gets the attributeSets property value. Group of related custom security attribute definitions.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAttributeSets() {
return this.backingStore.get("attributeSets");
}
/**
* Gets the customSecurityAttributeDefinitions property value. Schema of a custom security attributes (key-value pairs).
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getCustomSecurityAttributeDefinitions() {
return this.backingStore.get("customSecurityAttributeDefinitions");
}
/**
* Gets the deletedItems property value. Recently deleted items. Read-only. Nullable.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDeletedItems() {
return this.backingStore.get("deletedItems");
}
/**
* Gets the deviceLocalCredentials property value. The credentials of the device's local administrator account backed up to Microsoft Entra ID.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getDeviceLocalCredentials() {
return this.backingStore.get("deviceLocalCredentials");
}
/**
* Gets the federationConfigurations property value. Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getFederationConfigurations() {
return this.backingStore.get("federationConfigurations");
}
/**
* 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("administrativeUnits", (n) -> { this.setAdministrativeUnits(n.getCollectionOfObjectValues(AdministrativeUnit::createFromDiscriminatorValue)); });
deserializerMap.put("attributeSets", (n) -> { this.setAttributeSets(n.getCollectionOfObjectValues(AttributeSet::createFromDiscriminatorValue)); });
deserializerMap.put("customSecurityAttributeDefinitions", (n) -> { this.setCustomSecurityAttributeDefinitions(n.getCollectionOfObjectValues(CustomSecurityAttributeDefinition::createFromDiscriminatorValue)); });
deserializerMap.put("deletedItems", (n) -> { this.setDeletedItems(n.getCollectionOfObjectValues(DirectoryObject::createFromDiscriminatorValue)); });
deserializerMap.put("deviceLocalCredentials", (n) -> { this.setDeviceLocalCredentials(n.getCollectionOfObjectValues(DeviceLocalCredentialInfo::createFromDiscriminatorValue)); });
deserializerMap.put("federationConfigurations", (n) -> { this.setFederationConfigurations(n.getCollectionOfObjectValues(IdentityProviderBase::createFromDiscriminatorValue)); });
deserializerMap.put("onPremisesSynchronization", (n) -> { this.setOnPremisesSynchronization(n.getCollectionOfObjectValues(OnPremisesDirectorySynchronization::createFromDiscriminatorValue)); });
deserializerMap.put("subscriptions", (n) -> { this.setSubscriptions(n.getCollectionOfObjectValues(CompanySubscription::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the onPremisesSynchronization property value. A container for on-premises directory synchronization functionalities that are available for the organization.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getOnPremisesSynchronization() {
return this.backingStore.get("onPremisesSynchronization");
}
/**
* Gets the subscriptions property value. List of commercial subscriptions that an organization acquired.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSubscriptions() {
return this.backingStore.get("subscriptions");
}
/**
* 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.writeCollectionOfObjectValues("administrativeUnits", this.getAdministrativeUnits());
writer.writeCollectionOfObjectValues("attributeSets", this.getAttributeSets());
writer.writeCollectionOfObjectValues("customSecurityAttributeDefinitions", this.getCustomSecurityAttributeDefinitions());
writer.writeCollectionOfObjectValues("deletedItems", this.getDeletedItems());
writer.writeCollectionOfObjectValues("deviceLocalCredentials", this.getDeviceLocalCredentials());
writer.writeCollectionOfObjectValues("federationConfigurations", this.getFederationConfigurations());
writer.writeCollectionOfObjectValues("onPremisesSynchronization", this.getOnPremisesSynchronization());
writer.writeCollectionOfObjectValues("subscriptions", this.getSubscriptions());
}
/**
* Sets the administrativeUnits property value. Conceptual container for user and group directory objects.
* @param value Value to set for the administrativeUnits property.
*/
public void setAdministrativeUnits(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("administrativeUnits", value);
}
/**
* Sets the attributeSets property value. Group of related custom security attribute definitions.
* @param value Value to set for the attributeSets property.
*/
public void setAttributeSets(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("attributeSets", value);
}
/**
* Sets the customSecurityAttributeDefinitions property value. Schema of a custom security attributes (key-value pairs).
* @param value Value to set for the customSecurityAttributeDefinitions property.
*/
public void setCustomSecurityAttributeDefinitions(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("customSecurityAttributeDefinitions", value);
}
/**
* Sets the deletedItems property value. Recently deleted items. Read-only. Nullable.
* @param value Value to set for the deletedItems property.
*/
public void setDeletedItems(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("deletedItems", value);
}
/**
* Sets the deviceLocalCredentials property value. The credentials of the device's local administrator account backed up to Microsoft Entra ID.
* @param value Value to set for the deviceLocalCredentials property.
*/
public void setDeviceLocalCredentials(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("deviceLocalCredentials", value);
}
/**
* Sets the federationConfigurations property value. Configure domain federation with organizations whose identity provider (IdP) supports either the SAML or WS-Fed protocol.
* @param value Value to set for the federationConfigurations property.
*/
public void setFederationConfigurations(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("federationConfigurations", value);
}
/**
* Sets the onPremisesSynchronization property value. A container for on-premises directory synchronization functionalities that are available for the organization.
* @param value Value to set for the onPremisesSynchronization property.
*/
public void setOnPremisesSynchronization(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("onPremisesSynchronization", value);
}
/**
* Sets the subscriptions property value. List of commercial subscriptions that an organization acquired.
* @param value Value to set for the subscriptions property.
*/
public void setSubscriptions(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("subscriptions", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy