
com.microsoft.graph.beta.generated.models.UnifiedRoleEligibilityScheduleInstance 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 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. Time that the roleEligibilityScheduleInstance will expire.
* @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. Membership type of the assignment. It can either be Inherited, Direct, or Group.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getMemberType() {
return this.backingStore.get("memberType");
}
/**
* Gets the roleEligibilityScheduleId property value. Identifier of the parent roleEligibilitySchedule for this instance.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getRoleEligibilityScheduleId() {
return this.backingStore.get("roleEligibilityScheduleId");
}
/**
* Gets the startDateTime property value. Time that the roleEligibilityScheduleInstance will start.
* @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. Time that the roleEligibilityScheduleInstance will expire.
* @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. Membership type of the assignment. It can either be Inherited, Direct, or Group.
* @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. Identifier of the parent roleEligibilitySchedule for this instance.
* @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. Time that the roleEligibilityScheduleInstance will start.
* @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