com.microsoft.graph.beta.generated.models.AutomaticRepliesSetting Maven / Gradle / Ivy
package com.microsoft.graph.beta.models;
import com.microsoft.kiota.serialization.AdditionalDataHolder;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import com.microsoft.kiota.store.BackedModel;
import com.microsoft.kiota.store.BackingStore;
import com.microsoft.kiota.store.BackingStoreFactorySingleton;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class AutomaticRepliesSetting implements AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores model information.
*/
@jakarta.annotation.Nonnull
protected BackingStore backingStore;
/**
* Instantiates a new {@link AutomaticRepliesSetting} and sets the default values.
*/
public AutomaticRepliesSetting() {
this.backingStore = BackingStoreFactorySingleton.instance.createBackingStore();
this.setAdditionalData(new HashMap<>());
}
/**
* 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 AutomaticRepliesSetting}
*/
@jakarta.annotation.Nonnull
public static AutomaticRepliesSetting createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AutomaticRepliesSetting();
}
/**
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @return a {@link Map}
*/
@jakarta.annotation.Nonnull
public Map getAdditionalData() {
Map value = this.backingStore.get("additionalData");
if(value == null) {
value = new HashMap<>();
this.setAdditionalData(value);
}
return value;
}
/**
* Gets the backingStore property value. Stores model information.
* @return a {@link BackingStore}
*/
@jakarta.annotation.Nonnull
public BackingStore getBackingStore() {
return this.backingStore;
}
/**
* Gets the externalAudience property value. The set of audience external to the signed-in user's organization who will receive the ExternalReplyMessage, if Status is AlwaysEnabled or Scheduled. Possible values are: none, contactsOnly, all.
* @return a {@link ExternalAudienceScope}
*/
@jakarta.annotation.Nullable
public ExternalAudienceScope getExternalAudience() {
return this.backingStore.get("externalAudience");
}
/**
* Gets the externalReplyMessage property value. The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getExternalReplyMessage() {
return this.backingStore.get("externalReplyMessage");
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(7);
deserializerMap.put("externalAudience", (n) -> { this.setExternalAudience(n.getEnumValue(ExternalAudienceScope::forValue)); });
deserializerMap.put("externalReplyMessage", (n) -> { this.setExternalReplyMessage(n.getStringValue()); });
deserializerMap.put("internalReplyMessage", (n) -> { this.setInternalReplyMessage(n.getStringValue()); });
deserializerMap.put("@odata.type", (n) -> { this.setOdataType(n.getStringValue()); });
deserializerMap.put("scheduledEndDateTime", (n) -> { this.setScheduledEndDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("scheduledStartDateTime", (n) -> { this.setScheduledStartDateTime(n.getObjectValue(DateTimeTimeZone::createFromDiscriminatorValue)); });
deserializerMap.put("status", (n) -> { this.setStatus(n.getEnumValue(AutomaticRepliesStatus::forValue)); });
return deserializerMap;
}
/**
* Gets the internalReplyMessage property value. The automatic reply to send to the audience internal to the signed-in user's organization, if Status is AlwaysEnabled or Scheduled.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getInternalReplyMessage() {
return this.backingStore.get("internalReplyMessage");
}
/**
* Gets the @odata.type property value. The OdataType property
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getOdataType() {
return this.backingStore.get("odataType");
}
/**
* Gets the scheduledEndDateTime property value. The date and time that automatic replies are set to end, if Status is set to Scheduled.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getScheduledEndDateTime() {
return this.backingStore.get("scheduledEndDateTime");
}
/**
* Gets the scheduledStartDateTime property value. The date and time that automatic replies are set to begin, if Status is set to Scheduled.
* @return a {@link DateTimeTimeZone}
*/
@jakarta.annotation.Nullable
public DateTimeTimeZone getScheduledStartDateTime() {
return this.backingStore.get("scheduledStartDateTime");
}
/**
* Gets the status property value. Configurations status for automatic replies. Possible values are: disabled, alwaysEnabled, scheduled.
* @return a {@link AutomaticRepliesStatus}
*/
@jakarta.annotation.Nullable
public AutomaticRepliesStatus getStatus() {
return this.backingStore.get("status");
}
/**
* 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);
writer.writeEnumValue("externalAudience", this.getExternalAudience());
writer.writeStringValue("externalReplyMessage", this.getExternalReplyMessage());
writer.writeStringValue("internalReplyMessage", this.getInternalReplyMessage());
writer.writeStringValue("@odata.type", this.getOdataType());
writer.writeObjectValue("scheduledEndDateTime", this.getScheduledEndDateTime());
writer.writeObjectValue("scheduledStartDateTime", this.getScheduledStartDateTime());
writer.writeEnumValue("status", this.getStatus());
writer.writeAdditionalData(this.getAdditionalData());
}
/**
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
* @param value Value to set for the AdditionalData property.
*/
public void setAdditionalData(@jakarta.annotation.Nullable final Map value) {
this.backingStore.set("additionalData", value);
}
/**
* Sets the backingStore property value. Stores model information.
* @param value Value to set for the backingStore property.
*/
public void setBackingStore(@jakarta.annotation.Nonnull final BackingStore value) {
Objects.requireNonNull(value);
this.backingStore = value;
}
/**
* Sets the externalAudience property value. The set of audience external to the signed-in user's organization who will receive the ExternalReplyMessage, if Status is AlwaysEnabled or Scheduled. Possible values are: none, contactsOnly, all.
* @param value Value to set for the externalAudience property.
*/
public void setExternalAudience(@jakarta.annotation.Nullable final ExternalAudienceScope value) {
this.backingStore.set("externalAudience", value);
}
/**
* Sets the externalReplyMessage property value. The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled.
* @param value Value to set for the externalReplyMessage property.
*/
public void setExternalReplyMessage(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("externalReplyMessage", value);
}
/**
* Sets the internalReplyMessage property value. The automatic reply to send to the audience internal to the signed-in user's organization, if Status is AlwaysEnabled or Scheduled.
* @param value Value to set for the internalReplyMessage property.
*/
public void setInternalReplyMessage(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("internalReplyMessage", value);
}
/**
* Sets the @odata.type property value. The OdataType property
* @param value Value to set for the @odata.type property.
*/
public void setOdataType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("odataType", value);
}
/**
* Sets the scheduledEndDateTime property value. The date and time that automatic replies are set to end, if Status is set to Scheduled.
* @param value Value to set for the scheduledEndDateTime property.
*/
public void setScheduledEndDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("scheduledEndDateTime", value);
}
/**
* Sets the scheduledStartDateTime property value. The date and time that automatic replies are set to begin, if Status is set to Scheduled.
* @param value Value to set for the scheduledStartDateTime property.
*/
public void setScheduledStartDateTime(@jakarta.annotation.Nullable final DateTimeTimeZone value) {
this.backingStore.set("scheduledStartDateTime", value);
}
/**
* Sets the status property value. Configurations status for automatic replies. Possible values are: disabled, alwaysEnabled, scheduled.
* @param value Value to set for the status property.
*/
public void setStatus(@jakarta.annotation.Nullable final AutomaticRepliesStatus value) {
this.backingStore.set("status", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy