![JAR search and dependency download from the Maven repository](/logo.png)
com.microsoft.graph.generated.models.UnifiedRoleEligibilityScheduleInstance 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.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class UnifiedRoleEligibilityScheduleInstance extends UnifiedRoleScheduleInstanceBase implements Parsable {
/**
* Instantiates a new {@link UnifiedRoleEligibilityScheduleInstance} and sets the default values.
*/
public UnifiedRoleEligibilityScheduleInstance() {
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 UnifiedRoleEligibilityScheduleInstance}
*/
@jakarta.annotation.Nonnull
public static UnifiedRoleEligibilityScheduleInstance createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new UnifiedRoleEligibilityScheduleInstance();
}
/**
* 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("endDateTime", (n) -> { this.setEndDateTime(n.getOffsetDateTimeValue()); });
deserializerMap.put("memberType", (n) -> { this.setMemberType(n.getStringValue()); });
deserializerMap.put("roleEligibilityScheduleId", (n) -> { this.setRoleEligibilityScheduleId(n.getStringValue()); });
deserializerMap.put("startDateTime", (n) -> { this.setStartDateTime(n.getOffsetDateTimeValue()); });
return deserializerMap;
}
/**
* Gets the memberType property value. How the role eligibility is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleEligibilitySchedule 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 roleEligibilityScheduleId property value. The identifier of the unifiedRoleEligibilitySchedule object from which this instance was created. Supports $filter (eq, ne).
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRoleEligibilityScheduleId() {
return this.backingStore.get("roleEligibilityScheduleId");
}
/**
* 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.writeOffsetDateTimeValue("endDateTime", this.getEndDateTime());
writer.writeStringValue("memberType", this.getMemberType());
writer.writeStringValue("roleEligibilityScheduleId", this.getRoleEligibilityScheduleId());
writer.writeOffsetDateTimeValue("startDateTime", this.getStartDateTime());
}
/**
* 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 role eligibility is inherited. It can either be Inherited, Direct, or Group. It can further imply whether the unifiedRoleEligibilitySchedule 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 roleEligibilityScheduleId property value. The identifier of the unifiedRoleEligibilitySchedule object from which this instance was created. Supports $filter (eq, ne).
* @param value Value to set for the roleEligibilityScheduleId property.
*/
public void setRoleEligibilityScheduleId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("roleEligibilityScheduleId", 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