Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
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 Schedule extends Entity implements Parsable {
/**
* Instantiates a new {@link Schedule} and sets the default values.
*/
public Schedule() {
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 Schedule}
*/
@jakarta.annotation.Nonnull
public static Schedule createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new Schedule();
}
/**
* Gets the enabled property value. Indicates whether the schedule is enabled for the team. Required.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getEnabled() {
return this.backingStore.get("enabled");
}
/**
* 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("enabled", (n) -> { this.setEnabled(n.getBooleanValue()); });
deserializerMap.put("offerShiftRequests", (n) -> { this.setOfferShiftRequests(n.getCollectionOfObjectValues(OfferShiftRequest::createFromDiscriminatorValue)); });
deserializerMap.put("offerShiftRequestsEnabled", (n) -> { this.setOfferShiftRequestsEnabled(n.getBooleanValue()); });
deserializerMap.put("openShiftChangeRequests", (n) -> { this.setOpenShiftChangeRequests(n.getCollectionOfObjectValues(OpenShiftChangeRequest::createFromDiscriminatorValue)); });
deserializerMap.put("openShifts", (n) -> { this.setOpenShifts(n.getCollectionOfObjectValues(OpenShift::createFromDiscriminatorValue)); });
deserializerMap.put("openShiftsEnabled", (n) -> { this.setOpenShiftsEnabled(n.getBooleanValue()); });
deserializerMap.put("provisionStatus", (n) -> { this.setProvisionStatus(n.getEnumValue(OperationStatus::forValue)); });
deserializerMap.put("provisionStatusCode", (n) -> { this.setProvisionStatusCode(n.getStringValue()); });
deserializerMap.put("schedulingGroups", (n) -> { this.setSchedulingGroups(n.getCollectionOfObjectValues(SchedulingGroup::createFromDiscriminatorValue)); });
deserializerMap.put("shifts", (n) -> { this.setShifts(n.getCollectionOfObjectValues(Shift::createFromDiscriminatorValue)); });
deserializerMap.put("swapShiftsChangeRequests", (n) -> { this.setSwapShiftsChangeRequests(n.getCollectionOfObjectValues(SwapShiftsChangeRequest::createFromDiscriminatorValue)); });
deserializerMap.put("swapShiftsRequestsEnabled", (n) -> { this.setSwapShiftsRequestsEnabled(n.getBooleanValue()); });
deserializerMap.put("timeClockEnabled", (n) -> { this.setTimeClockEnabled(n.getBooleanValue()); });
deserializerMap.put("timeOffReasons", (n) -> { this.setTimeOffReasons(n.getCollectionOfObjectValues(TimeOffReason::createFromDiscriminatorValue)); });
deserializerMap.put("timeOffRequests", (n) -> { this.setTimeOffRequests(n.getCollectionOfObjectValues(TimeOffRequest::createFromDiscriminatorValue)); });
deserializerMap.put("timeOffRequestsEnabled", (n) -> { this.setTimeOffRequestsEnabled(n.getBooleanValue()); });
deserializerMap.put("timesOff", (n) -> { this.setTimesOff(n.getCollectionOfObjectValues(TimeOff::createFromDiscriminatorValue)); });
deserializerMap.put("timeZone", (n) -> { this.setTimeZone(n.getStringValue()); });
deserializerMap.put("workforceIntegrationIds", (n) -> { this.setWorkforceIntegrationIds(n.getCollectionOfPrimitiveValues(String.class)); });
return deserializerMap;
}
/**
* Gets the offerShiftRequests property value. The offer requests for shifts in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getOfferShiftRequests() {
return this.backingStore.get("offerShiftRequests");
}
/**
* Gets the offerShiftRequestsEnabled property value. Indicates whether offer shift requests are enabled for the schedule.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getOfferShiftRequestsEnabled() {
return this.backingStore.get("offerShiftRequestsEnabled");
}
/**
* Gets the openShiftChangeRequests property value. The open shift requests in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getOpenShiftChangeRequests() {
return this.backingStore.get("openShiftChangeRequests");
}
/**
* Gets the openShifts property value. The set of open shifts in a scheduling group in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getOpenShifts() {
return this.backingStore.get("openShifts");
}
/**
* Gets the openShiftsEnabled property value. Indicates whether open shifts are enabled for the schedule.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getOpenShiftsEnabled() {
return this.backingStore.get("openShiftsEnabled");
}
/**
* Gets the provisionStatus property value. The status of the schedule provisioning. The possible values are notStarted, running, completed, failed.
* @return a {@link OperationStatus}
*/
@jakarta.annotation.Nullable
public OperationStatus getProvisionStatus() {
return this.backingStore.get("provisionStatus");
}
/**
* Gets the provisionStatusCode property value. Additional information about why schedule provisioning failed.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getProvisionStatusCode() {
return this.backingStore.get("provisionStatusCode");
}
/**
* Gets the schedulingGroups property value. The logical grouping of users in the schedule (usually by role).
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSchedulingGroups() {
return this.backingStore.get("schedulingGroups");
}
/**
* Gets the shifts property value. The shifts in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getShifts() {
return this.backingStore.get("shifts");
}
/**
* Gets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSwapShiftsChangeRequests() {
return this.backingStore.get("swapShiftsChangeRequests");
}
/**
* Gets the swapShiftsRequestsEnabled property value. Indicates whether swap shifts requests are enabled for the schedule.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getSwapShiftsRequestsEnabled() {
return this.backingStore.get("swapShiftsRequestsEnabled");
}
/**
* Gets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getTimeClockEnabled() {
return this.backingStore.get("timeClockEnabled");
}
/**
* Gets the timeOffReasons property value. The set of reasons for a time off in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTimeOffReasons() {
return this.backingStore.get("timeOffReasons");
}
/**
* Gets the timeOffRequests property value. The time off requests in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTimeOffRequests() {
return this.backingStore.get("timeOffRequests");
}
/**
* Gets the timeOffRequestsEnabled property value. Indicates whether time off requests are enabled for the schedule.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getTimeOffRequestsEnabled() {
return this.backingStore.get("timeOffRequestsEnabled");
}
/**
* Gets the timesOff property value. The instances of times off in the schedule.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getTimesOff() {
return this.backingStore.get("timesOff");
}
/**
* Gets the timeZone property value. Indicates the time zone of the schedule team using tz database format. Required.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getTimeZone() {
return this.backingStore.get("timeZone");
}
/**
* Gets the workforceIntegrationIds property value. The workforceIntegrationIds property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getWorkforceIntegrationIds() {
return this.backingStore.get("workforceIntegrationIds");
}
/**
* 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.writeBooleanValue("enabled", this.getEnabled());
writer.writeCollectionOfObjectValues("offerShiftRequests", this.getOfferShiftRequests());
writer.writeBooleanValue("offerShiftRequestsEnabled", this.getOfferShiftRequestsEnabled());
writer.writeCollectionOfObjectValues("openShiftChangeRequests", this.getOpenShiftChangeRequests());
writer.writeCollectionOfObjectValues("openShifts", this.getOpenShifts());
writer.writeBooleanValue("openShiftsEnabled", this.getOpenShiftsEnabled());
writer.writeCollectionOfObjectValues("schedulingGroups", this.getSchedulingGroups());
writer.writeCollectionOfObjectValues("shifts", this.getShifts());
writer.writeCollectionOfObjectValues("swapShiftsChangeRequests", this.getSwapShiftsChangeRequests());
writer.writeBooleanValue("swapShiftsRequestsEnabled", this.getSwapShiftsRequestsEnabled());
writer.writeBooleanValue("timeClockEnabled", this.getTimeClockEnabled());
writer.writeCollectionOfObjectValues("timeOffReasons", this.getTimeOffReasons());
writer.writeCollectionOfObjectValues("timeOffRequests", this.getTimeOffRequests());
writer.writeBooleanValue("timeOffRequestsEnabled", this.getTimeOffRequestsEnabled());
writer.writeCollectionOfObjectValues("timesOff", this.getTimesOff());
writer.writeStringValue("timeZone", this.getTimeZone());
writer.writeCollectionOfPrimitiveValues("workforceIntegrationIds", this.getWorkforceIntegrationIds());
}
/**
* Sets the enabled property value. Indicates whether the schedule is enabled for the team. Required.
* @param value Value to set for the enabled property.
*/
public void setEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("enabled", value);
}
/**
* Sets the offerShiftRequests property value. The offer requests for shifts in the schedule.
* @param value Value to set for the offerShiftRequests property.
*/
public void setOfferShiftRequests(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("offerShiftRequests", value);
}
/**
* Sets the offerShiftRequestsEnabled property value. Indicates whether offer shift requests are enabled for the schedule.
* @param value Value to set for the offerShiftRequestsEnabled property.
*/
public void setOfferShiftRequestsEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("offerShiftRequestsEnabled", value);
}
/**
* Sets the openShiftChangeRequests property value. The open shift requests in the schedule.
* @param value Value to set for the openShiftChangeRequests property.
*/
public void setOpenShiftChangeRequests(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("openShiftChangeRequests", value);
}
/**
* Sets the openShifts property value. The set of open shifts in a scheduling group in the schedule.
* @param value Value to set for the openShifts property.
*/
public void setOpenShifts(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("openShifts", value);
}
/**
* Sets the openShiftsEnabled property value. Indicates whether open shifts are enabled for the schedule.
* @param value Value to set for the openShiftsEnabled property.
*/
public void setOpenShiftsEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("openShiftsEnabled", value);
}
/**
* Sets the provisionStatus property value. The status of the schedule provisioning. The possible values are notStarted, running, completed, failed.
* @param value Value to set for the provisionStatus property.
*/
public void setProvisionStatus(@jakarta.annotation.Nullable final OperationStatus value) {
this.backingStore.set("provisionStatus", value);
}
/**
* Sets the provisionStatusCode property value. Additional information about why schedule provisioning failed.
* @param value Value to set for the provisionStatusCode property.
*/
public void setProvisionStatusCode(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("provisionStatusCode", value);
}
/**
* Sets the schedulingGroups property value. The logical grouping of users in the schedule (usually by role).
* @param value Value to set for the schedulingGroups property.
*/
public void setSchedulingGroups(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("schedulingGroups", value);
}
/**
* Sets the shifts property value. The shifts in the schedule.
* @param value Value to set for the shifts property.
*/
public void setShifts(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("shifts", value);
}
/**
* Sets the swapShiftsChangeRequests property value. The swap requests for shifts in the schedule.
* @param value Value to set for the swapShiftsChangeRequests property.
*/
public void setSwapShiftsChangeRequests(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("swapShiftsChangeRequests", value);
}
/**
* Sets the swapShiftsRequestsEnabled property value. Indicates whether swap shifts requests are enabled for the schedule.
* @param value Value to set for the swapShiftsRequestsEnabled property.
*/
public void setSwapShiftsRequestsEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("swapShiftsRequestsEnabled", value);
}
/**
* Sets the timeClockEnabled property value. Indicates whether time clock is enabled for the schedule.
* @param value Value to set for the timeClockEnabled property.
*/
public void setTimeClockEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("timeClockEnabled", value);
}
/**
* Sets the timeOffReasons property value. The set of reasons for a time off in the schedule.
* @param value Value to set for the timeOffReasons property.
*/
public void setTimeOffReasons(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("timeOffReasons", value);
}
/**
* Sets the timeOffRequests property value. The time off requests in the schedule.
* @param value Value to set for the timeOffRequests property.
*/
public void setTimeOffRequests(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("timeOffRequests", value);
}
/**
* Sets the timeOffRequestsEnabled property value. Indicates whether time off requests are enabled for the schedule.
* @param value Value to set for the timeOffRequestsEnabled property.
*/
public void setTimeOffRequestsEnabled(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("timeOffRequestsEnabled", value);
}
/**
* Sets the timesOff property value. The instances of times off in the schedule.
* @param value Value to set for the timesOff property.
*/
public void setTimesOff(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("timesOff", value);
}
/**
* Sets the timeZone property value. Indicates the time zone of the schedule team using tz database format. Required.
* @param value Value to set for the timeZone property.
*/
public void setTimeZone(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("timeZone", value);
}
/**
* Sets the workforceIntegrationIds property value. The workforceIntegrationIds property
* @param value Value to set for the workforceIntegrationIds property.
*/
public void setWorkforceIntegrationIds(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("workforceIntegrationIds", value);
}
}