com.microsoft.graph.beta.generated.models.VirtualEventPresenter 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 VirtualEventPresenter extends Entity implements Parsable {
/**
* Instantiates a new {@link VirtualEventPresenter} and sets the default values.
*/
public VirtualEventPresenter() {
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 VirtualEventPresenter}
*/
@jakarta.annotation.Nonnull
public static VirtualEventPresenter createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new VirtualEventPresenter();
}
/**
* Gets the email property value. Email address of the presenter.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getEmail() {
return this.backingStore.get("email");
}
/**
* 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("email", (n) -> { this.setEmail(n.getStringValue()); });
deserializerMap.put("identity", (n) -> { this.setIdentity(n.getObjectValue(Identity::createFromDiscriminatorValue)); });
deserializerMap.put("presenterDetails", (n) -> { this.setPresenterDetails(n.getObjectValue(VirtualEventPresenterDetails::createFromDiscriminatorValue)); });
deserializerMap.put("sessions", (n) -> { this.setSessions(n.getCollectionOfObjectValues(VirtualEventSession::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the identity property value. Identity information of the presenter. The supported identities are: communicationsGuestIdentity and communicationsUserIdentity.
* @return a {@link Identity}
*/
@jakarta.annotation.Nullable
public Identity getIdentity() {
return this.backingStore.get("identity");
}
/**
* Gets the presenterDetails property value. Other detail information of the presenter. This property returns null when the virtual event type is virtualEventTownhall.
* @return a {@link VirtualEventPresenterDetails}
*/
@jakarta.annotation.Nullable
public VirtualEventPresenterDetails getPresenterDetails() {
return this.backingStore.get("presenterDetails");
}
/**
* Gets the sessions property value. The sessions property
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getSessions() {
return this.backingStore.get("sessions");
}
/**
* 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.writeStringValue("email", this.getEmail());
writer.writeObjectValue("identity", this.getIdentity());
writer.writeObjectValue("presenterDetails", this.getPresenterDetails());
writer.writeCollectionOfObjectValues("sessions", this.getSessions());
}
/**
* Sets the email property value. Email address of the presenter.
* @param value Value to set for the email property.
*/
public void setEmail(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("email", value);
}
/**
* Sets the identity property value. Identity information of the presenter. The supported identities are: communicationsGuestIdentity and communicationsUserIdentity.
* @param value Value to set for the identity property.
*/
public void setIdentity(@jakarta.annotation.Nullable final Identity value) {
this.backingStore.set("identity", value);
}
/**
* Sets the presenterDetails property value. Other detail information of the presenter. This property returns null when the virtual event type is virtualEventTownhall.
* @param value Value to set for the presenterDetails property.
*/
public void setPresenterDetails(@jakarta.annotation.Nullable final VirtualEventPresenterDetails value) {
this.backingStore.set("presenterDetails", value);
}
/**
* Sets the sessions property value. The sessions property
* @param value Value to set for the sessions property.
*/
public void setSessions(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("sessions", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy