com.microsoft.graph.beta.generated.models.UnifiedRoleAssignmentScheduleInstance 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 UnifiedRoleAssignmentScheduleInstance extends UnifiedRoleScheduleInstanceBase implements Parsable {
/**
* Instantiates a new {@link UnifiedRoleAssignmentScheduleInstance} and sets the default values.
*/
public UnifiedRoleAssignmentScheduleInstance() {
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 UnifiedRoleAssignmentScheduleInstance}
*/
@jakarta.annotation.Nonnull
public static UnifiedRoleAssignmentScheduleInstance createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UnifiedRoleAssignmentScheduleInstance();
}
/**
* Gets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand.
* @return a {@link UnifiedRoleEligibilityScheduleInstance}
*/
@jakarta.annotation.Nullable
public UnifiedRoleEligibilityScheduleInstance getActivatedUsing() {
return this.backingStore.get("activatedUsing");
}
/**
* Gets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getAssignmentType() {
return this.backingStore.get("assignmentType");
}
/**
* Gets the endDateTime property value. The end date of the schedule instance.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getEndDateTime() {
return this.backingStore.get("endDateTime");
}
/**
* 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("activatedUsing", (n) -> { this.setActivatedUsing(n.getObjectValue(UnifiedRoleEligibilityScheduleInstance::createFromDiscriminatorValue)); });
deserializerMap.put("assignmentType", (n) -> { this.setAssignmentType(n.getStringValue()); });
deserializerMap.put("endDateTime", (n) -> { this.setEndDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("memberType", (n) -> { this.setMemberType(n.getStringValue()); });
deserializerMap.put("roleAssignmentOriginId", (n) -> { this.setRoleAssignmentOriginId(n.getStringValue()); });
deserializerMap.put("roleAssignmentScheduleId", (n) -> { this.setRoleAssignmentScheduleId(n.getStringValue()); });
deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getOffsetDateTimeValue()); });
return deserializerMap;
}
/**
* Gets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMemberType() {
return this.backingStore.get("memberType");
}
/**
* Gets the roleAssignmentOriginId property value. The identifier of the role assignment in Microsoft Entra ID.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRoleAssignmentOriginId() {
return this.backingStore.get("roleAssignmentOriginId");
}
/**
* Gets the roleAssignmentScheduleId property value. The identifier of the unifiedRoleAssignmentSchedule object from which this instance was created.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRoleAssignmentScheduleId() {
return this.backingStore.get("roleAssignmentScheduleId");
}
/**
* Gets the startDateTime property value. When this instance starts.
* @return a {@link OffsetDateTime}
*/
@jakarta.annotation.Nullable
public OffsetDateTime getStartDateTime() {
return this.backingStore.get("startDateTime");
}
/**
* 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.writeObjectValue("activatedUsing", this.getActivatedUsing());
writer.writeStringValue("assignmentType", this.getAssignmentType());
writer.writeOffsetDateTimeValue("endDateTime", this.getEndDateTime());
writer.writeStringValue("memberType", this.getMemberType());
writer.writeStringValue("roleAssignmentOriginId", this.getRoleAssignmentOriginId());
writer.writeStringValue("roleAssignmentScheduleId", this.getRoleAssignmentScheduleId());
writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime());
}
/**
* Sets the activatedUsing property value. If the request is from an eligible administrator to activate a role, this parameter shows the related eligible assignment for that activation. Otherwise, it's null. Supports $expand and $select nested in $expand.
* @param value Value to set for the activatedUsing property.
*/
public void setActivatedUsing(@jakarta.annotation.Nullable final UnifiedRoleEligibilityScheduleInstance value) {
this.backingStore.set("activatedUsing", value);
}
/**
* Sets the assignmentType property value. The type of the assignment that can either be Assigned or Activated. Supports $filter (eq, ne).
* @param value Value to set for the assignmentType property.
*/
public void setAssignmentType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("assignmentType", value);
}
/**
* Sets the endDateTime property value. The end date of the schedule instance.
* @param value Value to set for the endDateTime property.
*/
public void setEndDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("endDateTime", value);
}
/**
* Sets the memberType property value. How the assignment is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleAssignmentSchedule can be managed by the caller. Supports $filter (eq, ne).
* @param value Value to set for the memberType property.
*/
public void setMemberType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("memberType", value);
}
/**
* Sets the roleAssignmentOriginId property value. The identifier of the role assignment in Microsoft Entra ID.
* @param value Value to set for the roleAssignmentOriginId property.
*/
public void setRoleAssignmentOriginId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("roleAssignmentOriginId", value);
}
/**
* Sets the roleAssignmentScheduleId property value. The identifier of the unifiedRoleAssignmentSchedule object from which this instance was created.
* @param value Value to set for the roleAssignmentScheduleId property.
*/
public void setRoleAssignmentScheduleId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("roleAssignmentScheduleId", value);
}
/**
* Sets the startDateTime property value. When this instance starts.
* @param value Value to set for the startDateTime property.
*/
public void setStartDateTime(@jakarta.annotation.Nullable final OffsetDateTime value) {
this.backingStore.set("startDateTime", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy