com.microsoft.graph.beta.generated.models.CallStartedEventMessageDetail 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.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class CallStartedEventMessageDetail extends EventMessageDetail implements Parsable {
/**
* Instantiates a new {@link CallStartedEventMessageDetail} and sets the default values.
*/
public CallStartedEventMessageDetail() {
super();
this.setOdataType("#microsoft.graph.callStartedEventMessageDetail");
}
/**
* 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 CallStartedEventMessageDetail}
*/
@jakarta.annotation.Nonnull
public static CallStartedEventMessageDetail createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new CallStartedEventMessageDetail();
}
/**
* Gets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue.
* @return a {@link TeamworkCallEventType}
*/
@jakarta.annotation.Nullable
public TeamworkCallEventType getCallEventType() {
return this.backingStore.get("callEventType");
}
/**
* Gets the callId property value. Unique identifier of the call.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getCallId() {
return this.backingStore.get("callId");
}
/**
* 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("callEventType", (n) -> { this.setCallEventType(n.getEnumValue(TeamworkCallEventType::forValue)); });
deserializerMap.put("callId", (n) -> { this.setCallId(n.getStringValue()); });
deserializerMap.put("initiator", (n) -> { this.setInitiator(n.getObjectValue(IdentitySet::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the initiator property value. Initiator of the event.
* @return a {@link IdentitySet}
*/
@jakarta.annotation.Nullable
public IdentitySet getInitiator() {
return this.backingStore.get("initiator");
}
/**
* 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.writeEnumValue("callEventType", this.getCallEventType());
writer.writeStringValue("callId", this.getCallId());
writer.writeObjectValue("initiator", this.getInitiator());
}
/**
* Sets the callEventType property value. Represents the call event type. Possible values are: call, meeting, screenShare, unknownFutureValue.
* @param value Value to set for the callEventType property.
*/
public void setCallEventType(@jakarta.annotation.Nullable final TeamworkCallEventType value) {
this.backingStore.set("callEventType", value);
}
/**
* Sets the callId property value. Unique identifier of the call.
* @param value Value to set for the callId property.
*/
public void setCallId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("callId", value);
}
/**
* Sets the initiator property value. Initiator of the event.
* @param value Value to set for the initiator property.
*/
public void setInitiator(@jakarta.annotation.Nullable final IdentitySet value) {
this.backingStore.set("initiator", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy