com.microsoft.graph.beta.generated.models.AccessPackage 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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AccessPackage extends Entity implements Parsable {
/**
* Instantiates a new {@link AccessPackage} and sets the default values.
*/
public AccessPackage() {
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 AccessPackage}
*/
@jakarta.annotation.Nonnull
public static AccessPackage createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AccessPackage();
}
/**
* Gets the accessPackageAssignmentPolicies property value. Read-only. Nullable. Supports $expand.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAccessPackageAssignmentPolicies() {
return this.backingStore.get("accessPackageAssignmentPolicies");
}
/**
* Gets the accessPackageCatalog property value. The accessPackageCatalog property
* @return a {@link AccessPackageCatalog}
*/
@jakarta.annotation.Nullable
public AccessPackageCatalog getAccessPackageCatalog() {
return this.backingStore.get("accessPackageCatalog");
}
/**
* Gets the accessPackageResourceRoleScopes property value. The accessPackageResourceRoleScopes property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAccessPackageResourceRoleScopes() {
return this.backingStore.get("accessPackageResourceRoleScopes");
}
/**
* Gets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getAccessPackagesIncompatibleWith() {
return this.backingStore.get("accessPackagesIncompatibleWith");
}
/**
* Gets the catalogId property value. Identifier of the access package catalog referencing this access package. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCatalogId() {
return this.backingStore.get("catalogId");
}
/**
* Gets the createdBy property value. The userPrincipalName of the user or identity of the subject who created this resource. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCreatedBy() {
return this.backingStore.get("createdBy");
}
/**
* Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getCreatedDateTime() {
return this.backingStore.get("createdDateTime");
}
/**
* Gets the description property value. The description of the access package.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDescription() {
return this.backingStore.get("description");
}
/**
* Gets the displayName property value. The display name of the access package. Supports $filter (eq, contains).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getDisplayName() {
return this.backingStore.get("displayName");
}
/**
* 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("accessPackageAssignmentPolicies", (n) -> { this.setAccessPackageAssignmentPolicies(n.getCollectionOfObjectValues(AccessPackageAssignmentPolicy::createFromDiscriminatorValue)); });
deserializerMap.put("accessPackageCatalog", (n) -> { this.setAccessPackageCatalog(n.getObjectValue(AccessPackageCatalog::createFromDiscriminatorValue)); });
deserializerMap.put("accessPackageResourceRoleScopes", (n) -> { this.setAccessPackageResourceRoleScopes(n.getCollectionOfObjectValues(AccessPackageResourceRoleScope::createFromDiscriminatorValue)); });
deserializerMap.put("accessPackagesIncompatibleWith", (n) -> { this.setAccessPackagesIncompatibleWith(n.getCollectionOfObjectValues(AccessPackage::createFromDiscriminatorValue)); });
deserializerMap.put("catalogId", (n) -> { this.setCatalogId(n.getStringValue()); });
deserializerMap.put("createdBy", (n) -> { this.setCreatedBy(n.getStringValue()); });
deserializerMap.put("createdDateTime", (n) -> { this.setCreatedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("description", (n) -> { this.setDescription(n.getStringValue()); });
deserializerMap.put("displayName", (n) -> { this.setDisplayName(n.getStringValue()); });
deserializerMap.put("incompatibleAccessPackages", (n) -> { this.setIncompatibleAccessPackages(n.getCollectionOfObjectValues(AccessPackage::createFromDiscriminatorValue)); });
deserializerMap.put("incompatibleGroups", (n) -> { this.setIncompatibleGroups(n.getCollectionOfObjectValues(Group::createFromDiscriminatorValue)); });
deserializerMap.put("isHidden", (n) -> { this.setIsHidden(n.getBooleanValue()); });
deserializerMap.put("isRoleScopesVisible", (n) -> { this.setIsRoleScopesVisible(n.getBooleanValue()); });
deserializerMap.put("modifiedBy", (n) -> { this.setModifiedBy(n.getStringValue()); });
deserializerMap.put("modifiedDateTime", (n) -> { this.setModifiedDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("uniqueName", (n) -> { this.setUniqueName(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getIncompatibleAccessPackages() {
return this.backingStore.get("incompatibleAccessPackages");
}
/**
* Gets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getIncompatibleGroups() {
return this.backingStore.get("incompatibleGroups");
}
/**
* Gets the isHidden property value. Indicates whether the access package is hidden from the requestor.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsHidden() {
return this.backingStore.get("isHidden");
}
/**
* Gets the isRoleScopesVisible property value. Indicates whether role scopes are visible.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsRoleScopesVisible() {
return this.backingStore.get("isRoleScopesVisible");
}
/**
* Gets the modifiedBy property value. The userPrincipalName of the user who last modified this resource. Read-only.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getModifiedBy() {
return this.backingStore.get("modifiedBy");
}
/**
* Gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getModifiedDateTime() {
return this.backingStore.get("modifiedDateTime");
}
/**
* Gets the uniqueName property value. The uniqueName property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getUniqueName() {
return this.backingStore.get("uniqueName");
}
/**
* 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("accessPackageAssignmentPolicies", this.getAccessPackageAssignmentPolicies());
writer.writeObjectValue("accessPackageCatalog", this.getAccessPackageCatalog());
writer.writeCollectionOfObjectValues("accessPackageResourceRoleScopes", this.getAccessPackageResourceRoleScopes());
writer.writeCollectionOfObjectValues("accessPackagesIncompatibleWith", this.getAccessPackagesIncompatibleWith());
writer.writeStringValue("catalogId", this.getCatalogId());
writer.writeStringValue("createdBy", this.getCreatedBy());
writer.writeOffsetDateTimeValue("createdDateTime", this.getCreatedDateTime());
writer.writeStringValue("description", this.getDescription());
writer.writeStringValue("displayName", this.getDisplayName());
writer.writeCollectionOfObjectValues("incompatibleAccessPackages", this.getIncompatibleAccessPackages());
writer.writeCollectionOfObjectValues("incompatibleGroups", this.getIncompatibleGroups());
writer.writeBooleanValue("isHidden", this.getIsHidden());
writer.writeBooleanValue("isRoleScopesVisible", this.getIsRoleScopesVisible());
writer.writeStringValue("modifiedBy", this.getModifiedBy());
writer.writeOffsetDateTimeValue("modifiedDateTime", this.getModifiedDateTime());
writer.writeStringValue("uniqueName", this.getUniqueName());
}
/**
* Sets the accessPackageAssignmentPolicies property value. Read-only. Nullable. Supports $expand.
* @param value Value to set for the accessPackageAssignmentPolicies property.
*/
public void setAccessPackageAssignmentPolicies(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("accessPackageAssignmentPolicies", value);
}
/**
* Sets the accessPackageCatalog property value. The accessPackageCatalog property
* @param value Value to set for the accessPackageCatalog property.
*/
public void setAccessPackageCatalog(@jakarta.annotation.Nullable final AccessPackageCatalog value) {
this.backingStore.set("accessPackageCatalog", value);
}
/**
* Sets the accessPackageResourceRoleScopes property value. The accessPackageResourceRoleScopes property
* @param value Value to set for the accessPackageResourceRoleScopes property.
*/
public void setAccessPackageResourceRoleScopes(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("accessPackageResourceRoleScopes", value);
}
/**
* Sets the accessPackagesIncompatibleWith property value. The access packages that are incompatible with this package. Read-only.
* @param value Value to set for the accessPackagesIncompatibleWith property.
*/
public void setAccessPackagesIncompatibleWith(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("accessPackagesIncompatibleWith", value);
}
/**
* Sets the catalogId property value. Identifier of the access package catalog referencing this access package. Read-only.
* @param value Value to set for the catalogId property.
*/
public void setCatalogId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("catalogId", value);
}
/**
* Sets the createdBy property value. The userPrincipalName of the user or identity of the subject who created this resource. Read-only.
* @param value Value to set for the createdBy property.
*/
public void setCreatedBy(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("createdBy", value);
}
/**
* Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
* @param value Value to set for the createdDateTime property.
*/
public void setCreatedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("createdDateTime", value);
}
/**
* Sets the description property value. The description of the access package.
* @param value Value to set for the description property.
*/
public void setDescription(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("description", value);
}
/**
* Sets the displayName property value. The display name of the access package. Supports $filter (eq, contains).
* @param value Value to set for the displayName property.
*/
public void setDisplayName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("displayName", value);
}
/**
* Sets the incompatibleAccessPackages property value. The access packages whose assigned users are ineligible to be assigned this access package.
* @param value Value to set for the incompatibleAccessPackages property.
*/
public void setIncompatibleAccessPackages(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("incompatibleAccessPackages", value);
}
/**
* Sets the incompatibleGroups property value. The groups whose members are ineligible to be assigned this access package.
* @param value Value to set for the incompatibleGroups property.
*/
public void setIncompatibleGroups(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("incompatibleGroups", value);
}
/**
* Sets the isHidden property value. Indicates whether the access package is hidden from the requestor.
* @param value Value to set for the isHidden property.
*/
public void setIsHidden(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isHidden", value);
}
/**
* Sets the isRoleScopesVisible property value. Indicates whether role scopes are visible.
* @param value Value to set for the isRoleScopesVisible property.
*/
public void setIsRoleScopesVisible(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isRoleScopesVisible", value);
}
/**
* Sets the modifiedBy property value. The userPrincipalName of the user who last modified this resource. Read-only.
* @param value Value to set for the modifiedBy property.
*/
public void setModifiedBy(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("modifiedBy", value);
}
/**
* Sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
* @param value Value to set for the modifiedDateTime property.
*/
public void setModifiedDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("modifiedDateTime", value);
}
/**
* Sets the uniqueName property value. The uniqueName property
* @param value Value to set for the uniqueName property.
*/
public void setUniqueName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("uniqueName", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy